Skip to content

Commit

Permalink
Tweaks to make it actually run!
Browse files Browse the repository at this point in the history
  • Loading branch information
slominskir committed Feb 20, 2024
1 parent 2f76ada commit 6d64a56
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .devcontainer/Containerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
FROM quay.io/389ds/devcontainer

COPY ./.devcontainer/container-entrypoint.sh /container-entrypoint.sh
COPY ./container-entrypoint.sh /container-entrypoint.sh

RUN dnf install tini
RUN dnf install -y tini

# DEFAULTS
ENV CC=gcc \
Expand All @@ -13,5 +13,5 @@ ENV CC=gcc \
DS_DM_PASSWORD=password \
DS_SUFFIX_NAME=dc=example,dc=com

ENTRYPOINT ["/sbin/tini", "--", "/container-entrypoint.sh"]
ENTRYPOINT ["/usr/bin/tini", "--", "/container-entrypoint.sh"]

2 changes: 1 addition & 1 deletion .devcontainer/compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ services:
- path: ./overrides.env
required: false
volumes:
- ./:/389-ds-base
- ../:/389-ds-base
4 changes: 3 additions & 1 deletion .devcontainer/container-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,11 @@ if [ ! -f /cert-check-complete ]; then
fi
touch /cert-check-complete
else
echo -e "Cert check already complete; skipping"
echo "Cert check already complete; skipping"
fi

echo "Container ready!"

##
# Note: PID 1 should actually be tini or similar. If users decide to override the entrypoint
# it is recommended to continue to use tini or similar.
Expand Down

0 comments on commit 6d64a56

Please sign in to comment.