harbor/tests/testprepare.sh
Wenkai Yin f1f78a5649 update
2017-01-19 17:56:08 +08:00

14 lines
470 B
Bash
Executable File

#!/bin/bash
set -e
cp tests/docker-compose.test.yml make/.
mkdir /etc/ui
cp make/common/config/ui/private_key.pem /etc/ui/.
mkdir conf
cp make/common/config/ui/app.conf conf/.
sed -i -r "s/MYSQL_HOST=mysql/MYSQL_HOST=127.0.0.1/" make/common/config/adminserver/env
sed -i -r "s|REGISTRY_URL=http://registry:5000|REGISTRY_URL=http://127.0.0.1:5000|" make/common/config/adminserver/env
sed -i -r "s/UI_SECRET=.*/UI_SECRET=$UI_SECRET/" make/common/config/adminserver/env