mirror of
https://git.myvelabs.com/novnc/alpine.git
synced 2025-12-18 06: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
|
# Abort if an error is encountered
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
# SSH config
|
|
||||||
if [ -f ~/.ssh/id_ed25519 ]
|
|
||||||
then
|
|
||||||
chmod 0600 ~/.ssh/id_ed25519
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Run all scripts in init folder
|
# Run all scripts in init folder
|
||||||
for file in /app/init.d/*.sh
|
for file in /app/init.d/*.sh
|
||||||
do
|
do
|
||||||
/bin/bash -c ${file} >>/app/logs/$(echo ${file} | sed 's|/app/init.d/||;s|\.sh$||').log
|
/bin/bash -c ${file} >>/app/logs/$(echo ${file} | sed 's|/app/init.d/||;s|\.sh$||').log
|
||||||
done
|
done
|
||||||
|
|
||||||
# Read cli parameters
|
|
||||||
exec "${@}" &
|
|
||||||
|
|
||||||
# Monitor log
|
# Monitor log
|
||||||
tail -f /app/logs/*.log
|
tail -f /app/logs/*.log
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,5 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
# Create base directories
|
# Create base directories
|
||||||
for dir in vnc config ssh
|
for dir in vnc config ssh
|
||||||
do
|
do
|
||||||
|
|
@ -6,4 +7,3 @@ do
|
||||||
done
|
done
|
||||||
|
|
||||||
## OPTIONAL: More commands may be added below
|
## OPTIONAL: More commands may be added below
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
# Reformat path
|
# Reformat proxy path
|
||||||
if [[ ${MYVNC_PROXYPATH} == "/" ]]
|
if [[ ${MYVNC_PROXYPATH} == "/" ]]
|
||||||
then
|
then
|
||||||
unset _MYVNC_PROXYPATH
|
unset _MYVNC_PROXYPATH
|
||||||
|
|
|
||||||
|
|
@ -3,6 +3,6 @@
|
||||||
# Optional buildtag, addpkg
|
# Optional buildtag, addpkg
|
||||||
# addpkg=openssh \
|
# addpkg=openssh \
|
||||||
DOCKER_BUILDKIT=1 \
|
DOCKER_BUILDKIT=1 \
|
||||||
docker build ./. \
|
docker build . \
|
||||||
--build-arg addpkg=${addpkg:-""} \
|
--build-arg addpkg=${addpkg:-""} \
|
||||||
--tag ${buildtag:-alpine/base}
|
--tag ${buildtag:-alpine/base}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue