mirror of
https://github.com/goharbor/harbor.git
synced 2024-12-22 08:38:03 +01:00
Add SELinux label to all volumes inside prepare script
Signed-off-by: Ronald van Butselaar <ronald@vbutselaar.nl>
This commit is contained in:
parent
6d2d5a6a2a
commit
7cd29b399a
10
make/prepare
10
make/prepare
@ -35,7 +35,7 @@ set -e
|
|||||||
# Copy harbor.yml to input dir
|
# Copy harbor.yml to input dir
|
||||||
if [[ ! "$1" =~ ^\-\- ]] && [ -f "$1" ]
|
if [[ ! "$1" =~ ^\-\- ]] && [ -f "$1" ]
|
||||||
then
|
then
|
||||||
cp $1 $input_dir/harbor.yml
|
cp $1 $input_dir/harbor.yml
|
||||||
else
|
else
|
||||||
cp ${harbor_prepare_path}/harbor.yml $input_dir/harbor.yml
|
cp ${harbor_prepare_path}/harbor.yml $input_dir/harbor.yml
|
||||||
fi
|
fi
|
||||||
@ -45,10 +45,10 @@ secret_dir=${data_path}/secret
|
|||||||
config_dir=$harbor_prepare_path/common/config
|
config_dir=$harbor_prepare_path/common/config
|
||||||
|
|
||||||
# Run prepare script
|
# Run prepare script
|
||||||
docker run --rm -v $input_dir:/input \
|
docker run --rm -v $input_dir:/input:z \
|
||||||
-v $harbor_prepare_path:/compose_location \
|
-v $harbor_prepare_path:/compose_location:z \
|
||||||
-v $config_dir:/config \
|
-v $config_dir:/config:z \
|
||||||
-v $secret_dir:/secret \
|
-v $secret_dir:/secret:z \
|
||||||
goharbor/prepare:dev $@
|
goharbor/prepare:dev $@
|
||||||
|
|
||||||
echo "Clean up the input dir"
|
echo "Clean up the input dir"
|
||||||
|
Loading…
Reference in New Issue
Block a user