forked from GoogleCloudPlatform/cos-toolbox
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
30 lines (23 loc) · 1.3 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
# Start from debian:jessie-backports base.
FROM debian:jessie-backports
# Prepare the image.
ENV DEBIAN_FRONTEND noninteractive
# These instructions are derieved from the google/cloud-sdk docker image
# (https://github.com/GoogleCloudPlatform/cloud-sdk-docker/blob/master/Dockerfile)
# To keep the image size small, we install only the most
# needed components of gcloud & their dependencies.
RUN apt-get update && apt-get install -y -qq --no-install-recommends wget curl unzip python openssh-client python-openssl ca-certificates && apt-get clean
# Install the Google Cloud SDK.
ENV HOME /
ENV CLOUDSDK_PYTHON_SITEPACKAGES 1
RUN wget https://dl.google.com/dl/cloudsdk/channels/rapid/google-cloud-sdk.zip && unzip google-cloud-sdk.zip && rm google-cloud-sdk.zip
RUN google-cloud-sdk/install.sh --usage-reporting=true --path-update=true --bash-completion=true --rc-path=/.bashrc --additional-components alpha beta docker-credential-gcr
# Various networking and other tools. net-tools installs arp, netstat, etc.
RUN apt-get install -u -qq vim \
net-tools netcat ipset conntrack inetutils-traceroute bridge-utils \
ebtables \
&& apt-get clean
RUN mkdir /.ssh && echo "PATH=\$PATH:/google-cloud-sdk/bin" > /etc/profile.d/gcloud_path.sh
ENV PATH /google-cloud-sdk/bin:$PATH
VOLUME ["/.config"]
CMD ["/bin/bash"]