forked from cloudera/clusterdock
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
54 lines (49 loc) · 2.17 KB
/
Copy pathDockerfile
File metadata and controls
54 lines (49 loc) · 2.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
FROM debian:wheezy
# Use a label indicating that a container is running the clusterdock framework to allow the
# framework to handle things like stopping containers on the host machine without accidentally
# killing itself.
LABEL org.apache.hbase.is-clusterdock=
ENV DOCKER_BUCKET get.docker.com
ENV DOCKER_VERSION 1.11.1
# Install Docker, just to have the client available; the framework assumes /var/run/docker.sock
# will be volume mounted from the host. That is, executing `docker run` inside a container created
# from this image will start a container on the host machine, not inside said container.
RUN apt-get -y update \
&& apt-get -y install curl \
git \
libffi-dev \
libssl-dev \
libxml2-dev \
libxslt1-dev \
libz-dev \
python-dev \
python-pip \
&& curl -fSL "https://${DOCKER_BUCKET}/builds/Linux/x86_64/docker-${DOCKER_VERSION}.tgz" \
-o docker.tgz \
&& tar -xzvf docker.tgz \
&& mv docker/* /usr/local/bin/ \
&& rmdir docker \
&& rm docker.tgz \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
ADD . /root/clusterdock
# Make sure the SSH private key for each topology has the correct permissions.
RUN find /root/clusterdock -type f -name id_rsa -exec chmod 600 {} \; \
&& pip install --upgrade -r /root/clusterdock/requirements.txt \
&& rm -rf /root/.cache/pip/*
WORKDIR /root/clusterdock
ENTRYPOINT ["python"]