2018-11-15 04:09:57 +01:00
|
|
|
#!/bin/bash
|
2016-04-15 11:23:40 +02:00
|
|
|
|
2018-11-15 04:09:57 +01:00
|
|
|
host_make_path="$( cd "$(dirname "$0")" ; pwd -P )"
|
2016-04-15 11:23:40 +02:00
|
|
|
|
2018-11-15 04:09:57 +01:00
|
|
|
echo host make path is set to ${host_make_path}
|
|
|
|
data_path=$(grep '^[^#]*data_volume' ${host_make_path}/harbor.yml | awk '{print $NF}')
|
2019-02-26 05:51:28 +01:00
|
|
|
log_path=$(grep '^[^#]*location' ${host_make_path}/harbor.yml | awk '{print $NF}')
|
2018-11-15 04:09:57 +01:00
|
|
|
secretkey_path=$(grep '^[^#]*secretkey_path' ${host_make_path}/harbor.yml | awk '{print $NF}')
|
2016-02-22 03:00:42 +01:00
|
|
|
|
2018-11-15 04:09:57 +01:00
|
|
|
docker run -it --rm -v ${host_make_path}:/harbor_make -v $data_path:/data -v $log_path:/var/log/harbor -v $secretkey_path:$secretkey_path goharbor/prepare:1.7.1 $@
|