summaryrefslogtreecommitdiff
path: root/hack/infrastructure/docker-ci/testbuilder/docker-registry.sh
blob: 72087462ad4ca97185c675342a4ee872d7aa2824 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/usr/bin/env bash
set -x
set -e
PROJECT_PATH=$1

# Build the docker project
cd /data/$PROJECT_PATH
sg docker -c "docker build -q -rm -t registry ."
cd test; sg docker -c "docker build -q -rm -t docker-registry-test ."

# Run the tests
sg docker -c "docker run -rm -v /home/docker-ci/coverage/docker-registry:/data docker-registry-test"