forked from spinnaker/clouddriver
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
26 lines (20 loc) · 950 Bytes
/
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
FROM openjdk:8
MAINTAINER [email protected]
COPY . workdir/
WORKDIR workdir
RUN GRADLE_USER_HOME=cache ./gradlew buildDeb -x test && \
dpkg -i ./clouddriver-web/build/distributions/*.deb && \
cd .. && \
rm -rf workdir && \
apt-get -y update && \
apt-get -y install apt-transport-https && \
echo "deb https://packages.cloud.google.com/apt cloud-sdk-trusty main" | tee -a /etc/apt/sources.list.d/google-cloud-sdk.list && \
wget https://packages.cloud.google.com/apt/doc/apt-key.gpg && \
apt-key add apt-key.gpg && \
apt-get -y update && \
apt-get -y install python2.7 unzip ca-certificates google-cloud-sdk && \
apt-get clean
RUN curl -LO https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl && \
chmod +x kubectl && \
mv ./kubectl /usr/local/bin/kubectl
CMD ["/opt/clouddriver/bin/clouddriver"]