Skip to content

Commit

Permalink
Merge pull request #8 from camptocamp/startup-script
Browse files Browse the repository at this point in the history
  • Loading branch information
f-necas authored Nov 24, 2023
2 parents 4f4a084 + d7be01b commit 073b090
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM debian:stretch
FROM debian:buster

ENV DEBIAN_FRONTEND=noninteractive

Expand Down
11 changes: 11 additions & 0 deletions docker-entrypoint.d/100-execute-custom-scripts.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/bash

# Executing custom scripts located in CUSTOM_SCRIPTS_DIRECTORY if environment variable is set
if [[ -z "${CUSTOM_SCRIPTS_DIRECTORY}" ]]; then
echo "[INFO] No CUSTOM_SCRIPTS_DIRECTORY env variable set"
else
echo "[INFO] CUSTOM_SCRIPTS_DIRECTORY env variable set to ${CUSTOM_SCRIPTS_DIRECTORY}"
# Regex is needed in jetty9 images, but not alpine's ones.
run-parts -v "${CUSTOM_SCRIPTS_DIRECTORY}" --regex='.*'
echo "[INFO] End executing custom scripts"
fi

0 comments on commit 073b090

Please sign in to comment.