File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11rootfs /opt /
2+ contrib /ci /tmp /
Original file line number Diff line number Diff line change 1+ language : go
2+ sudo : required
3+ services :
4+ - docker
5+ script :
6+ - make docker-build test
7+ notifications :
8+ slack :
9+ rooms :
10+ - drycc:xKmLlmJR4hfRAgVIOwdpAoC9#drycc
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ include includes.mk versioning.mk
99# the filepath to this repository, relative to $GOPATH/src
1010REPO_PATH = github.com/drycc/registry
1111
12- SHELL_SCRIPTS = $(wildcard _scripts/* .sh contrib/ci/* .sh)
12+ 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
Original file line number Diff line number Diff line change 11# Drycc Registry v2
22
3- [ ![ Build Status] ( https://ci.drycc.cc/job/ registry/badge/icon )] ( https://ci.drycc.cc/job /registry )
3+ [ ![ Build Status] ( https://travis- ci.org/ drycc/ registry.svg?branch=master )] ( https://travis- ci.org/drycc /registry )
44[ ![ Go Report Card] ( https://goreportcard.com/badge/github.com/drycc/registry )] ( https://goreportcard.com/report/github.com/drycc/registry )
55[ ![ Docker Repository on Quay] ( https://quay.io/repository/drycc/registry/status " Docker Repository on Quay ")] ( https://quay.io/repository/drycc/registry )
66
Original file line number Diff line number Diff line change 22
33set -eoxf pipefail
44
5- JOB=$( docker run -d " $1 " )
5+ CURRENT_DIR=$( cd " $( dirname " $0 " ) " ; pwd)
6+
7+ mkdir -p " ${CURRENT_DIR} " /tmp/aws-user
8+ echo " us-east-1" > " ${CURRENT_DIR} " /tmp/aws-user/region
9+ echo " registry-bucket" > " ${CURRENT_DIR} " /tmp/aws-user/registry-bucket
10+ echo " 1234567890123456789012345678901234567890" > " ${CURRENT_DIR} " /tmp/aws-user/accesskey
11+ echo " 1234567890123456789012345678901234567890" > " ${CURRENT_DIR} " /tmp/aws-user/secretkey
12+
13+ MINIO_JOB=$( docker run -d \
14+ -v " ${CURRENT_DIR} " /tmp/aws-user:/var/run/secrets/drycc/objectstore/creds \
15+ quay.io/drycc/minio:canary server /home/minio/)
16+
17+
18+ JOB=$( docker run -d \
19+ -v " ${CURRENT_DIR} " /tmp/aws-user:/var/run/secrets/drycc/objectstore/creds \
20+ " $1 " )
21+
622# let the registry run for a few seconds
723sleep 5
824# check that the registry is still up
925docker logs " ${JOB} "
1026docker ps -q --no-trunc=true | grep " ${JOB} "
11- docker rm -f " ${JOB} "
27+ docker rm -f " ${JOB} " " ${MINIO_JOB} "
Original file line number Diff line number Diff line change @@ -4,13 +4,16 @@ ACCESS_KEY_FILE="/var/run/secrets/drycc/objectstore/creds/accesskey"
44SECRET_KEY_FILE=" /var/run/secrets/drycc/objectstore/creds/secretkey"
55
66if [ -f $BUCKET_FILE ]; then
7- export MINIO_BUCKET=$( cat " $BUCKET_FILE " )
7+ MINIO_BUCKET=$( cat " $BUCKET_FILE " )
8+ export MINIO_BUCKET
89fi
910if [ -f $ACCESS_KEY_FILE ]; then
10- export MINIO_ACCESS_KEY=$( cat " $ACCESS_KEY_FILE " )
11+ MINIO_ACCESS_KEY=$( cat " $ACCESS_KEY_FILE " )
12+ export MINIO_ACCESS_KEY
1113fi
1214if [ -f $SECRET_KEY_FILE ]; then
13- export MINIO_SECRET_KEY=$( cat " $SECRET_KEY_FILE " )
15+ MINIO_SECRET_KEY=$( cat " $SECRET_KEY_FILE " )
16+ export MINIO_SECRET_KEY
1417fi
1518
1619export MINIO_ENDPOINT=http://" ${DRYCC_MINIO_SERVICE_HOST} :${DRYCC_MINIO_SERVICE_PORT} "
You can’t perform that action at this time.
0 commit comments