diff --git a/.bash/aliases.sh b/.bash/aliases.sh index ce9c604..bf5c349 100644 --- a/.bash/aliases.sh +++ b/.bash/aliases.sh @@ -10,15 +10,15 @@ alias cd...='cd ../../..' # replace cat with bat if [ -x "$(command -v bat)" ]; then - alias cat='bat -pp' + alias cat='bat -pp' fi # kubectl aliases if [ -x "$(command -v kubectl)" ]; then - alias kc='kubectl' - alias kclsp='kubectl get pods -A -o wide' - alias kclsn='kubectl get nodes -o wide' - alias kclss='kubectl get services -A' + alias kc='kubectl' + alias kclsp='kubectl get pods -A -o wide' + alias kclsn='kubectl get nodes -o wide' + alias kclss='kubectl get services -A' fi # show the aliases @@ -33,6 +33,8 @@ alias pg_dump12='/usr/lib/postgresql/12/bin/pg_dump' alias pg_dump13='/usr/lib/postgresql/13/bin/pg_dump' alias pg_dump14='/usr/lib/postgresql/14/bin/pg_dump' alias pg_dump15='/usr/lib/postgresql/15/bin/pg_dump' +alias pg_dump16='/usr/lib/postgresql/16/bin/pg_dump' +alias pg_dump17='/usr/lib/postgresql/17/bin/pg_dump' # pg_dump_all aliases alias pg_dumpall10='/usr/lib/postgresql/10/bin/pg_dumpall' @@ -49,6 +51,8 @@ alias pg_restore12='/usr/lib/postgresql/12/bin/pg_restore' alias pg_restore13='/usr/lib/postgresql/13/bin/pg_restore' alias pg_restore14='/usr/lib/postgresql/14/bin/pg_restore' alias pg_restore15='/usr/lib/postgresql/15/bin/pg_restore' +alias pg_restore16='/usr/lib/postgresql/16/bin/pg_restore' +alias pg_restore17='/usr/lib/postgresql/17/bin/pg_restore' # pg_basebackup aliases alias pg_basebackup10='/usr/lib/postgresql/10/bin/pg_basebackup' diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4ff2059..0e702ca 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -13,42 +13,34 @@ jobs: name: "Build and release" runs-on: ubuntu-latest steps: - - - name: Checkout + - name: Checkout uses: actions/checkout@v3 - - - name: Docker meta + - name: Docker meta id: meta uses: docker/metadata-action@v4 with: images: | ghcr.io/st3ga/dumputils - st3ga/dumputils tags: | type=semver,pattern={{version}} - - - name: Set up QEMU + - name: Set up QEMU uses: docker/setup-qemu-action@v2 - - - name: Set up Docker Buildx + - name: Set up Docker Buildx uses: docker/setup-buildx-action@v2 - - - name: Login to Docker Hub + - name: Login to Docker Hub if: github.event_name != 'pull_request' uses: docker/login-action@v2 with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} - - - name: Login to GHCR + - name: Login to GHCR if: github.event_name != 'pull_request' uses: docker/login-action@v2 with: registry: ghcr.io username: ${{ github.repository_owner }} password: ${{ secrets.GITHUB_TOKEN }} - - - name: Build and push + - name: Build and push uses: docker/build-push-action@v3 with: context: . diff --git a/Dockerfile b/Dockerfile index 5f42907..6e461c5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,10 +5,10 @@ RUN apk add git --no-cache WORKDIR /build RUN git clone https://github.com/timescale/timescaledb-parallel-copy.git \ - && cd timescaledb-parallel-copy \ - && git checkout ${TS_PARALLEL_COPY_VERSION} \ - && cd cmd/timescaledb-parallel-copy \ - && CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o /build/timescaledb-parallel-copy + && cd timescaledb-parallel-copy \ + && git checkout ${TS_PARALLEL_COPY_VERSION} \ + && cd cmd/timescaledb-parallel-copy \ + && CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o /build/timescaledb-parallel-copy FROM ubuntu:22.04 @@ -23,73 +23,75 @@ COPY .vimrc /root/ COPY .bash /root/.bash/ COPY --from=golang-builder /build/timescaledb-parallel-copy /usr/bin/ - # create base dirs +# create base dirs RUN mkdir -p /opt/backups /root/.config /root/.kube \ - && find /root/bin/ -type f -print0 | xargs -0 chmod +x \ - # symlink python3 to python - && ln -s /usr/bin/python3 /usr/bin/python \ - # install base packages - && apt-get update -y \ - && apt-get install -y --no-install-recommends \ - # common utils - vim gpg gnupg2 git ca-certificates software-properties-common apt-transport-https \ - # net utils - curl wget iputils-ping openssh-client \ - # archive utils - zip unzip bzip2 p7zip-full \ - # monitoring utils - procps htop \ - # percona-toolkit dependencies - libdbi-perl libdbd-mysql-perl libterm-readkey-perl libio-socket-ssl-perl + && find /root/bin/ -type f -print0 | xargs -0 chmod +x \ + # symlink python3 to python + && ln -s /usr/bin/python3 /usr/bin/python \ + # install base packages + && apt-get update -y \ + && apt-get install -y --no-install-recommends \ + # common utils + vim gpg gnupg2 git ca-certificates software-properties-common apt-transport-https \ + # net utils + curl wget iputils-ping openssh-client \ + # archive utils + zip unzip bzip2 p7zip-full \ + # monitoring utils + procps htop \ + # percona-toolkit dependencies + libdbi-perl libdbd-mysql-perl libterm-readkey-perl libio-socket-ssl-perl RUN cd /tmp/ \ - # add repository lists - && curl -fsSL https://www.postgresql.org/media/keys/ACCC4CF8.asc | gpg --dearmor -o /etc/apt/trusted.gpg.d/postgresql.gpg \ - && echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" | tee /etc/apt/sources.list.d/pgdg.list \ - && apt-key adv --fetch-keys 'https://mariadb.org/mariadb_release_signing_key.asc' \ - && add-apt-repository "deb [arch=amd64,arm64,ppc64el] https://atl.mirrors.knownhost.com/mariadb/repo/10.8/ubuntu $(lsb_release -cs) main" \ - && curl -fsSL https://packages.redis.io/gpg | gpg --dearmor -o /usr/share/keyrings/redis-archive-keyring.gpg \ - && echo "deb [signed-by=/usr/share/keyrings/redis-archive-keyring.gpg] https://packages.redis.io/deb $(lsb_release -cs) main" | tee /etc/apt/sources.list.d/redis.list \ - # update and install postgres-client, mariadb-client and redis-tools - && apt-get update -y \ - && apt-get install -y --no-install-recommends \ - postgresql-client-10 \ - postgresql-client-11 \ - postgresql-client-12 \ - postgresql-client-13 \ - postgresql-client-14 \ - postgresql-client-15 \ - mariadb-client \ - redis-tools \ - kafkacat \ - # install minio client - && wget -q https://dl.min.io/client/mc/release/linux-amd64/mc \ - && mv mc /usr/local/bin/mc \ - && chmod +x /usr/local/bin/mc \ - # install mongo tools - && wget -q https://fastdl.mongodb.org/tools/db/mongodb-database-tools-debian10-x86_64-${MONGO_TOOLS_VERSION}.deb -O mongo-tools.deb \ - && dpkg -i mongo-tools.deb \ - # Install kubectl - && curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" \ - && install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl \ - # Install percona-toolkit - && wget -q https://downloads.percona.com/downloads/percona-toolkit/3.5.0/binary/debian/jammy/x86_64/percona-toolkit_3.5.0-5.jammy_amd64.deb -O percona-toolkit.deb \ - && dpkg -i percona-toolkit.deb \ - # Install AWS cli - && curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" \ - && unzip awscliv2.zip \ - && ./aws/install \ - # Install bat - && wget -q "https://github.com/sharkdp/bat/releases/download/v${BAT_VERSION}/bat_${BAT_VERSION}_amd64.deb" -O bat.deb \ - && dpkg -i bat.deb \ - # configure vim - && git clone https://github.com/VundleVim/Vundle.vim.git --depth=1 --branch master --single-branch ~/.vim/bundle/Vundle.vim \ - && vim +VundleInstall +qall \ - # clean - && rm -rf /tmp/* \ - && rm -rf /var/lib/apt/lists/* \ - && rm -rf /root/.wget-hsts \ - && rm -rf /root/.vim/bundle/Vundle.vim/.git + # add repository lists + && curl -fsSL https://www.postgresql.org/media/keys/ACCC4CF8.asc | gpg --dearmor -o /etc/apt/trusted.gpg.d/postgresql.gpg \ + && echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" | tee /etc/apt/sources.list.d/pgdg.list \ + && apt-key adv --fetch-keys 'https://mariadb.org/mariadb_release_signing_key.asc' \ + && add-apt-repository "deb [arch=amd64,arm64,ppc64el] https://atl.mirrors.knownhost.com/mariadb/repo/10.8/ubuntu $(lsb_release -cs) main" \ + && curl -fsSL https://packages.redis.io/gpg | gpg --dearmor -o /usr/share/keyrings/redis-archive-keyring.gpg \ + && echo "deb [signed-by=/usr/share/keyrings/redis-archive-keyring.gpg] https://packages.redis.io/deb $(lsb_release -cs) main" | tee /etc/apt/sources.list.d/redis.list \ + # update and install postgres-client, mariadb-client and redis-tools + && apt-get update -y \ + && apt-get install -y --no-install-recommends \ + postgresql-client-10 \ + postgresql-client-11 \ + postgresql-client-12 \ + postgresql-client-13 \ + postgresql-client-14 \ + postgresql-client-15 \ + postgresql-client-16 \ + postgresql-client-17 \ + mariadb-client \ + redis-tools \ + kafkacat \ + # install minio client + && wget -q https://dl.min.io/client/mc/release/linux-amd64/mc \ + && mv mc /usr/local/bin/mc \ + && chmod +x /usr/local/bin/mc \ + # install mongo tools + && wget -q https://fastdl.mongodb.org/tools/db/mongodb-database-tools-debian10-x86_64-${MONGO_TOOLS_VERSION}.deb -O mongo-tools.deb \ + && dpkg -i mongo-tools.deb \ + # Install kubectl + && curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" \ + && install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl \ + # Install percona-toolkit + && wget -q https://downloads.percona.com/downloads/percona-toolkit/3.5.0/binary/debian/jammy/x86_64/percona-toolkit_3.5.0-5.jammy_amd64.deb -O percona-toolkit.deb \ + && dpkg -i percona-toolkit.deb \ + # Install AWS cli + && curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" \ + && unzip awscliv2.zip \ + && ./aws/install \ + # Install bat + && wget -q "https://github.com/sharkdp/bat/releases/download/v${BAT_VERSION}/bat_${BAT_VERSION}_amd64.deb" -O bat.deb \ + && dpkg -i bat.deb \ + # configure vim + && git clone https://github.com/VundleVim/Vundle.vim.git --depth=1 --branch master --single-branch ~/.vim/bundle/Vundle.vim \ + && vim +VundleInstall +qall \ + # clean + && rm -rf /tmp/* \ + && rm -rf /var/lib/apt/lists/* \ + && rm -rf /root/.wget-hsts \ + && rm -rf /root/.vim/bundle/Vundle.vim/.git WORKDIR /root diff --git a/Makefile b/Makefile index e9087a3..f345882 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ DOCKER := $(shell command -v docker) -IMAGE_TAG := st3ga/dumputils:local-test +IMAGE_TAG := ghcr.io/athennamind/dumputils:local-test .PHONY: default default: build-run diff --git a/README.md b/README.md index 8b2a4bb..eb1e842 100644 --- a/README.md +++ b/README.md @@ -15,22 +15,21 @@ Table of Contents ================= - * **[What is it](<#what-is-it>)** - * **[What's inside](<#whats-inside>)** - * **[Tools](<#tools>)** - * **[Aliases](doc/ALIASES.md)** - * **[Helper Scripts](doc/HELPERS.md)** - * **[Usage](#usage)** - * **[Run](#run)** - * **[Build](#build)** - * **[Example Usage](#examples)** - * **[Backup PostgreSQL and upload to S3](<#backup-postgresql-and-upload-to-s3>)** - * **[Use your existing credentials](<#use-your-existing-credentials>)** - * **[Run inside Kubernetes](<#run-inside-kubernetes>)** - * **[Add to docker-compose](<#add-to-docker-compose>)** +* **[What is it](<#what-is-it>)** +* **[What's inside](<#whats-inside>)** + * **[Tools](<#tools>)** + * **[Aliases](doc/ALIASES.md)** + * **[Helper Scripts](doc/HELPERS.md)** +* **[Usage](#usage)** + * **[Run](#run)** + * **[Build](#build)** +* **[Example Usage](#examples)** + * **[Backup PostgreSQL and upload to S3](<#backup-postgresql-and-upload-to-s3>)** + * **[Use your existing credentials](<#use-your-existing-credentials>)** + * **[Run inside Kubernetes](<#run-inside-kubernetes>)** + * **[Add to docker-compose](<#add-to-docker-compose>)** - ## What is it This container simplifies the process of managing database backups by providing easy access to a range of backup and restore utilities. It includes additional aliases and helpful scripts to make it easier to use, and is designed to solve the problem of installing and managing multiple versions of tools and their dependencies on your local machine or server. It presents you with a structured shell environment where you can make your backup/restore procedures manually or automate with scripts while running inside Docker Compose or Kubernetes. @@ -39,85 +38,77 @@ This container simplifies the process of managing database backups by providing ### Tools -- **PostgreSQL Client Tools Version: 10, 11, 12, 13, 14 and 15** - - **[psql](https://www.postgresql.org/docs/15/app-psql.html)** - - **[pg_dump](https://www.postgresql.org/docs/current/app-pgdump.html)** - - **[pg_dumpall](https://www.postgresql.org/docs/current/app-pg-dumpall.html)** - - **[pg_restore](https://www.postgresql.org/docs/current/app-pgrestore.html)** - - **[pg_basebackup](https://www.postgresql.org/docs/current/app-pgbasebackup.html)** - -- **[timescaledb-parallel-copy](https://github.com/timescale/timescaledb-parallel-copy) version v0.4.0** -- **[percona-toolkit](https://docs.percona.com/percona-toolkit/) version 3.5.0-2** - -- **Mongo tools version 100.5.2** - - **[mongodump](https://www.mongodb.com/docs/database-tools/mongodump/)** - - **[mongoexport](https://www.mongodb.com/docs/database-tools/mongoexport/)** - - **[mongofiles](https://www.mongodb.com/docs/database-tools/mongofiles/)** - - **[mongoimport](https://www.mongodb.com/docs/database-tools/mongoimport/)** - - **[mongorestore](https://www.mongodb.com/docs/database-tools/mongorestore/)** - - **[mongostat](https://www.mongodb.com/docs/database-tools/mongostat/)** - - **[mongotop](https://www.mongodb.com/docs/database-tools/mongotop/)** - -- **MariaDB Client Tools version 10.8** - - **[mysql](https://mariadb.com/kb/en/mysql-command-line-client/)** - - **[mysql_find_rows](https://mariadb.com/kb/en/mysql_find_rows/)** - - **[mysql_fix_extensions](https://mariadb.com/kb/en/mysql_fix_extensions/)** - - **[mysql_waitpid](https://mariadb.com/kb/en/mysql_find_rows/)** - - **[mysqlaccess](https://mariadb.com/kb/en/mysqlaccess/)** - - **[mysqladmin](https://mariadb.com/kb/en/mysqladmin/)** - - **[mysqlanalyze](https://www.commandlinux.com/man-page/man1/mysqlanalyze.1.html)** - - **[mysqlcheck](https://mariadb.com/kb/en/mysqlcheck/)** - - **[mysqldump](https://mariadb.com/kb/en/mariadb-dumpmysqldump/)** - - **[mysqlimport](https://mariadb.com/kb/en/mysqldumpslow/)** - - **[mysqlrepair](https://www.commandlinux.com/man-page/man1/mysqlrepair.1.html)** - - **[mysqlreport](https://mariadb.com/kb/en/mysqlreport/)** - - **[mysqlshow](https://mariadb.com/kb/en/mysqlshow/)** - - **[mysqlslap](https://mariadb.com/kb/en/mysqlslap/)** - -- **[kubectl](https://kubernetes.io/docs/reference/kubectl/) latest stable version** -- **[MinIO Client](https://min.io/docs/minio/linux/reference/minio-mc.html) latest stable version** -- **[AWS cli](https://aws.amazon.com/cli/) latest stable version** -- **[Redis cli](https://redis.io/docs/manual/cli/) latest stable version** -- **[kcat (kafkacat)](https://github.com/edenhill/kcat) Version 1.6.0** -- **[bat](https://github.com/sharkdp/bat) v0.22.1 for Syntax highlighting** -- **net-utils, curl, wget** -- **zip, unzip, tar, etc...** -- **aliases and nice shell prompt** -- **shell utils (tmux, bat, htop)** -- **How To common tricks** +* **PostgreSQL Client Tools Version: 10, 11, 12, 13, 14 and 15** + * **[psql](https://www.postgresql.org/docs/15/app-psql.html)** + * **[pg_dump](https://www.postgresql.org/docs/current/app-pgdump.html)** + * **[pg_dumpall](https://www.postgresql.org/docs/current/app-pg-dumpall.html)** + * **[pg_restore](https://www.postgresql.org/docs/current/app-pgrestore.html)** + * **[pg_basebackup](https://www.postgresql.org/docs/current/app-pgbasebackup.html)** + +* **[timescaledb-parallel-copy](https://github.com/timescale/timescaledb-parallel-copy) version v0.4.0** +* **[percona-toolkit](https://docs.percona.com/percona-toolkit/) version 3.5.0-2** + +* **Mongo tools version 100.5.2** + * **[mongodump](https://www.mongodb.com/docs/database-tools/mongodump/)** + * **[mongoexport](https://www.mongodb.com/docs/database-tools/mongoexport/)** + * **[mongofiles](https://www.mongodb.com/docs/database-tools/mongofiles/)** + * **[mongoimport](https://www.mongodb.com/docs/database-tools/mongoimport/)** + * **[mongorestore](https://www.mongodb.com/docs/database-tools/mongorestore/)** + * **[mongostat](https://www.mongodb.com/docs/database-tools/mongostat/)** + * **[mongotop](https://www.mongodb.com/docs/database-tools/mongotop/)** + +* **MariaDB Client Tools version 10.8** + * **[mysql](https://mariadb.com/kb/en/mysql-command-line-client/)** + * **[mysql_find_rows](https://mariadb.com/kb/en/mysql_find_rows/)** + * **[mysql_fix_extensions](https://mariadb.com/kb/en/mysql_fix_extensions/)** + * **[mysql_waitpid](https://mariadb.com/kb/en/mysql_find_rows/)** + * **[mysqlaccess](https://mariadb.com/kb/en/mysqlaccess/)** + * **[mysqladmin](https://mariadb.com/kb/en/mysqladmin/)** + * **[mysqlanalyze](https://www.commandlinux.com/man-page/man1/mysqlanalyze.1.html)** + * **[mysqlcheck](https://mariadb.com/kb/en/mysqlcheck/)** + * **[mysqldump](https://mariadb.com/kb/en/mariadb-dumpmysqldump/)** + * **[mysqlimport](https://mariadb.com/kb/en/mysqldumpslow/)** + * **[mysqlrepair](https://www.commandlinux.com/man-page/man1/mysqlrepair.1.html)** + * **[mysqlreport](https://mariadb.com/kb/en/mysqlreport/)** + * **[mysqlshow](https://mariadb.com/kb/en/mysqlshow/)** + * **[mysqlslap](https://mariadb.com/kb/en/mysqlslap/)** + +* **[kubectl](https://kubernetes.io/docs/reference/kubectl/) latest stable version** +* **[MinIO Client](https://min.io/docs/minio/linux/reference/minio-mc.html) latest stable version** +* **[AWS cli](https://aws.amazon.com/cli/) latest stable version** +* **[Redis cli](https://redis.io/docs/manual/cli/) latest stable version** +* **[kcat (kafkacat)](https://github.com/edenhill/kcat) Version 1.6.0** +* **[bat](https://github.com/sharkdp/bat) v0.22.1 for Syntax highlighting** +* **net-utils, curl, wget** +* **zip, unzip, tar, etc...** +* **aliases and nice shell prompt** +* **shell utils (tmux, bat, htop)** +* **How To common tricks** ## Usage ### Run -The prebuild images are pushed to Github (ghcr.io) and Dockerhub (docker.io). You can use whatever meets your expectations to run the image as follows: +The prebuild images are pushed to Github (ghcr.io) `The latest tag is stable and suitable for use. It reflects to the latest release` -- **Github Registry** - -```bash -docker run --rm --name dumputils \ --h dumputils -v /opt/backups:/opt/backups \ --it ghcr.io/st3ga/dumputils:latest -``` - -- **Docker Registry** +* **Github Registry** ```bash docker run --rm --name dumputils \ -h dumputils -v /opt/backups:/opt/backups \ --it st3ga/dumputils:latest +-it ghcr.io/athennamind/dumputils:latest ``` To run specific release version of your choice just use the desired release tag: -- **Run version 1.3.0** +* **Run version 1.3.0** ```bash docker run --rm --name dumputils \ -h dumputils -v /opt/backups:/opt/backups \ --it st3ga/dumputils:1.3.0 +-it docker pull ghcr.io/athennamind/dumputils:1.3.0 ``` ### Build @@ -138,7 +129,7 @@ Using the container to do manual backup of database called `sales` inside Postgr ```bash user@machine: mkdir -p /opt/backups -user@machine: docker run --rm --name dumputils -h dumputils -v /opt/backups:/opt/backups -it st3ga/dumputils:latest +user@machine: docker run --rm --name dumputils -h dumputils -v /opt/backups:/opt/backups -it ghcr.io/athennamind/dumputils:latest [root@dumputils] cd /opt/backups/ [root@dumputils] export PGPASSWORD="" @@ -157,20 +148,20 @@ docker run --rm --name dumputils -h dumputils \ -v $HOME/.config/kube:/root/.config/kube \ -v $HOME/.aws/:/root/.aws \ -v $HOME/.azure:/root/.azure \ --it st3ga/dumputils:latest +-it ghcr.io/athennamind/dumputils:latest ``` ### Run inside Kubernetes -- Deploy the stack +* Deploy the stack -Increase the [volume size](https://github.com/st3ga/dumputils-container/blob/main/examples/k8s/deployment/1-pvc.yaml#L9) of your data mounted in /opt/backups to match your needs. The default value is 5 Gigabytes which is suitable only for small backups and test purposes. You can entirely remove the Persistence Volume Claim if you plan to directly upload your backups somewhere right after creation. +Increase the [volume size](https://github.com/st3ga/dumputils-container/blob/main/examples/k8s/deployment/1-pvc.yaml#L9) of your data mounted in /opt/backups to match your needs. The default value is 5 Gigabytes which is suitable only for small backups and test purposes. You can entirely remove the Persistence Volume Claim if you plan to directly upload your backups somewhere right after creation. ```bash kubectl apply -f examples/k8s/deployment/ ``` -- Validate +* Validate ```bash kubectl get all -n dumputils @@ -190,7 +181,7 @@ NAME STATUS VOLUME CAPACITY ACCESS MODES ST dumputils-storage Bound pvc-xxx 5Gi RWO local-path 1m ``` -- Use +* Use From now on you can use your dumputils instance by starting a shell with the following commands: @@ -214,9 +205,9 @@ $(kubectl get pods --template \ └──╼ # ``` -### Add to docker-compose +### Add to docker-compose -To add dumputils to your existing docker-compose stack refer to this [example](https://github.com/st3ga/dumputils-container/blob/main/examples/docker-compose/docker-compose.yml#L49). +To add dumputils to your existing docker-compose stack refer to this [example](https://github.com/st3ga/dumputils-container/blob/main/examples/docker-compose/docker-compose.yml#L49). ```bash # /opt/shared/backups will be mounted in dumputils so you can use diff --git a/examples/docker-compose/docker-compose.yml b/examples/docker-compose/docker-compose.yml index cc26ba6..194ba86 100644 --- a/examples/docker-compose/docker-compose.yml +++ b/examples/docker-compose/docker-compose.yml @@ -1,4 +1,4 @@ -version: '3.8' +version: "3.8" volumes: dumputils: @@ -49,7 +49,7 @@ services: dumputils: container_name: dumputils hostname: dumputils - image: "st3ga/dumputils:latest" + image: "ghcr.io/athennamind/dumputils:latest" volumes: - dumputils:/opt/backups - /opt/shared/backups:/opt/shared/backups diff --git a/examples/k8s/deployment/2-deployment.yaml b/examples/k8s/deployment/2-deployment.yaml index 2830efd..427d587 100644 --- a/examples/k8s/deployment/2-deployment.yaml +++ b/examples/k8s/deployment/2-deployment.yaml @@ -23,7 +23,7 @@ spec: terminationGracePeriodSeconds: 60 containers: - name: dumputils-shell - image: st3ga/dumputils:latest + image: "ghcr.io/athennamind/dumputils:latest" imagePullPolicy: IfNotPresent command: ["sh", "-c", "tail -f /dev/null"] resources: {}