mirror of
https://git.koehn.com/docker/postgres-wal-g.git
synced 2026-11-29 17:43:20 -06:00
Compare commits
17
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9e3a846dc1 | ||
|
|
ff60201d72 | ||
|
|
17c6ecb0d7 | ||
|
|
f888c65103 | ||
|
|
2dbb67d57d | ||
|
|
4821a6be85 | ||
|
|
b4004f97e1 | ||
|
|
d21915e04f | ||
|
|
b1025bf7be | ||
|
|
f49433d3ee | ||
|
|
53618b8e55 | ||
|
|
179daa3d14 | ||
|
|
7fe34cd27c | ||
|
|
7b1cc24f2e | ||
|
|
66d4b429cf | ||
|
|
8d201da1a2 | ||
|
|
226ba8b2d0 |
No files matched your search
@@ -1,29 +0,0 @@
|
|||||||
stages:
|
|
||||||
- build
|
|
||||||
|
|
||||||
build:
|
|
||||||
stage: build
|
|
||||||
timeout: 3h
|
|
||||||
image:
|
|
||||||
name: moby/buildkit:latest
|
|
||||||
entrypoint: [""]
|
|
||||||
script:
|
|
||||||
- |
|
|
||||||
mkdir /root/.docker
|
|
||||||
cat > /root/.docker/config.json <<EOF
|
|
||||||
{
|
|
||||||
"auths": {
|
|
||||||
"https://index.docker.io/v1/": {
|
|
||||||
"auth":"${DOCKER_AUTH}"
|
|
||||||
},
|
|
||||||
"${CI_REGISTRY}": {
|
|
||||||
"username": "${CI_REGISTRY_USER}",
|
|
||||||
"password": "${CI_REGISTRY_PASSWORD}"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
EOF
|
|
||||||
- buildctl-daemonless.sh build --frontend=dockerfile.v0 --local context=$CI_PROJECT_DIR --local dockerfile=$CI_PROJECT_DIR --output type=image,name=docker.io/koehn/postgres-wal-g:14.2-$CI_COMMIT_TAG,push=true --opt build-arg:BASE=14.2 --opt build-arg:WALG_RELEASE=$(echo $CI_COMMIT_TAG | awk -F '-' '{print $1}') --opt platform=linux/amd64
|
|
||||||
only:
|
|
||||||
- tags
|
|
||||||
|
|
||||||
@@ -0,0 +1,38 @@
|
|||||||
|
when:
|
||||||
|
event: cron
|
||||||
|
cron: "check-base-image"
|
||||||
|
|
||||||
|
pipeline:
|
||||||
|
check-if-base-image-changed:
|
||||||
|
image: git.koehn.com/docker/postgres-wal-g-build-checker:v0.0.1
|
||||||
|
settings:
|
||||||
|
base: postgres:15.2
|
||||||
|
image: koehn/postgres-wal-g
|
||||||
|
platforms: linux/amd64
|
||||||
|
failure: ignore
|
||||||
|
|
||||||
|
build:
|
||||||
|
image: woodpeckerci/plugin-docker-buildx
|
||||||
|
group: rebuild
|
||||||
|
secrets: [docker_username, docker_password]
|
||||||
|
settings:
|
||||||
|
repo: koehn/postgres-wal-g
|
||||||
|
platforms: linux/amd64
|
||||||
|
when:
|
||||||
|
status: [ failure ]
|
||||||
|
|
||||||
|
notify:
|
||||||
|
image: plugins/matrix
|
||||||
|
secrets: [matrix_password, matrix_accesstoken]
|
||||||
|
group: rebuild
|
||||||
|
settings:
|
||||||
|
homeserver: https://koehn.com
|
||||||
|
roomid: "!SxdrFDKduRfxciYhEc:koehn.com"
|
||||||
|
username: woodpecker
|
||||||
|
password:
|
||||||
|
from_secret: matrix_password
|
||||||
|
accesstoken:
|
||||||
|
from_secret: matrix_accesstoken
|
||||||
|
template: "The postgres-wal-g image is out of date and needs to be rebuilt."
|
||||||
|
when:
|
||||||
|
status: [ failure ]
|
||||||
+2
-2
@@ -1,8 +1,8 @@
|
|||||||
ARG BASE
|
ARG BASE=latest
|
||||||
|
|
||||||
FROM golang:1 as build
|
FROM golang:1 as build
|
||||||
|
|
||||||
ARG WALG_RELEASE=v1.1
|
ARG WALG_RELEASE=master
|
||||||
|
|
||||||
RUN apt-get update && apt-get install -qqy --no-install-recommends --no-install-suggests cmake liblzo2-dev libsodium23 libsodium-dev && \
|
RUN apt-get update && apt-get install -qqy --no-install-recommends --no-install-suggests cmake liblzo2-dev libsodium23 libsodium-dev && \
|
||||||
cd /go/src/ && \
|
cd /go/src/ && \
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ To run a full backup, simply run `/wal-g/backup.sh`.
|
|||||||
## Continuous Backups
|
## Continuous Backups
|
||||||
These will happen automatically once you've started Postgres with your edited
|
These will happen automatically once you've started Postgres with your edited
|
||||||
`postgresql.conf` file (see
|
`postgresql.conf` file (see
|
||||||
[Configuration](https://gitlab.koehn.com/docker/postgres-wal-g#configuration), above).
|
[Configuration](#configuration), above).
|
||||||
|
|
||||||
## Recovery
|
## Recovery
|
||||||
Testing recovery is simple: run a new Docker container with the correct
|
Testing recovery is simple: run a new Docker container with the correct
|
||||||
|
|||||||
Reference in new issue
Block a user