dockerfiles from milestone1 demo

This commit is contained in:
Nicolas De Loof 2018-02-05 16:48:03 +01:00 committed by Nicolas De loof
parent d43d147a47
commit db79ed16ce
2 changed files with 17 additions and 0 deletions

5
Dockerfile Normal file
View File

@ -0,0 +1,5 @@
FROM jenkins/jenkins:lts-alpine
COPY --chown=jenkins target/configuration-as-code.hpi /usr/share/jenkins/ref/plugins/configuration-as-code.jpi
RUN echo $JENKINS_VERSION > /usr/share/jenkins/ref/jenkins.install.UpgradeWizard.state
RUN echo $JENKINS_VERSION > /usr/share/jenkins/ref/jenkins.install.InstallUtil.lastExecVersion

12
Dockerfile.onbuild Normal file
View File

@ -0,0 +1,12 @@
FROM jenkins/jenkins:lts-alpine
COPY --chown=jenkins target/configuration-as-code.hpi /usr/share/jenkins/ref/plugins/configuration-as-code.jpi
RUN echo $JENKINS_VERSION > /usr/share/jenkins/ref/jenkins.install.UpgradeWizard.state
RUN echo $JENKINS_VERSION > /usr/share/jenkins/ref/jenkins.install.InstallUtil.lastExecVersion
ENV CASC_JENKINS_CONFIG=/usr/share/jenkins/ref/jenkins.yaml
# Derived image can just provide jenkins.yaml file in context, will be automatically included
ONBUILD COPY --chown=jenkins plugins.txt /usr/share/jenkins/ref/plugins.txt
ONBUILD RUN install-plugins.sh < /usr/share/jenkins/ref/plugins.txt
ONBUILD COPY --chown=jenkins jenkins.yaml /usr/share/jenkins/ref/jenkins.yaml