-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(misc/docker): Create postgres image with mysqldump, mongodump an…
…d tergum
- Loading branch information
1 parent
3fa8a06
commit d51fb76
Showing
2 changed files
with
34 additions
and
0 deletions.
There are no files selected for viewing
12 changes: 12 additions & 0 deletions
12
misc/docker/postgres-with-mysqldump-mongodump-with-tergum/Dockerfile
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
ARG POSTGRES_VERSION=16 | ||
ARG TERGUM_VERSION=v0.35.0 | ||
FROM ghcr.io/tergum-extra/postgres-with-tergum:${POSTGRES_VERSION}-tergum-${TERGUM_VERSION} | ||
# Install mysqldump | ||
RUN apt-get update && apt-get install -y mariadb-client | ||
# Install mongodump | ||
RUN \ | ||
apt-get install -y gnupg curl && \ | ||
curl -fsSL https://www.mongodb.org/static/pgp/server-7.0.asc | gpg -o /usr/share/keyrings/mongodb-server-7.0.gpg --dearmor && \ | ||
echo "deb [ arch=amd64,arm64 signed-by=/usr/share/keyrings/mongodb-server-7.0.gpg ] https://repo.mongodb.org/apt/ubuntu jammy/mongodb-org/7.0 multiverse" | tee /etc/apt/sources.list.d/mongodb-org-7.0.list && \ | ||
apt-get update && \ | ||
apt-get install -y mongodb-org-tools |
22 changes: 22 additions & 0 deletions
22
misc/docker/postgres-with-mysqldump-mongodump-with-tergum/Makefile
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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
POSTGRES_VERSION=16 | ||
TERGUM_VERSION=v0.35.0 | ||
IMAGE=ghcr.io/tergum-extra/postgres-with-mysqldump-mongodump-tergum:${POSTGRES_VERSION}-tergum-${TERGUM_VERSION} | ||
|
||
all: | ||
make build-and-push POSTGRES_VERSION=16 | ||
make build-and-push POSTGRES_VERSION=15 | ||
make build-and-push POSTGRES_VERSION=13 | ||
|
||
build-and-push: build push | ||
|
||
build: | ||
docker build \ | ||
--pull \ | ||
--platform linux/amd64 \ | ||
--build-arg POSTGRES_VERSION=${POSTGRES_VERSION} \ | ||
--build-arg TERGUM_VERSION=${TERGUM_VERSION} \ | ||
-t ${IMAGE} \ | ||
. | ||
|
||
push: | ||
docker push ${IMAGE} |