Unverified Commit 59ffaa15 authored by Kroese's avatar Kroese Committed by GitHub
Browse files

feat: Default to alpine (#737)

parent d7d2223f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -55,9 +55,9 @@ COPY --chmod=744 ./web/conf/nginx.conf /etc/nginx/sites-enabled/web.conf
VOLUME /storage
EXPOSE 22 5900 8006

ENV BOOT="alpine"
ENV CPU_CORES="2"
ENV RAM_SIZE="2G"
ENV DISK_SIZE="16G"
ENV BOOT="http://example.com/image.iso"

ENTRYPOINT ["/usr/bin/tini", "-s", "/run/entry.sh"]
+2 −1
Original line number Diff line number Diff line
@@ -227,8 +227,9 @@ findFile "raw" && return 0
findFile "qcow2" && return 0

if [ -z "$BOOT" ] || [[ "$BOOT" == *"example.com/image.iso" ]]; then
  BOOT="alpine"
  hasDisk && return 0
  error "No value specified for the BOOT variable." && exit 64
  warn "no value specified for the BOOT variable, defaulting to \"alpine\"."
fi

url=$(getURL "$BOOT" "url") || exit 34