This commit is contained in:
Oliver Chang 2017-03-10 14:33:15 -08:00
parent 52d6146a8b
commit 4bfb26e105
2 changed files with 27 additions and 1 deletions

View File

@ -0,0 +1,17 @@
FROM jenkinsci/jenkins
USER root
RUN mkdir /var/secrets
RUN apt-get -y update && apt-get -y upgrade
RUN 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 /google-cloud-sdk
ENV PATH=$PATH:/google-cloud-sdk/bin

View File

@ -12,7 +12,7 @@ spec:
spec:
containers:
- name: jenkins
image: jenkinsci/jenkins
image: gcr.io/clusterfuzz-external/jenkins:latest
env:
- name: JAVA_OPTS
value: "-Duser.timezone=America/Los_Angeles -Dhudson.security.csrf.requestfield=Jenkins-Crumb"
@ -22,6 +22,9 @@ spec:
volumeMounts:
- name: jenkins-home
mountPath: "/var/jenkins_home"
- name: secrets
mountPath: "/var/secrets"
readOnly: true
livenessProbe:
httpGet:
path: "/login"
@ -43,3 +46,9 @@ spec:
gcePersistentDisk:
pdName: jenkins-home
fsType: ext4
- name: secrets
secret:
secretName: builder-service-account
items:
- key: build-service-account.json
path: build-service-account.json