Loading .github/dependabot.yml +0 −4 Original line number Diff line number Diff line Loading @@ -8,7 +8,3 @@ updates: directory: / schedule: interval: weekly - package-ecosystem: gomod directory: /serial schedule: interval: daily .github/workflows/hub.yml +1 −0 Original line number Diff line number Diff line Loading @@ -5,6 +5,7 @@ on: - master paths: - readme.md - README.md - .github/workflows/hub.yml jobs: Loading .github/workflows/test.yml +6 −2 Original line number Diff line number Diff line Loading @@ -4,10 +4,14 @@ on: - master paths: - '**/*.sh' - '.github/workflows/test.yml' - '.github/workflows/check.yml' pull_request: paths: - '**/*.sh' - '.github/workflows/test.yml' - '.github/workflows/check.yml' name: "Test" permissions: {} Loading Dockerfile +8 −8 Original line number Diff line number Diff line FROM golang AS builder COPY serial/ /src/serial/ WORKDIR /src/serial FROM golang as builder WORKDIR / RUN git clone https://github.com/qemu-tools/qemu-host.git WORKDIR /qemu-host/src RUN go mod download RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o /src/serial/main . RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o /qemu-host/src/main . FROM debian:bookworm-slim Loading Loading @@ -34,12 +34,12 @@ RUN apt-get update && apt-get -y upgrade && \ COPY run/*.sh /run/ COPY agent/*.sh /agent/ COPY --from=builder /src/serial/main /run/serial.bin COPY --from=builder /qemu-host/src/main /run/host.bin RUN ["chmod", "+x", "/run/run.sh"] RUN ["chmod", "+x", "/run/check.sh"] RUN ["chmod", "+x", "/run/server.sh"] RUN ["chmod", "+x", "/run/serial.bin"] RUN ["chmod", "+x", "/run/host.bin"] VOLUME /storage Loading @@ -62,8 +62,8 @@ ENV VERSION=$VERSION_ARG LABEL org.opencontainers.image.created=${DATE_ARG} LABEL org.opencontainers.image.revision=${BUILD_ARG} LABEL org.opencontainers.image.version=${VERSION_ARG} LABEL org.opencontainers.image.url=https://hub.docker.com/r/kroese/virtual-dsm/ LABEL org.opencontainers.image.source=https://github.com/kroese/virtual-dsm/ LABEL org.opencontainers.image.url=https://hub.docker.com/r/kroese/virtual-dsm/ HEALTHCHECK --interval=30s --retries=1 CMD /run/check.sh Loading readme.md +1 −1 Original line number Diff line number Diff line Loading @@ -182,4 +182,4 @@ Based on an [article](https://jxcn.org/2022/04/vdsm-first-try/) by JXCN. ## Disclaimer Only run this container on Synology hardware, any other use is not permitted and might not be legal according to their terms. Only run this container on Synology hardware, any other use is not permitted and might not be legal. Loading
.github/dependabot.yml +0 −4 Original line number Diff line number Diff line Loading @@ -8,7 +8,3 @@ updates: directory: / schedule: interval: weekly - package-ecosystem: gomod directory: /serial schedule: interval: daily
.github/workflows/hub.yml +1 −0 Original line number Diff line number Diff line Loading @@ -5,6 +5,7 @@ on: - master paths: - readme.md - README.md - .github/workflows/hub.yml jobs: Loading
.github/workflows/test.yml +6 −2 Original line number Diff line number Diff line Loading @@ -4,10 +4,14 @@ on: - master paths: - '**/*.sh' - '.github/workflows/test.yml' - '.github/workflows/check.yml' pull_request: paths: - '**/*.sh' - '.github/workflows/test.yml' - '.github/workflows/check.yml' name: "Test" permissions: {} Loading
Dockerfile +8 −8 Original line number Diff line number Diff line FROM golang AS builder COPY serial/ /src/serial/ WORKDIR /src/serial FROM golang as builder WORKDIR / RUN git clone https://github.com/qemu-tools/qemu-host.git WORKDIR /qemu-host/src RUN go mod download RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o /src/serial/main . RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o /qemu-host/src/main . FROM debian:bookworm-slim Loading Loading @@ -34,12 +34,12 @@ RUN apt-get update && apt-get -y upgrade && \ COPY run/*.sh /run/ COPY agent/*.sh /agent/ COPY --from=builder /src/serial/main /run/serial.bin COPY --from=builder /qemu-host/src/main /run/host.bin RUN ["chmod", "+x", "/run/run.sh"] RUN ["chmod", "+x", "/run/check.sh"] RUN ["chmod", "+x", "/run/server.sh"] RUN ["chmod", "+x", "/run/serial.bin"] RUN ["chmod", "+x", "/run/host.bin"] VOLUME /storage Loading @@ -62,8 +62,8 @@ ENV VERSION=$VERSION_ARG LABEL org.opencontainers.image.created=${DATE_ARG} LABEL org.opencontainers.image.revision=${BUILD_ARG} LABEL org.opencontainers.image.version=${VERSION_ARG} LABEL org.opencontainers.image.url=https://hub.docker.com/r/kroese/virtual-dsm/ LABEL org.opencontainers.image.source=https://github.com/kroese/virtual-dsm/ LABEL org.opencontainers.image.url=https://hub.docker.com/r/kroese/virtual-dsm/ HEALTHCHECK --interval=30s --retries=1 CMD /run/check.sh Loading
readme.md +1 −1 Original line number Diff line number Diff line Loading @@ -182,4 +182,4 @@ Based on an [article](https://jxcn.org/2022/04/vdsm-first-try/) by JXCN. ## Disclaimer Only run this container on Synology hardware, any other use is not permitted and might not be legal according to their terms. Only run this container on Synology hardware, any other use is not permitted and might not be legal.