mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-05 18:20:37 +01:00
Merge pull request #1870 from ywk253100/170330_ca_download_dir
Mount ca dir to UI container
This commit is contained in:
commit
2528ad9c62
@ -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
|
||||
|
@ -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
|
||||
|
@ -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:
|
||||
|
@ -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.
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user