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 entrypoint script #15

Merged
merged 1 commit into from
Jun 19, 2024
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
4 changes: 3 additions & 1 deletion Containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ COPY --link roles /ansible/roles

COPY --link files/ansible.cfg /etc/ansible/ansible.cfg
COPY --link files/ara.env /ansible/ara.env

COPY --link files/scripts/* /
COPY --link files/src /src

SHELL ["/bin/bash", "-o", "pipefail", "-c"]
Expand Down Expand Up @@ -125,3 +125,5 @@ FROM python:${PYTHON_VERSION}-slim-bookworm

COPY --link --from=builder / /
USER dragon
WORKDIR /ansible
ENTRYPOINT ["/entrypoint.sh"]
3 changes: 3 additions & 0 deletions files/scripts/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env bash

exec /usr/bin/dumb-init -- "$@"