Skip to content

Commit 0b50b8d

Browse files
committed
chore(tests): use add-host replace link
1 parent 358f0bb commit 0b50b8d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

contrib/ci/test-minio.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ puts-step "minio starting, wait 30s."
3737
sleep 30
3838

3939
# boot postgres, linking the minio container and setting DRYCC_MINIO_SERVICE_HOST and DRYCC_MINIO_SERVICE_PORT
40-
PG_CMD="docker run -d --link ${MINIO_JOB}:minio -e PGCTLTIMEOUT=1200 \
40+
MINIO_IP=$(docker inspect --format "{{ .NetworkSettings.IPAddress }}" "${MINIO_JOB}")
41+
PG_CMD="docker run -d --add-host minio:${MINIO_IP} -e PGCTLTIMEOUT=1200 \
4142
-e BACKUP_FREQUENCY=1s -e DATABASE_STORAGE=minio \
4243
-e DRYCC_MINIO_SERVICE_HOST=minio -e DRYCC_MINIO_SERVICE_PORT=9000 \
4344
-v ${CURRENT_DIR}/tmp/creds:/var/run/secrets/drycc/database/creds \

0 commit comments

Comments
 (0)