first commit
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
#!/usr/bin/env sh
|
||||
set -e
|
||||
|
||||
export DISPLAY=:99
|
||||
rm -f /tmp/.X99-lock
|
||||
|
||||
if ! pgrep -x Xvfb >/dev/null 2>&1; then
|
||||
echo "[entrypoint] Starting Xvfb on $DISPLAY"
|
||||
Xvfb $DISPLAY -screen 0 1920x1080x24 -nolisten tcp &
|
||||
fi
|
||||
|
||||
# Wait for Xvfb to become ready.
|
||||
sleep 0.5
|
||||
|
||||
# Execute the passed command.
|
||||
exec "$@"
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user