mirror of
https://github.com/goharbor/harbor.git
synced 2024-10-31 23:59:32 +01:00
update prebuilt
This commit is contained in:
parent
9a6fd7d381
commit
edc0107fd7
@ -1,13 +1,10 @@
|
|||||||
## Make use of pre-built images of Harbor
|
## Make use of pre-built images of Harbor
|
||||||
|
|
||||||
Community members have helped building Harbor's docker images. If you want to save time from building Harbor from source. You can follow the below instructions to quickly pull Harbor's pre-built images for installation.
|
Community members have helped building Harbor's docker images. If you want to save time from building Harbor from source, please follow the below instructions to quickly pull Harbor's pre-built images for installation.
|
||||||
|
|
||||||
The script `docker-compose.sh` is used to change the registry service to pull pre-built images from. It updates `docker-compose.yml` to skip building the images from source locally.
|
|
||||||
|
|
||||||
|
|
||||||
### Steps
|
### Steps
|
||||||
|
|
||||||
Run the command update_compose.sh :
|
Run the command `update_compose.sh` :
|
||||||
```
|
```
|
||||||
$ ./update_compose.sh
|
$ ./update_compose.sh
|
||||||
|
|
||||||
@ -22,5 +19,5 @@ Enter **1** to pull images from Docker Hub,
|
|||||||
Enter **2** to pull image from Daocloud.io, recommended for Chinese users.
|
Enter **2** to pull image from Daocloud.io, recommended for Chinese users.
|
||||||
or Enter other registry URL like `https://my_registry/harbor/` . Do not forget the "/" and the end.
|
or Enter other registry URL like `https://my_registry/harbor/` . Do not forget the "/" and the end.
|
||||||
|
|
||||||
This command will back up and update the file `Deploy/docker-compose.yml` . Next, just follow the [Harbor Installation Guide](../../docs/installation_guide.md) to install Harbor.
|
This command backs up and updates the file `Deploy/docker-compose.yml` . Next, just follow the [Harbor Installation Guide](../../docs/installation_guide.md) to install Harbor.
|
||||||
|
|
||||||
|
@ -1,32 +0,0 @@
|
|||||||
#/bin/bash
|
|
||||||
read -p "Please input the platform name you want to pull images, for docker hub, enter 1; for daocloud.io, enter 2, otherwise enter the name of the platform, the default is 1:" choice
|
|
||||||
cd ../../Deploy
|
|
||||||
template_file="docker-compose.yml.template"
|
|
||||||
yml_file='docker-compose.yml'
|
|
||||||
if test -e $template_file
|
|
||||||
then
|
|
||||||
cp $template_file $yml_file
|
|
||||||
else
|
|
||||||
cp $yml_file $template_file
|
|
||||||
fi
|
|
||||||
platform=''
|
|
||||||
choice=${choice:-1}
|
|
||||||
if [ $choice == '1' ]
|
|
||||||
then
|
|
||||||
platform='prjharbor/'
|
|
||||||
elif [ $choice == '2' ]
|
|
||||||
then
|
|
||||||
platform='daocloud.io/harbor/'
|
|
||||||
else
|
|
||||||
platform=$choice
|
|
||||||
fi
|
|
||||||
version='0.3.0'
|
|
||||||
log='deploy_log:'
|
|
||||||
db='deploy_mysql:'
|
|
||||||
job_service='deploy_jobservice:'
|
|
||||||
ui='deploy_ui:'
|
|
||||||
sed -i -- '/build: .\/log\//c\ image: '$platform$log$version'' $yml_file
|
|
||||||
sed -i -- '/build: .\/db\//c\ image: '$platform$db$version'' $yml_file
|
|
||||||
sed -i -- '/ui:/{n;N;N;d}' $yml_file && sed -i -- '/ui:/a\\ image: '$platform$ui$version'' $yml_file
|
|
||||||
sed -i -- '/jobservice:/{n;N;N;d}' $yml_file && sed -i -- '/jobservice:/a\\ image: '$platform$job_service$version'' $yml_file
|
|
||||||
echo "succeed! "
|
|
Loading…
Reference in New Issue
Block a user