mirror of
https://git.myvelabs.com/novnc/alpine.git
synced 2025-12-18 07:46:20 +00:00
Alpine images
This commit is contained in:
commit
c8bf7daf02
16 changed files with 392 additions and 0 deletions
24
base/app/entrypoint
Executable file
24
base/app/entrypoint
Executable 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue