-
-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
containers/pvbackup: Cleanup, automation
- Loading branch information
Showing
3 changed files
with
16 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,16 @@ | ||
FROM alpine | ||
FROM docker.io/alpine:3.20 | ||
|
||
MAINTAINER Haiku, Inc <haiku-inc@gmail.com> | ||
LABEL org.opencontainers.image.source https://github.com/haiku/infrastructure | ||
LABEL org.opencontainers.image.url https://github.com/haiku/infrastructure/tree/master/containers/tools/pvbackup | ||
LABEL org.opencontainers.image.vendor Haiku, Inc. | ||
LABEL org.opencontainers.image.source="https://github.com/haiku/infrastructure" | ||
LABEL org.opencontainers.image.url="https://github.com/haiku/infrastructure/tree/main/containers/tools/pvbackup" | ||
LABEL org.opencontainers.image.authors="Haiku, Inc." | ||
LABEL org.opencontainers.image.vendor="Haiku, Inc." | ||
LABEL org.opencontainers.image.description="pvbackup for Haiku Infrastructure" | ||
|
||
RUN apk add --update bash rsync gnupg rsync xz tar | ||
RUN apk add --update bash rsync gnupg rsync xz tar \ | ||
&& if [ "$(uname -m)" = "x86_64" ]; then wget https://dl.min.io/client/mc/release/linux-amd64/mc -O /usr/local/bin/mc; fi \ | ||
&& if [ "$(uname -m)" = "aarch64" ]; then wget https://dl.min.io/client/mc/release/linux-arm64/mc -O /usr/local/bin/mc; fi \ | ||
&& chmod 755 /usr/local/bin/mc \ | ||
&& mkdir -p /pvs | ||
|
||
ADD https://dl.minio.io/client/mc/release/linux-amd64/mc /usr/local/bin/mc | ||
ADD pvsync.sh /usr/local/bin/pvsync | ||
RUN chmod 755 /usr/local/bin/mc | ||
RUN mkdir -p /pvs | ||
|
||
ENTRYPOINT ["/usr/local/bin/pvsync"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,4 @@ | ||
VERSION = 1.2 | ||
VERSION = $(shell cat VERSION | grep -Ev "^#" | tail -1)-development | ||
REGISTRY = ghcr.io/haiku | ||
default: | ||
docker build --no-cache --tag ${REGISTRY}/pvbackup:${VERSION} . | ||
push: | ||
docker push ${REGISTRY}/pvbackup:${VERSION} | ||
podman build --no-cache --tag ${REGISTRY}/pvbackup:${VERSION} . |