mirror of
https://git.myvelabs.com/novnc/alpine.git
synced 2025-12-17 22:56:21 +00:00
Update 01-init
This commit is contained in:
parent
b0ba72ac2d
commit
1589f50882
4 changed files with 4 additions and 13 deletions
|
|
@ -5,20 +5,11 @@ 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
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
# Create base directories
|
||||
for dir in vnc config ssh
|
||||
do
|
||||
|
|
@ -6,4 +7,3 @@ do
|
|||
done
|
||||
|
||||
## OPTIONAL: More commands may be added below
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
#!/usr/bin/env bash
|
||||
# Reformat path
|
||||
# Reformat proxy path
|
||||
if [[ ${MYVNC_PROXYPATH} == "/" ]]
|
||||
then
|
||||
unset _MYVNC_PROXYPATH
|
||||
|
|
|
|||
|
|
@ -3,6 +3,6 @@
|
|||
# Optional buildtag, addpkg
|
||||
# addpkg=openssh \
|
||||
DOCKER_BUILDKIT=1 \
|
||||
docker build ./. \
|
||||
docker build . \
|
||||
--build-arg addpkg=${addpkg:-""} \
|
||||
--tag ${buildtag:-alpine/base}
|
||||
--tag ${buildtag:-alpine/base}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue