Skip to content

Commit

Permalink
Added a feature to load personal entyrpoint scripts from `personal/do…
Browse files Browse the repository at this point in the history
…cker-entrypoints`
  • Loading branch information
AllRWeak committed Dec 19, 2024
1 parent 8b582bc commit 766fac2
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
14 changes: 12 additions & 2 deletions container/home/builder/.zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,18 @@ if [ ! -f /tmp/first-run ]; then
sudo chown -R "$(id -u)":"$(id -g)" /ssh-agent


# Initialization tasks and extra entrypoint(s) loader
bash /srv/scripts/general/docker-entrypoint.sh
# Loading personal docker entrypoints if they are present
if [[ -d "/srv/personal/docker-entrypoints" && "$(ls -A /srv/personal/docker-entrypoints)" ]]; then

for personal_entrypoint in /srv/personal/docker-entrypoints/*; do
if [ -f "$personal_entrypoint" ]; then
# Comment in the echo line below for better debugging
# echo -e "\n Processing $personal_entrypoint...\n"
"$personal_entrypoint"
fi
done

fi

# Loading custom docker entrypoints if they are present
if [[ -d "/srv/custom/docker-entrypoints" && "$(ls -A /srv/custom/docker-entrypoints)" ]]; then
Expand Down
2 changes: 1 addition & 1 deletion version.yml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
version: 5.8.78
version: 5.9.1

0 comments on commit 766fac2

Please sign in to comment.