2017-07-26 17:37:25 +00:00
|
|
|
FROM jenkins/jenkins:lts
|
2016-07-20 21:58:10 +00:00
|
|
|
USER root
|
2016-07-20 22:51:51 +00:00
|
|
|
|
2017-03-10 23:29:30 +00:00
|
|
|
RUN mkdir /var/secrets
|
2017-07-26 17:37:25 +00:00
|
|
|
RUN apt-get -y update && apt-get -y upgrade && apt-get -y install python-dev virtualenv python-pip build-essential
|
2017-03-10 23:29:30 +00:00
|
|
|
|
|
|
|
WORKDIR /
|
|
|
|
RUN wget https://dl.google.com/dl/cloudsdk/release/google-cloud-sdk.zip
|
|
|
|
RUN unzip google-cloud-sdk.zip
|
2016-07-20 22:51:51 +00:00
|
|
|
|
2017-03-10 23:29:30 +00:00
|
|
|
RUN /google-cloud-sdk/install.sh --usage-reporting=false --bash-completion=false --disable-installation-options
|
|
|
|
RUN /google-cloud-sdk/bin/gcloud -q components install alpha beta
|
|
|
|
RUN /google-cloud-sdk/bin/gcloud -q components update
|
2016-10-10 19:11:00 +00:00
|
|
|
|
2017-03-11 04:50:40 +00:00
|
|
|
RUN chown -R jenkins:jenkins /google-cloud-sdk
|
|
|
|
|
|
|
|
USER jenkins
|
2017-07-26 17:57:06 +00:00
|
|
|
ENV JENKINS_OPTS --httpPort=8080 --httpsPort=8082 --httpsCertificate=/var/secrets/cert.pem --httpsPrivateKey=/var/secrets/cert.key
|
2017-03-10 23:29:30 +00:00
|
|
|
ENV PATH=$PATH:/google-cloud-sdk/bin
|