mirror of
https://git.koehn.com/docker/postgres-wal-g.git
synced 2023-10-20 22:33:52 -05:00
20 lines
387 B
Python
Executable File
20 lines
387 B
Python
Executable File
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
# e.g., 14.3
|
|
PG_VERSION=$1
|
|
|
|
#e.g., v2.0.1
|
|
WALG_VERSION=$2
|
|
IMAGE_NAME=koehn/postgres-wal-g
|
|
|
|
build_image() {
|
|
BASE=$1
|
|
IMAGE=$IMAGE_NAME:$BASE-$WALG_VERSION
|
|
docker buildx build -t $IMAGE --push . --build-arg BASE=$PG_VERSION --build-arg WALG_RELEASE=$WALG_VERSION --ulimit memlock=16384:16384 --platform linux/amd64
|
|
}
|
|
|
|
build_image "$PG_VERSION" "$WALG_VERSION"
|
|
|