Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add chmod g=rwx $HOME to jenkins agent (#945) #946

Merged
merged 3 commits into from
Sep 18, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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