File tree 5 files changed +18
-4
lines changed
5 files changed +18
-4
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,9 @@ FROM buildpack-deps:stretch-curl
2
2
3
3
ENV VERSION 0.1
4
4
5
+ # https://github.com/hadolint/hadolint/wiki/DL4006
6
+ SHELL ["/bin/bash" , "-o" , "pipefail" , "-c" ]
7
+
5
8
# ps needs to be available to be able to be used in docker.inside, see https://issues.jenkins-ci.org/browse/JENKINS-40101
6
9
RUN apt-get update && \
7
10
apt-get install -y --no-install-recommends procps && \
@@ -10,12 +13,13 @@ RUN apt-get update && \
10
13
# add group & user
11
14
RUN addgroup -gid 1000 piper && \
12
15
useradd piper --uid 1000 --gid 1000 --shell /bin/bash --create-home && \
13
- curl -L --silent "https://cli.run.pivotal.io/stable?release=linux64-binary&source=github" | tar -zx -C /usr/local/bin && \
16
+ curl --location --silent "https://cli.run.pivotal.io/stable?release=linux64-binary&source=github" | tar -zx -C /usr/local/bin && \
14
17
cf --version
15
18
16
19
USER piper
17
20
WORKDIR /home/piper
18
21
22
+ # hadolint ignore=DL4001
19
23
RUN cf add-plugin-repo CF-Community https://plugins.cloudfoundry.org \
20
24
&& cf install-plugin blue-green-deploy -f -r CF-Community \
21
25
&& wget --quiet "https://github.com/cloudfoundry-incubator/multiapps-cli-plugin/releases/download/v2.0.13/mta_plugin_linux_amd64" \
Original file line number Diff line number Diff line change 1
1
FROM openjdk:8-jre-slim
2
2
3
3
ENV JENKINS_HOME /var/jenkins_home
4
-
4
+
5
+ # https://github.com/hadolint/hadolint/wiki/DL4006
6
+ SHELL ["/bin/bash" , "-o" , "pipefail" , "-c" ]
7
+
5
8
RUN apt-get update && \
6
9
apt-get install -y --no-install-recommends \
7
10
git \
@@ -18,7 +21,7 @@ RUN apt-get update && \
18
21
$(lsb_release -cs) \
19
22
stable" && \
20
23
apt-get update && \
21
- apt-get -y install docker-ce && \
24
+ apt-get -y --no-install-recommends install docker-ce && \
22
25
rm -rf /var/lib/apt/lists/* /var/cache/apt/*
23
26
24
27
# add group & user
Original file line number Diff line number Diff line change @@ -6,6 +6,9 @@ COPY init_jenkins.groovy /usr/share/jenkins/ref/init.groovy.d/init_jenkins.groov
6
6
COPY plugins.txt /usr/share/jenkins/ref/plugins.txt
7
7
COPY launch-jenkins-agent.sh /usr/share/jenkins/ref/launch-jenkins-agent.sh.override
8
8
9
+ # https://github.com/hadolint/hadolint/wiki/DL4006
10
+ SHELL ["/bin/bash" , "-o" , "pipefail" , "-c" ]
11
+
9
12
RUN apt-get update && \
10
13
apt-get install -y --no-install-recommends \
11
14
apt-transport-https \
Original file line number Diff line number Diff line change
1
+ # Inhereting form 'latest' Jenkins master is ok since this image is controlled by us
2
+ # hadolint ignore=DL3006
1
3
FROM ppiper/jenkins-master
2
4
5
+ # User needs to be root for access to mounted Docker socket
6
+ # hadolint ignore=DL3002
3
7
USER root
4
8
RUN curl -O https://repo.jenkins-ci.org/releases/io/jenkins/jenkinsfile-runner/jenkinsfile-runner/1.0-beta-7/jenkinsfile-runner-1.0-beta-7-app.zip && \
5
9
unzip jenkinsfile-runner-1.0-beta-7-app.zip -d jenkinsfile-runner && \
Original file line number Diff line number Diff line change 1
1
FROM node:stretch
2
2
3
3
RUN apt-get update && \
4
- apt-get install -y chromium firefox-esr xvfb libxi6 libgconf-2-4 default-jre && \
4
+ apt-get install -y --no-install-recommends chromium firefox-esr xvfb libxi6 libgconf-2-4 default-jre && \
5
5
rm -rf /var/lib/apt/lists/* /var/cache/apt/*
6
6
7
7
RUN ln -s /usr/bin/chromium /usr/bin/google-chrome
You can’t perform that action at this time.
0 commit comments