Skip to content

Commit

Permalink
update scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
zlianzhuang committed Feb 21, 2024
1 parent f42d032 commit 3bc3e4c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion script/client.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ metadata:
name: pg-client
spec:
containers:
- image: radondb-postgresql:15.3-v1.3.0
- image: radondb-postgresql:15.3-v1.4.0
name: pg-client
command: [ "/bin/bash", "-c", "--" ]
args: [ "while true; do sleep 3600; done;" ]
6 changes: 3 additions & 3 deletions script/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ networks:

services:
pg15-auto:
image: "radondb/radondb-postgresql:15.3-v1.3.1"
image: "radondb/radondb-postgresql:15.3-v1.4.0"
container_name: "pg15-auto"
command: auto_failover
restart: always
Expand All @@ -22,7 +22,7 @@ services:
networks:
- bitnet
pg15-readwrite:
image: "radondb/radondb-postgresql:15.3-v1.3.1"
image: "radondb/radondb-postgresql:15.3-v1.4.0"
container_name: "pg15-readwrite"
command: auto_failover
restart: always
Expand All @@ -47,7 +47,7 @@ services:
networks:
- bitnet
pg15-readonly:
image: "radondb/radondb-postgresql:15.3-v1.3.1"
image: "radondb/radondb-postgresql:15.3-v1.4.0"
container_name: "pg15-readonly"
command: auto_failover
restart: always
Expand Down
8 changes: 4 additions & 4 deletions script/docker_run
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ create net:
docker network create test

monitor:
docker run --rm -it --net=test -h monitor --name monitor -e PG_MODE=monitor -e AUTOCTL_NODE_PASSWORD=password -e EXTERNAL_HOSTNAME=monitor radondb-postgresql:15.3-v1.3.1 auto_failover
docker run --rm -it --net=test -h monitor --name monitor -e PG_MODE=monitor -e AUTOCTL_NODE_PASSWORD=password -e EXTERNAL_HOSTNAME=monitor radondb-postgresql:15.3-v1.4.0 auto_failover

readwrite:
docker run --rm -it --net=test -h readwrite --name readwrite -e PG_MODE=readwrite -e AUTOCTL_NODE_PASSWORD=password -e EXTERNAL_HOSTNAME=readwrite -e MONITOR_HOSTNAME=monitor -e AUTOCTL_REPLICATOR_PASSWORD=password -e PG_CONFIG_port=5432 radondb-postgresql:15.3-v1.3.1 auto_failover
docker run --rm -it --net=test -h readwrite --name readwrite -e PG_MODE=readwrite -e AUTOCTL_NODE_PASSWORD=password -e EXTERNAL_HOSTNAME=readwrite -e MONITOR_HOSTNAME=monitor -e AUTOCTL_REPLICATOR_PASSWORD=password -e PG_CONFIG_port=5432 radondb-postgresql:15.3-v1.4.0 auto_failover

standby:
docker run --rm -it --net=test -h standby --name standby -e PG_MODE=readwrite -e AUTOCTL_NODE_PASSWORD=password -e EXTERNAL_HOSTNAME=standby -e MONITOR_HOSTNAME=monitor -e AUTOCTL_REPLICATOR_PASSWORD=password -e PG_CONFIG_port=5432 radondb-postgresql:15.3-v1.3.1 auto_failover
docker run --rm -it --net=test -h standby --name standby -e PG_MODE=readwrite -e AUTOCTL_NODE_PASSWORD=password -e EXTERNAL_HOSTNAME=standby -e MONITOR_HOSTNAME=monitor -e AUTOCTL_REPLICATOR_PASSWORD=password -e PG_CONFIG_port=5432 radondb-postgresql:15.3-v1.4.0 auto_failover

readonly:
docker run --rm -it --net=test -h readonly --name readonly -e PG_MODE=readonly -e AUTOCTL_NODE_PASSWORD=password -e EXTERNAL_HOSTNAME=readonly -e MONITOR_HOSTNAME=monitor -e AUTOCTL_REPLICATOR_PASSWORD=password -e PG_STREAMING=sync -e PG_CONFIG_port=5432 radondb-postgresql:15.3-v1.3.1 auto_failover
docker run --rm -it --net=test -h readonly --name readonly -e PG_MODE=readonly -e AUTOCTL_NODE_PASSWORD=password -e EXTERNAL_HOSTNAME=readonly -e MONITOR_HOSTNAME=monitor -e AUTOCTL_REPLICATOR_PASSWORD=password -e PG_STREAMING=sync -e PG_CONFIG_port=5432 radondb-postgresql:15.3-v1.4.0 auto_failover

0 comments on commit 3bc3e4c

Please sign in to comment.