mount ca dir to container, fix #1829

This commit is contained in:
Wenkai Yin 2017-03-30 11:04:09 +08:00 committed by kunw
parent fc1ec482a4
commit 966b476d36
5 changed files with 6 additions and 4 deletions

View File

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

View File

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

View File

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

View File

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

View File

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