Skip to content

Commit 3df949c

Browse files
committed
fix(registry): fix test case
1 parent 6525145 commit 3df949c

4 files changed

Lines changed: 10 additions & 6 deletions

File tree

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ SHELL_SCRIPTS = $(wildcard rootfs/bin/* _scripts/*.sh contrib/ci/*.sh)
1313

1414
# The following variables describe the containerized development environment
1515
# and other build options
16-
DEV_ENV_IMAGE := quay.io/drycc/go-dev:v0.22.0
16+
DEV_ENV_IMAGE := drycc/go-dev
1717
DEV_ENV_WORK_DIR := /go/src/${REPO_PATH}
1818
DEV_ENV_PREFIX := docker run --rm -v ${CURDIR}:${DEV_ENV_WORK_DIR} -w ${DEV_ENV_WORK_DIR}
1919
DEV_ENV_CMD := ${DEV_ENV_PREFIX} ${DEV_ENV_IMAGE}

contrib/ci/test.sh

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,16 @@ echo "registry-bucket" > "${CURRENT_DIR}"/tmp/aws-user/registry-bucket
1010
echo "1234567890123456789012345678901234567890" > "${CURRENT_DIR}"/tmp/aws-user/accesskey
1111
echo "1234567890123456789012345678901234567890" > "${CURRENT_DIR}"/tmp/aws-user/secretkey
1212

13-
MINIO_JOB=$(docker run -d \
13+
MINIO_JOB=$(docker run -d --name minio \
1414
-v "${CURRENT_DIR}"/tmp/aws-user:/var/run/secrets/drycc/objectstore/creds \
15-
quay.io/drycc/minio:canary server /home/minio/)
15+
drycc/minio:canary server /home/minio/)
1616

17+
sleep 5
18+
docker logs "${MINIO_JOB}"
1719

18-
JOB=$(docker run -d \
20+
JOB=$(docker run -d --link minio:minio \
21+
-e DRYCC_MINIO_SERVICE_HOST=minio \
22+
-e DRYCC_MINIO_SERVICE_PORT=9000 \
1923
-v "${CURRENT_DIR}"/tmp/aws-user:/var/run/secrets/drycc/objectstore/creds \
2024
"$1")
2125

rootfs/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM minio/mc:RELEASE.2019-05-23T01-33-27Z as mc
1+
FROM minio/mc:RELEASE.2020-07-17T02-52-20Z as mc
22

33
FROM registry:2.7
44

rootfs/bin/create_bucket

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
# shellcheck disable=SC1091
44
source /bin/normalize_storage
55
has_bucket=$(mc ls minio -json|jq -r '.key'|grep -w "${MINIO_BUCKET}")
6-
if [ ! -n "$has_bucket" ] ;then
6+
if [ -z "$has_bucket" ] ;then
77
mc mb minio/"${MINIO_BUCKET}"
88
fi

0 commit comments

Comments
 (0)