Skip to content

Commit

Permalink
Added the ability to use additional utilities: pg_basebackup, pg_rest…
Browse files Browse the repository at this point in the history
…ore, pg_verifybackup and pg_controldata (#3)

Co-authored-by: Mikhail Grigorev <[email protected]>
  • Loading branch information
CHERTS and Mikhail Grigorev authored Jun 17, 2024
1 parent b1ac250 commit d5ce833
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion 12/docker_entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
ARG1=$1

case "${ARG1}" in
"bash" | "sh" | "psql" | "pgbench" | "pg_dump" | "pg_dumpall")
"bash" | "sh" | "psql" | "pgbench" | "pg_dump" | "pg_dumpall" | "pg_basebackup" | "pg_restore" | "pg_verifybackup" | "pg_controldata")
echo ${ARG1}
exec "$@"
;;
Expand Down
2 changes: 1 addition & 1 deletion 13/docker_entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
ARG1=$1

case "${ARG1}" in
"bash" | "sh" | "psql" | "pgbench" | "pg_dump" | "pg_dumpall")
"bash" | "sh" | "psql" | "pgbench" | "pg_dump" | "pg_dumpall" | "pg_basebackup" | "pg_restore" | "pg_verifybackup" | "pg_controldata")
echo ${ARG1}
exec "$@"
;;
Expand Down
2 changes: 1 addition & 1 deletion 14/docker_entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
ARG1=$1

case "${ARG1}" in
"bash" | "sh" | "psql" | "pgbench" | "pg_dump" | "pg_dumpall")
"bash" | "sh" | "psql" | "pgbench" | "pg_dump" | "pg_dumpall" | "pg_basebackup" | "pg_restore" | "pg_verifybackup" | "pg_controldata")
echo ${ARG1}
exec "$@"
;;
Expand Down
2 changes: 1 addition & 1 deletion 15/docker_entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
ARG1=$1

case "${ARG1}" in
"bash" | "sh" | "psql" | "pgbench" | "pg_dump" | "pg_dumpall")
"bash" | "sh" | "psql" | "pgbench" | "pg_dump" | "pg_dumpall" | "pg_basebackup" | "pg_restore" | "pg_verifybackup" | "pg_controldata")
echo ${ARG1}
exec "$@"
;;
Expand Down
2 changes: 1 addition & 1 deletion 16/docker_entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
ARG1=$1

case "${ARG1}" in
"bash" | "sh" | "psql" | "pgbench" | "pg_dump" | "pg_dumpall")
"bash" | "sh" | "psql" | "pgbench" | "pg_dump" | "pg_dumpall" | "pg_basebackup" | "pg_restore" | "pg_verifybackup" | "pg_controldata")
echo ${ARG1}
exec "$@"
;;
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ docker run -it --rm --name pg_repack cherts/pg-repack:1.5.0 -h X.X.X.X -U postgr

### Additional utilities in this image

This image contains the ability to run additional utilities that come with postgres - psql, pgbench, pg_dump and pg_dumpall
This image contains the ability to run additional utilities that come with postgres - psql, pgbench, pg_dump, pg_dumpall, pg_basebackup, pg_restore, pg_verifybackup and pg_controldata

For example, we can run pgbench in our cloud database like this:
```
Expand All @@ -57,4 +57,4 @@ docker run -it --rm --name pg_repack cherts/pg-repack:1.5.0 pgbench -h X.X.X.X -
docker run -it --rm --name pg_repack cherts/pg-repack:1.5.0 pgbench -h X.X.X.X -p 5432 -U postgres test -T 60 -j 4 -P 2
# run drop test data
docker run -it --rm --name pg_repack cherts/pg-repack:1.5.0 pgbench -h X.X.X.X -p 5432 -U postgres test -i -I d
```

0 comments on commit d5ce833

Please sign in to comment.