2016-06-07 06:19:48 +02:00
|
|
|
#!/bin/bash
|
2020-04-20 10:00:08 +02:00
|
|
|
IP=$(hostname -I | awk '{print $1}')
|
2017-03-20 11:51:20 +01:00
|
|
|
|
2016-06-15 06:57:04 +02:00
|
|
|
#echo $IP
|
2019-11-28 12:57:49 +01:00
|
|
|
sudo sed "s/reg.mydomain.com/$IP/" make/harbor.yml.tmpl |sudo tee make/harbor.yml
|
2019-04-29 09:23:22 +02:00
|
|
|
|
2020-03-01 12:08:48 +01:00
|
|
|
# enable internal tls
|
2020-03-16 16:20:05 +01:00
|
|
|
echo "internal_tls:" >> make/harbor.yml
|
|
|
|
echo " enabled: true" >> make/harbor.yml
|
|
|
|
echo " dir: /etc/harbor/tls/internal" >> make/harbor.yml
|
2020-03-01 12:08:48 +01:00
|
|
|
|
2019-10-23 08:08:15 +02:00
|
|
|
# TODO: remove it when scanner adapter support internal access of harbor
|
|
|
|
echo "storage_service:" >> make/harbor.yml
|
|
|
|
echo " ca_bundle: /data/cert/server.crt" >> make/harbor.yml
|
|
|
|
|
|
|
|
sed "s|/your/certificate/path|/data/cert/server.crt|g" -i make/harbor.yml
|
|
|
|
sed "s|/your/private/key/path|/data/cert/server.key|g" -i make/harbor.yml
|