Skip to content

Commit

Permalink
add chmod g=rwx $HOME to jenkins agent (#945) (#946)
Browse files Browse the repository at this point in the history
  • Loading branch information
matzehecht authored and BraisVQ committed Feb 19, 2024
1 parent 51007a6 commit 0e1af01
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 6 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
### Modified

### Fixed
- jenkins agents can not import private keys into gpg keyring to use with helm secrets ([#945](https://github.com/opendevstack/ods-quickstarters/issues/945))
- Streamlit quickstarter build fails to import nexus host certificates into truststore ([#951](https://github.com/opendevstack/ods-quickstarters/issues/951))

## [4.3.0] - 2023-07-13
Expand Down
2 changes: 1 addition & 1 deletion common/jenkins-agents/jdk/docker/Dockerfile.ubi8
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ RUN mkdir -p $GRADLE_USER_HOME && \
RUN bash -l -c 'echo export JAVA_OPTS="$(/tmp/set_java_proxy.sh && echo $JAVA_OPTS)" >> /etc/bash.bashrc'

RUN chown -R 1001:0 $HOME && \
chmod -R g+rw $HOME && \
chmod -R g+rwX $HOME && \
chmod -c 666 /etc/pki/ca-trust/extracted/java/cacerts && \
ls -la /etc/pki/ca-trust/extracted/java/cacerts

Expand Down
2 changes: 1 addition & 1 deletion common/jenkins-agents/nodejs12/docker/Dockerfile.ubi8
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,6 @@ RUN npm config set registry=$nexusUrl/repository/npmjs/ && \
echo yarn version: $(yarn --version)

RUN chown -R 1001:0 $HOME && \
chmod -R g+rw $HOME
chmod -R g+rwX $HOME

USER 1001
2 changes: 1 addition & 1 deletion common/jenkins-agents/nodejs16/docker/Dockerfile.ubi8
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,6 @@ RUN npm config set registry=$nexusUrl/repository/npmjs/ && \
echo yarn version: $(yarn --version)

RUN chown -R 1001:0 $HOME && \
chmod -R g+rw $HOME
chmod -R g+rwX $HOME

USER 1001
2 changes: 1 addition & 1 deletion common/jenkins-agents/nodejs18/docker/Dockerfile.ubi8
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,6 @@ RUN npm config set registry=$nexusUrl/repository/npmjs/ && \
echo yarn version: $(yarn --version)

RUN chown -R 1001:0 $HOME && \
chmod -R g+rw $HOME
chmod -R g+rwX $HOME

USER 1001
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ RUN dnf install -y https://github.com/mozilla/sops/releases/download/v${SOPS_VER

RUN chmod +t /tmp \
&& chown -R 1001:0 $HOME \
&& chmod -R g+rw $HOME \
&& chmod -R g+rwX $HOME \
&& mkdir -p $GEM_HOME \
&& chmod 2770 $GEM_HOME

Expand Down
2 changes: 1 addition & 1 deletion common/jenkins-agents/terraform/docker/Dockerfile.ubi8
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ RUN dnf install -y https://github.com/mozilla/sops/releases/download/v${SOPS_VER

RUN chmod +t /tmp \
&& chown -R 1001:0 $HOME \
&& chmod -R g+rw $HOME \
&& chmod -R g+rwX $HOME \
&& mkdir -p $GEM_HOME \
&& chmod 2770 $GEM_HOME

Expand Down

0 comments on commit 0e1af01

Please sign in to comment.