mirror of
https://github.com/goharbor/harbor.git
synced 2024-12-22 00:27:44 +01:00
b0f158c4c8
Add migrator template and script Signed-off-by: Qian Deng <dengq@vmware.com>
11 lines
544 B
Bash
Executable File
11 lines
544 B
Bash
Executable File
#!/bin/bash
|
|
|
|
host_make_path="$( cd "$(dirname "$0")" ; pwd -P )"
|
|
|
|
echo host make path is set to ${host_make_path}
|
|
data_path=$(grep '^[^#]*data_volume' ${host_make_path}/harbor.yml | awk '{print $NF}')
|
|
log_path=$(grep '^[^#]*location' ${host_make_path}/harbor.yml | awk '{print $NF}')
|
|
secretkey_path=$(grep '^[^#]*secretkey_path' ${host_make_path}/harbor.yml | awk '{print $NF}')
|
|
|
|
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 $@
|