Skip to content

Commit

Permalink
feat(misc/docker): Create postgres image with mysqldump, mongodump an…
Browse files Browse the repository at this point in the history
…d tergum
  • Loading branch information
ondrejsika committed May 19, 2024
1 parent 3fa8a06 commit d51fb76
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
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 misc/docker/postgres-with-mysqldump-mongodump-with-tergum/Makefile
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}

0 comments on commit d51fb76

Please sign in to comment.