Alpine images

This commit is contained in:
Myve 2024-07-18 21:34:48 +00:00
commit c8bf7daf02
16 changed files with 392 additions and 0 deletions

24
base/app/entrypoint Executable file
View file

@ -0,0 +1,24 @@
#!/usr/bin/env bash
# Export all variables
set -a
# Abort if an error is encountered
set -e
# SSH config
if [ -f ~/.ssh/id_ed25519 ]
then
chmod 0600 ~/.ssh/id_ed25519
fi
# Run all scripts in init folder
for file in /app/init.d/*.sh
do
/bin/bash -c ${file} >>/app/logs/$(echo ${file} | sed 's|/app/init.d/||;s|\.sh$||').log
done
# Read cli parameters
exec "${@}" &
# Monitor log
tail -f /app/logs/*.log