unify alpine version
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
FROM alpine:latest AS hypervisor
|
FROM alpine:3.24.1 AS hypervisor
|
||||||
ADD ./scripts/setup-hypervisor.sh /setup.sh
|
ADD ./scripts/setup-hypervisor.sh /setup.sh
|
||||||
# Download cloud hypervisor
|
# Download cloud hypervisor
|
||||||
RUN apk update && apk add bash curl jq tini linux-virt && sh /setup.sh && rm /setup.sh && mkdir /app
|
RUN apk update && apk add bash curl jq tini linux-virt && sh /setup.sh && rm /setup.sh && mkdir /app
|
||||||
|
|||||||
@@ -3,5 +3,4 @@ iface lo inet loopback
|
|||||||
|
|
||||||
auto eth0
|
auto eth0
|
||||||
iface eth0 inet dhcp
|
iface eth0 inet dhcp
|
||||||
pre-up modprobe af_packet
|
|
||||||
post-up ip route del default || true; ip route add default via GATEWAY_ADDRESS
|
post-up ip route del default || true; ip route add default via GATEWAY_ADDRESS
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ RUN CGO_ENABLED=0 GOOS=$TARGETOS GOARCH=$TARGETARCH \
|
|||||||
CGO_ENABLED=0 GOOS=$TARGETOS GOARCH=$TARGETARCH \
|
CGO_ENABLED=0 GOOS=$TARGETOS GOARCH=$TARGETARCH \
|
||||||
go build -o /build/auth_server ./util/
|
go build -o /build/auth_server ./util/
|
||||||
|
|
||||||
FROM alpine:latest AS rootfs-builder
|
FROM alpine:3.24.1 AS rootfs-builder
|
||||||
ENV CLOUD_CONFIG_REPO="https://git.sfclub.cc/cloud/bearnet"
|
ENV CLOUD_CONFIG_REPO="https://git.sfclub.cc/cloud/bearnet"
|
||||||
ENV CLOUD_CONFIG_REVISION="wish"
|
ENV CLOUD_CONFIG_REVISION="wish"
|
||||||
ENV CLOUD_GATEWAY_ADDRESS="10.0.0.119"
|
ENV CLOUD_GATEWAY_ADDRESS="10.0.0.119"
|
||||||
@@ -23,7 +23,7 @@ COPY --from=bubble-builder /build/daemon /bin/bubble
|
|||||||
COPY --from=bubble-builder /build/auth_server /bin/auth-server
|
COPY --from=bubble-builder /build/auth_server /bin/auth-server
|
||||||
RUN --security=insecure \
|
RUN --security=insecure \
|
||||||
--mount=type=bind,from=host-modules,source=/,target=/lib/modules \
|
--mount=type=bind,from=host-modules,source=/,target=/lib/modules \
|
||||||
cd /kitchen && rm -f vm.raw && ./build-image.sh
|
cd /kitchen && rm -f vm.raw && ALPINE_BRANCH="3.24.1" ./build-image.sh
|
||||||
|
|
||||||
FROM scratch AS export
|
FROM scratch AS export
|
||||||
COPY --from=rootfs-builder /kitchen/vm.raw /vm.raw
|
COPY --from=rootfs-builder /kitchen/vm.raw /vm.raw
|
||||||
|
|||||||
Reference in New Issue
Block a user