Skip to content

Commit

Permalink
feat: Support image commit (#844)
Browse files Browse the repository at this point in the history
  • Loading branch information
kroese authored Nov 12, 2024
1 parent a6694a6 commit e9edacc
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 14 deletions.
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ kubectl apply -f kubernetes.yml

- you are not using "Docker Desktop for Linux" as it does not support KVM, instead make use of Docker Engine directly.

- it could help to add `privileged: true` to your compose file (or `sudo` to your `run` command), to rule out any permission issue.
- it could help to add `privileged: true` to your compose file (or `sudo` to your `docker run` command), to rule out any permission issue.

### How do I assign an individual IP address to the container?

Expand Down
32 changes: 19 additions & 13 deletions src/reset.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,23 +15,24 @@ echo "❯ For support visit $SUPPORT"

# Docker environment variables

: "${TZ:=""}" # System local timezone
: "${DEBUG:="N"}" # Disable debugging mode
: "${COUNTRY:=""}" # Country code for mirror
: "${CONSOLE:="N"}" # Disable console mode
: "${ALLOCATE:=""}" # Preallocate diskspace
: "${ARGUMENTS:=""}" # Extra QEMU parameters
: "${CPU_CORES:="1"}" # Amount of CPU cores
: "${RAM_SIZE:="1G"}" # Maximum RAM amount
: "${RAM_CHECK:="Y"}" # Check available RAM
: "${DISK_SIZE:="16G"}" # Initial data disk size
: "${TZ:=""}" # System local timezone
: "${DEBUG:="N"}" # Disable debugging mode
: "${COMMIT:="N"}" # Commit to local image
: "${COUNTRY:=""}" # Country code for mirror
: "${CONSOLE:="N"}" # Disable console mode
: "${ALLOCATE:=""}" # Preallocate diskspace
: "${ARGUMENTS:=""}" # Extra QEMU parameters
: "${CPU_CORES:="1"}" # Amount of CPU cores
: "${RAM_SIZE:="1G"}" # Maximum RAM amount
: "${RAM_CHECK:="Y"}" # Check available RAM
: "${DISK_SIZE:="16G"}" # Initial data disk size
: "${STORAGE:="/storage"}" # Storage folder location

# Helper variables

PROCESS="${APP,,}"
PROCESS="${PROCESS// /-}"

STORAGE="/storage"
INFO="/run/shm/msg.html"
PAGE="/run/shm/index.html"
TEMPLATE="/var/www/index.html"
Expand Down Expand Up @@ -79,8 +80,13 @@ fi

# Check folder

if [ ! -d "$STORAGE" ]; then
error "Storage folder ($STORAGE) not found!" && exit 13
if [[ "$COMMIT" != [Nn]* ]]; then
STORAGE="/local"
mkdir -p "$STORAGE"
else
if [ ! -d "$STORAGE" ]; then
error "Storage folder ($STORAGE) not found!" && exit 13
fi
fi

# Check filesystem
Expand Down

0 comments on commit e9edacc

Please sign in to comment.