Skip to content

Commit

Permalink
Add script to set mod for /tmp
Browse files Browse the repository at this point in the history
  • Loading branch information
snovikov committed Jan 31, 2025
1 parent d58555d commit baedb1d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/docker_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
fi
# Build Docker image tag
TAG="${ATLANTIS}-${TERRAFORM}-${TERRAGRUNT}-ro"
TAG="${ATLANTIS}-${TERRAFORM}-${TERRAGRUNT}-tmp"
# Output for debugging
echo "ATLANTIS=${ATLANTIS}"
Expand Down
13 changes: 2 additions & 11 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -107,16 +107,7 @@ RUN set -eux \
&& mv op /usr/local/bin/op \
&& op --version | grep "${ONE_PASSWORD_CLI}"

RUN cd / \
&& git init \
&& git config user.email "[email protected]" \
&& git config user.name "DevOps Team" \
&& git config init.defaultBranch main \
&& git config advice.addIgnoredFile false \
&& echo "/dev" > .gitignore \
&& echo "/proc" >> .gitignore \
&& echo "/sys" >> .gitignore \
&& git add * || git add $(find -maxdepth 1 -type f) \
&& git commit -am "Initial state"
RUN mkdir -p /docker-entrypoint.d/
COPY docker-entrypoint.d/* /docker-entrypoint.d/

USER atlantis
3 changes: 3 additions & 0 deletions docker-entrypoint.d/chmod-tmp.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env -S dumb-init --single-child /bin/sh

chmod 0777 /tmp

0 comments on commit baedb1d

Please sign in to comment.