Merge pull request #1870 from ywk253100/170330_ca_download_dir

Mount ca dir to UI container
This commit is contained in:
Wenkai Yin 2017-03-30 13:52:27 +08:00 committed by GitHub
commit 2528ad9c62
5 changed files with 6 additions and 4 deletions

View File

@ -74,8 +74,8 @@ before_script:
- sudo chmod 777 /tmp/registry.db
script:
- sudo mkdir -p /harbor_storage/ca_download
- sudo mv ./tests/ca.crt /harbor_storage/ca_download
- sudo mkdir -p /etc/ui/ca/
- sudo mv ./tests/ca.crt /etc/ui/ca/
- sudo mkdir -p /harbor
- sudo mv ./VERSION /harbor/VERSION
- sudo service mysql stop

View File

@ -69,6 +69,7 @@ services:
- ../common/config/ui/app.conf:/etc/ui/app.conf
- ../common/config/ui/private_key.pem:/etc/ui/private_key.pem
- /data/secretkey:/etc/ui/key
- /data/ca_download/:/etc/ui/ca/
depends_on:
- log
- adminserver

View File

@ -76,6 +76,7 @@ services:
- ./common/config/ui/app.conf:/etc/ui/app.conf
- ./common/config/ui/private_key.pem:/etc/ui/private_key.pem
- /data/secretkey:/etc/ui/key
- /data/ca_download/:/etc/ui/ca/
networks:
- harbor
depends_on:

View File

@ -20,7 +20,7 @@ type SystemInfoAPI struct {
isAdmin bool
}
const defaultRootCert = "/harbor_storage/ca_download/ca.crt"
const defaultRootCert = "/etc/ui/ca/ca.crt"
const harborVersionFile = "/harbor/VERSION"
//SystemInfo models for system info.

View File

@ -2,7 +2,7 @@
set -e
cp tests/docker-compose.test.yml make/.
mkdir /etc/ui
mkdir -p /etc/ui
cp make/common/config/ui/private_key.pem /etc/ui/.
mkdir conf