Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [root@z-adm-harbor-01 v.filyuchkov]# cd /opt/harbor/
- [root@z-adm-harbor-01 harbor]# docker-compose down
- Stopping nginx ... done
- Stopping harbor-jobservice ... done
- Stopping harbor-ui ... done
- Stopping redis ... done
- Stopping harbor-db ... done
- Stopping harbor-adminserver ... done
- Stopping registry ... done
- Stopping harbor-log ... done
- WARNING: Found orphan containers (clair) for this project. If you removed or renamed this service in your compose file, you can run this command with the --remove-orphans flag to clean it up.
- Removing nginx ... done
- Removing harbor-jobservice ... done
- Removing harbor-ui ... done
- Removing redis ... done
- Removing harbor-db ... done
- Removing harbor-adminserver ... done
- Removing registry ... done
- Removing harbor-log ... done
- Removing network harbor_harbor
- [root@z-adm-harbor-01 harbor]# cd /opt/
- [root@z-adm-harbor-01 opt]# mv harbor /opt/backup/harbor163
- [root@z-adm-harbor-01 opt]# ls
- backup containerd
- [root@z-adm-harbor-01 opt]# cp -r /data/database /opt/backup/database163/
- [root@z-adm-harbor-01 opt]# wget https://storage.googleapis.com/harbor-releases/release-1.8.0/harbor-online-installer-v1.8.0.tgz && tar zxf harbor-online-installer-v1.8.0.tgz
- --2020-02-15 15:13:01-- https://storage.googleapis.com/harbor-releases/release-1.8.0/harbor-online-installer-v1.8.0.tgz
- Распознаётся storage.googleapis.com (storage.googleapis.com)... 108.177.119.128, 2a00:1450:4010:c02::80
- Подключение к storage.googleapis.com (storage.googleapis.com)|108.177.119.128|:443... соединение установлено.
- HTTP-запрос отправлен. Ожидание ответа... 200 OK
- Длина: 7954 (7,8K) [application/x-tar]
- Сохранение в: «harbor-online-installer-v1.8.0.tgz»
- 100%[========================================================================================>] 7 954 --.-K/s за 0s
- 2020-02-15 15:13:02 (64,8 MB/s) - «harbor-online-installer-v1.8.0.tgz» сохранён [7954/7954]
- [root@z-adm-harbor-01 opt]# pwd
- /opt
- [root@z-adm-harbor-01 opt]# wget https://storage.googleapis.com/harbor-releases/release-1.8.0/harbor-online-installer-v1.8.0.tgz && tar zxf harbor-online-installer-v1.8.0.tg^C
- [root@z-adm-harbor-01 opt]# ls
- backup containerd harbor harbor-online-installer-v1.8.0.tgz
- [root@z-adm-harbor-01 opt]# cd harbor
- [root@z-adm-harbor-01 harbor]# docker pull goharbor/harbor-migrator:v1.8.0
- v1.8.0: Pulling from goharbor/harbor-migrator
- Digest: sha256:2eaac2e3c802b407bd5b302636ca8a92cb38bf6229068734cc3f3bcb7dd1e323
- Status: Image is up to date for goharbor/harbor-migrator:v1.8.0
- [root@z-adm-harbor-01 harbor]# docker run -it --rm -v /opt/backup/harbor163/harbor.cfg:/harbor-migration/harbor-cfg/harbor.cfg -v /opt/harbor/harbor.yml:/harbor-migration/harbor-cfg-out/harbor.yml goharbor/harbor-migrator:v1.8.0 --cfg up
- Please backup before upgrade,
- Enter y to continue updating or n to abort: y
- Command for config file migration: python ./cfg/run.py --input /harbor-migration/harbor-cfg/harbor.cfg --output /harbor-migration/harbor-cfg-out/harbor.yml
- input version: 1.7.0, migrator chain: ['1.8.0']
- migrating to version 1.8.0
- Written new values to /harbor-migration/harbor-cfg-out/harbor.yml
- [root@z-adm-harbor-01 harbor]# ./install.sh --with-clair
- [Step 0]: checking installation environment ...
- Note: docker version: 18.09.6
- Note: docker-compose version: 1.18.0
- [Step 1]: preparing environment ...
- prepare base dir is set to /opt/harbor
- Unable to find image 'goharbor/prepare:v1.8.0' locally
- v1.8.0: Pulling from goharbor/prepare
- 4e360eca2e60: Already exists
- cd3c4c42d48b: Pull complete
- 647e8efbf475: Pull complete
- 79272af3d010: Pull complete
- 1aec5eb71578: Pull complete
- 1a29af1ecc2c: Pull complete
- e382cb5c1ecb: Pull complete
- Digest: sha256:c590164ae2c54e360642b1174c8ad90306b05ca0582f02f35889346c113e555d
- Status: Downloaded newer image for goharbor/prepare:v1.8.0
- Generated configuration file: /config/log/logrotate.conf
- Generated configuration file: /config/nginx/nginx.conf
- Generated configuration file: /config/core/env
- Generated configuration file: /config/core/app.conf
- Generated configuration file: /config/registry/config.yml
- Generated configuration file: /config/registryctl/env
- Generated configuration file: /config/db/env
- Generated configuration file: /config/jobservice/env
- Generated configuration file: /config/jobservice/config.yml
- loaded secret from file: /secret/keys/secretkey
- Generated certificate, key file: /secret/core/private_key.pem, cert file: /secret/registry/root.crt
- Generated configuration file: /config/clair/postgres_env
- Generated configuration file: /config/clair/config.yaml
- Generated configuration file: /config/clair/clair_env
- Generated configuration file: /compose_location/docker-compose.yml
- Clean up the input dir
- Note: stopping existing Harbor instance ...
- Stopping clair ... done
- Removing clair ... done
- Removing network harbor_harbor
- WARNING: Network harbor_harbor not found.
- Removing network harbor_harbor-clair
- [Step 2]: starting Harbor ...
- Creating network "harbor_harbor" with the default driver
- Creating network "harbor_harbor-clair" with the default driver
- Pulling log (goharbor/harbor-log:v1.8.0)...
- v1.8.0: Pulling from goharbor/harbor-log
- 4e360eca2e60: Already exists
- 19719f801952: Pull complete
- 1b26f237e309: Pull complete
- a7cf4af5e27b: Pull complete
- cd70ec1f0903: Pull complete
- 3c6107a6066b: Pull complete
- f5c172b30a43: Pull complete
- 3609dae2ce51: Pull complete
- Digest: sha256:ebe674ba07a4b8ad892e50940d63461bca5441f6597cd10eb492818a3860cf9b
- Status: Downloaded newer image for goharbor/harbor-log:v1.8.0
- Pulling registry (goharbor/registry-photon:v2.7.1-patch-2819-v1.8.0)...
- v2.7.1-patch-2819-v1.8.0: Pulling from goharbor/registry-photon
- 4e360eca2e60: Already exists
- 019e3b299790: Pull complete
- 955e0a4401e7: Pull complete
- 1139d007f6cd: Pull complete
- 869f8b832100: Pull complete
- 4aee74a3468c: Pull complete
- Digest: sha256:03200ae6dc7deca56e22381b8337cc69d840c56cf0b3feaa9e06fbac31bb55f3
- Status: Downloaded newer image for goharbor/registry-photon:v2.7.1-patch-2819-v1.8.0
- Pulling registryctl (goharbor/harbor-registryctl:v1.8.0)...
- v1.8.0: Pulling from goharbor/harbor-registryctl
- 4e360eca2e60: Already exists
- ab085a36c7cd: Pull complete
- 571257e86b35: Pull complete
- 2867800b1257: Pull complete
- 90f61d3f1446: Pull complete
- 67e540c6f39c: Pull complete
- c902509ccb9f: Pull complete
- Digest: sha256:6beeb6cf191cf2abe8145ed53d0127448f6d2317825e5475ded680f304ce52e3
- Status: Downloaded newer image for goharbor/harbor-registryctl:v1.8.0
- Pulling postgresql (goharbor/harbor-db:v1.8.0)...
- v1.8.0: Pulling from goharbor/harbor-db
- 4e360eca2e60: Already exists
- cac78cdfc92b: Pull complete
- 9f8852fe17a9: Pull complete
- c5e3ae0f4818: Pull complete
- 7c33673c6790: Pull complete
- 0acede6fcad2: Pull complete
- 3ed5e1a94c43: Pull complete
- d9664b433f2f: Pull complete
- 6e77542b7dfc: Pull complete
- Digest: sha256:2991653910717c0fe11e03dd5cdf19be42dfa221abbf5d529ff0ad534f6297bc
- Status: Downloaded newer image for goharbor/harbor-db:v1.8.0
- Pulling core (goharbor/harbor-core:v1.8.0)...
- v1.8.0: Pulling from goharbor/harbor-core
- 4e360eca2e60: Already exists
- c066267eb2b9: Pull complete
- 932afda2a169: Pull complete
- 7ed16fb7e79a: Pull complete
- d09137d80617: Pull complete
- 588769341947: Pull complete
- Digest: sha256:7899f284617bb051180adf6c3aedd140a519d9092b8986dd9058d4dcec0d31de
- Status: Downloaded newer image for goharbor/harbor-core:v1.8.0
- Pulling portal (goharbor/harbor-portal:v1.8.0)...
- v1.8.0: Pulling from goharbor/harbor-portal
- 4e360eca2e60: Already exists
- 407631badd44: Pull complete
- 48732609a31b: Pull complete
- 7990fc5850c8: Pull complete
- 7791f3309bed: Pull complete
- 912a71f3fbcb: Pull complete
- Digest: sha256:f84ec78616f9e99c6355ee93567f17a6727b3b7cd548ab64702977f75ac506cf
- Status: Downloaded newer image for goharbor/harbor-portal:v1.8.0
- Pulling redis (goharbor/redis-photon:v1.8.0)...
- v1.8.0: Pulling from goharbor/redis-photon
- 4e360eca2e60: Already exists
- b08cc3be5c43: Pull complete
- a750a309c85d: Pull complete
- 49b2d8335a1a: Pull complete
- 31e8f89dc042: Pull complete
- Digest: sha256:1e2ce8e6a852713d789c6315642d1483d1efdb4acee4699817810bef219ec93d
- Status: Downloaded newer image for goharbor/redis-photon:v1.8.0
- Pulling jobservice (goharbor/harbor-jobservice:v1.8.0)...
- v1.8.0: Pulling from goharbor/harbor-jobservice
- 4e360eca2e60: Already exists
- b9ac5e1016a6: Pull complete
- 37913733f07f: Pull complete
- 98baf7450120: Pull complete
- Digest: sha256:8ca82f98c8e970b41214793e1d9d99caaf1f84fe3a33ae510be6580b50c53ea2
- Status: Downloaded newer image for goharbor/harbor-jobservice:v1.8.0
- Pulling proxy (goharbor/nginx-photon:v1.8.0)...
- v1.8.0: Pulling from goharbor/nginx-photon
- 4e360eca2e60: Already exists
- 985391e9918d: Pull complete
- Digest: sha256:9c7c9ca3d34e5872743577ce911cabce9965935261f3b53de4196ce394504799
- Status: Downloaded newer image for goharbor/nginx-photon:v1.8.0
- Pulling clair (goharbor/clair-photon:v2.0.8-v1.8.0)...
- v2.0.8-v1.8.0: Pulling from goharbor/clair-photon
- Creating harbor-log ... done
- dca9fa276c49: Pull complete
- 41b06d3e40ab: Pull complete
- c38c3d958313: Pull complete
- Creating harbor-db ... done
- Creating registry ... done
- Creating harbor-core ... done
- Digest: sha256:69bd03d41e9a9c64340a9003449bcc773a1036e445d27a6a025310e17b111cb9
- Creating harbor-portal ... done
- Creating nginx ... done
- Creating registryctl ...
- Creating registry ...
- Creating harbor-db ...
- Creating redis ...
- Creating clair ...
- Creating harbor-core ...
- Creating harbor-jobservice ...
- Creating harbor-portal ...
- Creating nginx ...
- ✔ ----Harbor has been installed and started successfully.----
- Now you should be able to visit the admin portal at https://harbor.vmet.ro.
- For more details, please visit https://github.com/goharbor/harbor .
- [root@z-adm-harbor-01 harbor]#
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement