From 8bb600d5efd604574d5b49ba6920188239c1ce9f Mon Sep 17 00:00:00 2001 From: iceBear67 Date: Wed, 8 Jul 2026 23:47:53 +0800 Subject: [PATCH] fix bubble unit and revert alloy --- .env.example | 4 ---- image/build-image.sh | 4 ++-- image/configure.sh | 3 --- image/overlay/etc/conf.d/alloy.template | 10 ---------- image/overlay/etc/init.d/bubble | 5 ++++- 5 files changed, 6 insertions(+), 20 deletions(-) delete mode 100644 image/overlay/etc/conf.d/alloy.template diff --git a/.env.example b/.env.example index 965625d..43b2171 100644 --- a/.env.example +++ b/.env.example @@ -29,7 +29,3 @@ HOMELAB_TLD=ice HOMELAB_ZONE=cloud ADVERTISE_ROUTE=10.1.0.0/24 TSDNS_SUBNET=10.1.0.0/24 - -# /etc/conf.d/alloy.template -LOKI_URL= -LOKI_TENANT= diff --git a/image/build-image.sh b/image/build-image.sh index 3d424b4..d91de32 100755 --- a/image/build-image.sh +++ b/image/build-image.sh @@ -1,6 +1,6 @@ #!/bin/sh IMAGE_NAME="${IMAGE_NAME:=alpine-vm}" -IMAGE_SIZE="${IMAGE_SIZE:-1G}" +IMAGE_SIZE="${IMAGE_SIZE:-512M}" IMAGE_FORMAT="${IMAGE_FORMAT:=raw}" ALPINE_BRANCH="${ALPINE_BRANCH:=latest-stable}" KERNEL_FLAVOR="${KERNEL_FLAVOR:=virt}" @@ -31,7 +31,7 @@ alpine-make-vm-image \ --fs-skel-dir "$OVERLAY_DIR" \ --fs-skel-chown root:root \ --script-chroot \ - --packages "nftables curl docker openssh alloy" \ + --packages "nftables curl docker openssh" \ "$IMAGE_FILE" \ "$CONFIGURE_SH" | tee $TMP diff --git a/image/configure.sh b/image/configure.sh index 0d2cbe1..3cb65d2 100755 --- a/image/configure.sh +++ b/image/configure.sh @@ -36,9 +36,6 @@ rc-update add sshd rc-update add auth-server rc-update add bubble -mv /etc/conf.d/alloy.template /etc/conf.d/alloy -rc-update add alloy - step 'Adjust syslog' sed -i 's/^SYSLOGD_OPTS="\(.*\)"/SYSLOGD_OPTS="\1 -K"/' /etc/conf.d/syslog grep "SYSLOGD_OPTS" /etc/conf.d/syslog diff --git a/image/overlay/etc/conf.d/alloy.template b/image/overlay/etc/conf.d/alloy.template deleted file mode 100644 index 0d8f3dc..0000000 --- a/image/overlay/etc/conf.d/alloy.template +++ /dev/null @@ -1,10 +0,0 @@ -# Configuration for /etc/init.d/alloy - -STORAGE=/data/alloy -export ENVIRONMENT=prod -export LOKI_URL=_LOKI_URL_ -export LOKI_TENANT=_LOKI_TENANT_ -export NODE_NAME=$(cat /etc/hostname) - -# Comment out to disable process supervisor. -supervisor=supervise-daemon diff --git a/image/overlay/etc/init.d/bubble b/image/overlay/etc/init.d/bubble index 19c3e57..86de003 100755 --- a/image/overlay/etc/init.d/bubble +++ b/image/overlay/etc/init.d/bubble @@ -5,7 +5,10 @@ depend() { } start_pre() { - docker pull git.sfclub.cc/cloud/workspace-image:latest + until docker info >/dev/null 2>&1; do + sleep 2 + done + docker pull git.sfclub.cc/cloud/workspace-image:latest } command="/usr/bin/bubble"