Skip to content

Commit

Permalink
containers/pvbackup: Cleanup, automation
Browse files Browse the repository at this point in the history
  • Loading branch information
kallisti5 committed Jan 7, 2025
1 parent a3796d1 commit 64ef705
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 18 deletions.
7 changes: 3 additions & 4 deletions containers/tools/pgbackup/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,12 @@ LABEL org.opencontainers.image.source="https://github.com/haiku/infrastructure"
LABEL org.opencontainers.image.url="https://github.com/haiku/infrastructure/tree/main/containers/tools/pgbackup"
LABEL org.opencontainers.image.authors="Haiku, Inc."
LABEL org.opencontainers.image.vendor="Haiku, Inc."
LABEL org.opencontainers.image.description="cgit Interface for Haiku"
LABEL org.opencontainers.image.description="pgbackup for Haiku Infrastructure"

RUN apk add --update bash rsync gnupg rsync xz tar postgresql14-client jq \
&& 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;
&& 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

ADD pgsync.sh /usr/local/bin/pgsync
RUN chmod 755 /usr/local/bin/mc

ENTRYPOINT ["/usr/local/bin/pgsync"]
21 changes: 11 additions & 10 deletions containers/tools/pvbackup/Dockerfile
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"]
6 changes: 2 additions & 4 deletions containers/tools/pvbackup/Makefile
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} .

0 comments on commit 64ef705

Please sign in to comment.