aboutsummaryrefslogtreecommitdiffhomepage
path: root/infra/jenkins-cluster/server/Dockerfile
blob: c164a0c9a52c496f86fffe7587a9686c39465bb8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
FROM jenkins/jenkins:lts
USER root

RUN mkdir /var/secrets
RUN apt-get -y update && apt-get -y upgrade && apt-get -y install python-dev virtualenv python-pip build-essential

WORKDIR /
RUN wget https://dl.google.com/dl/cloudsdk/release/google-cloud-sdk.zip
RUN unzip google-cloud-sdk.zip

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

RUN chown -R jenkins:jenkins /google-cloud-sdk

USER jenkins
ENV JENKINS_OPTS --httpPort=8080 --httpsPort=8082 --httpsCertificate=/var/secrets/cert.pem --httpsPrivateKey=/var/secrets/cert.key
ENV PATH=$PATH:/google-cloud-sdk/bin