mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-05 18:20:37 +01:00
mount ca dir to container, fix #1829
This commit is contained in:
parent
fc1ec482a4
commit
966b476d36
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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:
|
||||||
|
@ -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.
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user