Skip to content

Commit 68b4711

Browse files
committed
allow setting source DB creds in env vars
1 parent 8a7f650 commit 68b4711

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

test/2.logical_generic.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ set -euxo pipefail
33

44
DIR=${0%/*}
55
IMAGE2TEST="registry.gitlab.com/postgres-ai/database-lab/dblab-server:master"
6-
SOURCE_DBNAME="test"
7-
SOURCE_HOST="XXX"
8-
SOURCE_PASSWORD="XXX"
6+
SOURCE_DBNAME="${SOURCE_DBNAME:-test}"
7+
SOURCE_HOST="${SOURCE_HOST:-undefined}"
8+
SOURCE_PASSWORD="${SOURCE_PASSWORD:-undefined}"
99

1010
### Step 1: Prepare a machine with two disks, Docker and ZFS
1111

test/_cleanup.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ set -euxo pipefail
44
ZFS_FILE="$(pwd)/zfs_file"
55

66
# TODO: docker rm for all containers that are related to dblab
7-
sudo docker ps --filter 'label=dblab_control' \
7+
sudo docker ps -a --filter 'label=dblab_control' \
88
| grep -v CONTAINER \
99
| awk '{print $1}' \
1010
| sudo xargs --no-run-if-empty docker rm -f \

0 commit comments

Comments
 (0)