mirror of
https://github.com/psviderski/uncloud.git
synced 2026-08-26 19:13:34 +00:00
add make targets to build and push ucind image
This commit is contained in:
+3
-3
@@ -35,12 +35,12 @@ RUN apk --no-cache add crane
|
|||||||
RUN crane pull "${CORROSION_IMAGE}" /corrosion.tar
|
RUN crane pull "${CORROSION_IMAGE}" /corrosion.tar
|
||||||
|
|
||||||
|
|
||||||
FROM docker:27.3.1-dind AS machine
|
FROM docker:27.3.1-dind AS ucind
|
||||||
|
# Create system group and user 'uncloud'.
|
||||||
|
RUN addgroup -S uncloud && adduser -SHD -h /nonexistent -G uncloud -g "" uncloud
|
||||||
RUN apk --no-cache add \
|
RUN apk --no-cache add \
|
||||||
socat \
|
socat \
|
||||||
wireguard-tools
|
wireguard-tools
|
||||||
# Create system group and user 'uncloud'.
|
|
||||||
RUN addgroup -S uncloud && adduser -SHD -h /nonexistent -G uncloud -g "" uncloud
|
|
||||||
|
|
||||||
COPY --from=corrosion-image-tarball /corrosion.tar /images/corrosion.tar
|
COPY --from=corrosion-image-tarball /corrosion.tar /images/corrosion.tar
|
||||||
COPY scripts/docker/dind scripts/docker/entrypoint.sh /usr/local/bin/
|
COPY scripts/docker/dind scripts/docker/entrypoint.sh /usr/local/bin/
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
CORROSION_IMAGE ?= ghcr.io/psviderski/corrosion:latest
|
CORROSION_IMAGE ?= ghcr.io/psviderski/corrosion:latest
|
||||||
|
UCIND_IMAGE ?= ghcr.io/psviderski/ucind:latest
|
||||||
|
|
||||||
update-dev:
|
update-dev:
|
||||||
GOOS=linux GOARCH=amd64 go build -o uncloudd-linux-amd64 ./cmd/uncloudd && \
|
GOOS=linux GOARCH=amd64 go build -o uncloudd-linux-amd64 ./cmd/uncloudd && \
|
||||||
@@ -33,3 +34,11 @@ corrosion-image:
|
|||||||
.PHONY: corrosion-image-push
|
.PHONY: corrosion-image-push
|
||||||
corrosion-image-push: corrosion-image
|
corrosion-image-push: corrosion-image
|
||||||
docker push "$(CORROSION_IMAGE)"
|
docker push "$(CORROSION_IMAGE)"
|
||||||
|
|
||||||
|
.PHONY: ucind-image
|
||||||
|
ucind-image:
|
||||||
|
docker build -t "$(UCIND_IMAGE)" --target ucind .
|
||||||
|
|
||||||
|
.PHONY: ucind-image-push
|
||||||
|
ucind-image-push: ucind-image
|
||||||
|
docker push "$(UCIND_IMAGE)"
|
||||||
|
|||||||
Reference in New Issue
Block a user