Skip to content

Commit 08eca0b

Browse files
committed
feat: easy customization by custom entrypoints logic
1 parent e8fb213 commit 08eca0b

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

base_entrypoint.sh

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/usr/bin/env bash
2-
set -ex
2+
set -e
33

44
# Store the password
55
if [ "$VNC_PASSWORD" ]; then
@@ -22,7 +22,11 @@ echo "Other Info:"
2222
echo "-----------------"
2323
echo "Lang: ${LANG}"
2424
echo "LC All: ${LC_ALL}"
25+
echo "Customize active: ${CUSTOMIZE}"
26+
echo "Custom entrypoints dir: ${CUSTOM_ENTRYPOINTS_DIR}"
27+
echo "Autostart browser: ${AUTO_START_BROWSER}"
2528
echo "Homepage website URL: ${STARTING_WEBSITE_URL}"
29+
echo "Autostart xterm: ${AUTO_START_XTERM}"
2630
echo "-----------------"
2731

2832
# Start Supervisor

customizable_entrypoint.sh

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/bash
2-
set -ex
2+
set -e
33

44
echo "Ready to start"
55

@@ -42,7 +42,11 @@ if [ "$CUSTOMIZE" = "true" ]; then
4242
fi
4343

4444
# Run all bash or Python scripts found inside custom entrypoints folder
45+
echo "Looking for custom entry point scripts..."
4546
if [ -d "$CUSTOM_ENTRYPOINTS_DIR" ]; then
47+
echo "Found custom entrypoints directory: $CUSTOM_ENTRYPOINTS_DIR"
48+
echo "$(ls -la $CUSTOM_ENTRYPOINTS_DIR)"
49+
# list the found scripts and run them
4650
for script in "$CUSTOM_ENTRYPOINTS_DIR"/*.{sh,py}; do
4751
if [ -f "$script" ]; then
4852
echo "Running custom entry point script: $script"

debian.dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ ENV DISPLAY=:${DEF_VNC_DISPLAY}.${DEF_VNC_SCREEN} \
3535
DEBIAN_FRONTEND=${DEF_DEBIAN_FRONTEND}
3636

3737
# Install necessary packages and setup noVNC
38-
RUN set -ex; \
38+
RUN set -e; \
3939
apt update && \
4040
apt full-upgrade -qqy && \
4141
apt install -qqy \

0 commit comments

Comments
 (0)