-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
70 lines (56 loc) · 2.13 KB
/
Dockerfile
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
FROM schmunk42/docker-toolbox:9.1.0-rc1
# Install gnupg2
ENV TERM linux
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
gnupg2 \
&& apt-get clean
# Create an environment variable for the correct distribution
# Add the Cloud SDK distribution URI as a package source
RUN export CLOUD_SDK_REPO="cloud-sdk-jessie" \
&& echo "deb http://packages.cloud.google.com/apt $CLOUD_SDK_REPO main" | tee -a /etc/apt/sources.list.d/google-cloud-sdk.list
# Import the Google Cloud Platform public key
RUN curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add -
# Install system packages (including aws, gcloud)
ENV TERM linux
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
git \
expect \
awscli \
google-cloud-sdk \
less \
rsync \
watch \
&& apt-get clean
ENV COMPOSE_VERSION_LEGACY=1.16.1
RUN curl -L https://github.com/docker/compose/releases/download/${COMPOSE_VERSION_LEGACY}/docker-compose-`uname -s`-`uname -m` > /opt/local/bin/docker-compose-${COMPOSE_VERSION_LEGACY} && \
chmod +x /opt/local/bin/docker-compose-${COMPOSE_VERSION_LEGACY}
# Install boilr
RUN curl -sSL https://raw.githubusercontent.com/tmrts/boilr/master/install | bash
ENV PATH /root/bin:${PATH}
RUN boilr init
# Install ctop
RUN curl -L https://github.com/bcicen/ctop/releases/download/v0.6.1/ctop-0.6.1-linux-amd64 -o ctop
RUN mv ctop /usr/local/bin/
RUN chmod +x /usr/local/bin/ctop
# install current version of awscli (deb pkg version is way too old)
RUN curl -o get-pip.py https://bootstrap.pypa.io/get-pip.py && \
python get-pip.py
RUN pip install --upgrade awscli
# Install jsonfui
RUN curl -sL https://deb.nodesource.com/setup_8.x | bash - \
&& apt-get install nodejs \
&& npm install -g jsonfui
# Add scripts and configuration
ENV PATH="/roj/bin:${PATH}"
ENV MACHINE_STORAGE_PATH /roj/config/machine
ENV DOCKER_CONFIG /roj/config
COPY ./src /
RUN mkdir /roj
WORKDIR /roj
ENTRYPOINT ["/usr/local/bin/docker-entrypoint.sh"]
CMD bash
# Experimental(!) - Currently not available from DockerHub builds (TODO)
ARG BUILD_ROJ_VERSION
ENV ROJ_VERSION=${BUILD_ROJ_VERSION}