Skip to content

Commit b252ffe

Browse files
authored
Merge pull request #13 from SAP/jira383
Support a Native Jenkins Installation
2 parents 60b134d + a45fec0 commit b252ffe

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

Dockerfile

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,14 @@ RUN apt-get update && \
1111
rm -rf /var/lib/apt/lists/*
1212

1313
# add group & user
14+
ARG USER_HOME=/home/piper
1415
RUN addgroup -gid 1000 piper && \
15-
useradd piper --uid 1000 --gid 1000 --shell /bin/bash --create-home && \
16+
useradd piper --uid 1000 --gid 1000 --shell /bin/bash --home-dir "${USER_HOME}" --create-home && \
1617
curl --location --silent "https://cli.run.pivotal.io/stable?release=linux64-binary&source=github" | tar -zx -C /usr/local/bin && \
1718
cf --version
1819

1920
USER piper
20-
WORKDIR /home/piper
21+
WORKDIR ${USER_HOME}
2122

2223
ARG MTA_PLUGIN_VERSION=2.1.0
2324
ARG MTA_PLUGIN_URL=https://github.com/cloudfoundry-incubator/multiapps-cli-plugin/releases/download/v${MTA_PLUGIN_VERSION}/mta_plugin_linux_amd64
@@ -27,3 +28,7 @@ RUN cf add-plugin-repo CF-Community https://plugins.cloudfoundry.org && \
2728
cf install-plugin ${MTA_PLUGIN_URL} -f && \
2829
cf install-plugin Create-Service-Push -f -r CF-Community && \
2930
cf plugins
31+
32+
# allow anybody to read/write/exec at HOME
33+
RUN chmod -R o+rwx "${USER_HOME}"
34+
ENV HOME=${USER_HOME}

0 commit comments

Comments
 (0)