Advertisement
philyuchkoff

harbor

Feb 15th, 2020
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 9.84 KB | None | 0 0
  1. [root@z-adm-harbor-01 v.filyuchkov]# cd /opt/harbor/
  2. [root@z-adm-harbor-01 harbor]# docker-compose down
  3. Stopping nginx              ... done
  4. Stopping harbor-jobservice  ... done
  5. Stopping harbor-ui          ... done
  6. Stopping redis              ... done
  7. Stopping harbor-db          ... done
  8. Stopping harbor-adminserver ... done
  9. Stopping registry           ... done
  10. Stopping harbor-log         ... done
  11. 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.
  12. Removing nginx              ... done
  13. Removing harbor-jobservice  ... done
  14. Removing harbor-ui          ... done
  15. Removing redis              ... done
  16. Removing harbor-db          ... done
  17. Removing harbor-adminserver ... done
  18. Removing registry           ... done
  19. Removing harbor-log         ... done
  20. Removing network harbor_harbor
  21. [root@z-adm-harbor-01 harbor]# cd /opt/
  22. [root@z-adm-harbor-01 opt]# mv harbor /opt/backup/harbor163
  23. [root@z-adm-harbor-01 opt]# ls
  24. backup  containerd
  25. [root@z-adm-harbor-01 opt]# cp -r /data/database /opt/backup/database163/
  26. [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
  27. --2020-02-15 15:13:01--  https://storage.googleapis.com/harbor-releases/release-1.8.0/harbor-online-installer-v1.8.0.tgz
  28. Распознаётся storage.googleapis.com (storage.googleapis.com)... 108.177.119.128, 2a00:1450:4010:c02::80
  29. Подключение к storage.googleapis.com (storage.googleapis.com)|108.177.119.128|:443... соединение установлено.
  30. HTTP-запрос отправлен. Ожидание ответа... 200 OK
  31. Длина: 7954 (7,8K) [application/x-tar]
  32. Сохранение в: «harbor-online-installer-v1.8.0.tgz»
  33.  
  34. 100%[========================================================================================>] 7 954       --.-K/s   за 0s
  35.  
  36. 2020-02-15 15:13:02 (64,8 MB/s) - «harbor-online-installer-v1.8.0.tgz» сохранён [7954/7954]
  37.  
  38. [root@z-adm-harbor-01 opt]# pwd
  39. /opt
  40. [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
  41. [root@z-adm-harbor-01 opt]# ls
  42. backup  containerd  harbor  harbor-online-installer-v1.8.0.tgz
  43. [root@z-adm-harbor-01 opt]# cd harbor
  44. [root@z-adm-harbor-01 harbor]# docker pull goharbor/harbor-migrator:v1.8.0
  45. v1.8.0: Pulling from goharbor/harbor-migrator
  46. Digest: sha256:2eaac2e3c802b407bd5b302636ca8a92cb38bf6229068734cc3f3bcb7dd1e323
  47. Status: Image is up to date for goharbor/harbor-migrator:v1.8.0
  48. [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
  49. Please backup before upgrade,
  50. Enter y to continue updating or n to abort: y
  51. Command for config file migration: python ./cfg/run.py --input /harbor-migration/harbor-cfg/harbor.cfg --output /harbor-migration/harbor-cfg-out/harbor.yml
  52. input version: 1.7.0, migrator chain: ['1.8.0']
  53. migrating to version 1.8.0
  54. Written new values to /harbor-migration/harbor-cfg-out/harbor.yml
  55. [root@z-adm-harbor-01 harbor]# ./install.sh --with-clair
  56.  
  57. [Step 0]: checking installation environment ...
  58.  
  59. Note: docker version: 18.09.6
  60.  
  61. Note: docker-compose version: 1.18.0
  62.  
  63.  
  64. [Step 1]: preparing environment ...
  65. prepare base dir is set to /opt/harbor
  66. Unable to find image 'goharbor/prepare:v1.8.0' locally
  67. v1.8.0: Pulling from goharbor/prepare
  68. 4e360eca2e60: Already exists
  69. cd3c4c42d48b: Pull complete
  70. 647e8efbf475: Pull complete
  71. 79272af3d010: Pull complete
  72. 1aec5eb71578: Pull complete
  73. 1a29af1ecc2c: Pull complete
  74. e382cb5c1ecb: Pull complete
  75. Digest: sha256:c590164ae2c54e360642b1174c8ad90306b05ca0582f02f35889346c113e555d
  76. Status: Downloaded newer image for goharbor/prepare:v1.8.0
  77. Generated configuration file: /config/log/logrotate.conf
  78. Generated configuration file: /config/nginx/nginx.conf
  79. Generated configuration file: /config/core/env
  80. Generated configuration file: /config/core/app.conf
  81. Generated configuration file: /config/registry/config.yml
  82. Generated configuration file: /config/registryctl/env
  83. Generated configuration file: /config/db/env
  84. Generated configuration file: /config/jobservice/env
  85. Generated configuration file: /config/jobservice/config.yml
  86. loaded secret from file: /secret/keys/secretkey
  87. Generated certificate, key file: /secret/core/private_key.pem, cert file: /secret/registry/root.crt
  88. Generated configuration file: /config/clair/postgres_env
  89. Generated configuration file: /config/clair/config.yaml
  90. Generated configuration file: /config/clair/clair_env
  91. Generated configuration file: /compose_location/docker-compose.yml
  92. Clean up the input dir
  93.  
  94.  
  95. Note: stopping existing Harbor instance ...
  96. Stopping clair ... done
  97. Removing clair ... done
  98. Removing network harbor_harbor
  99. WARNING: Network harbor_harbor not found.
  100. Removing network harbor_harbor-clair
  101.  
  102.  
  103. [Step 2]: starting Harbor ...
  104. Creating network "harbor_harbor" with the default driver
  105. Creating network "harbor_harbor-clair" with the default driver
  106. Pulling log (goharbor/harbor-log:v1.8.0)...
  107. v1.8.0: Pulling from goharbor/harbor-log
  108. 4e360eca2e60: Already exists
  109. 19719f801952: Pull complete
  110. 1b26f237e309: Pull complete
  111. a7cf4af5e27b: Pull complete
  112. cd70ec1f0903: Pull complete
  113. 3c6107a6066b: Pull complete
  114. f5c172b30a43: Pull complete
  115. 3609dae2ce51: Pull complete
  116. Digest: sha256:ebe674ba07a4b8ad892e50940d63461bca5441f6597cd10eb492818a3860cf9b
  117. Status: Downloaded newer image for goharbor/harbor-log:v1.8.0
  118. Pulling registry (goharbor/registry-photon:v2.7.1-patch-2819-v1.8.0)...
  119. v2.7.1-patch-2819-v1.8.0: Pulling from goharbor/registry-photon
  120. 4e360eca2e60: Already exists
  121. 019e3b299790: Pull complete
  122. 955e0a4401e7: Pull complete
  123. 1139d007f6cd: Pull complete
  124. 869f8b832100: Pull complete
  125. 4aee74a3468c: Pull complete
  126. Digest: sha256:03200ae6dc7deca56e22381b8337cc69d840c56cf0b3feaa9e06fbac31bb55f3
  127. Status: Downloaded newer image for goharbor/registry-photon:v2.7.1-patch-2819-v1.8.0
  128. Pulling registryctl (goharbor/harbor-registryctl:v1.8.0)...
  129. v1.8.0: Pulling from goharbor/harbor-registryctl
  130. 4e360eca2e60: Already exists
  131. ab085a36c7cd: Pull complete
  132. 571257e86b35: Pull complete
  133. 2867800b1257: Pull complete
  134. 90f61d3f1446: Pull complete
  135. 67e540c6f39c: Pull complete
  136. c902509ccb9f: Pull complete
  137. Digest: sha256:6beeb6cf191cf2abe8145ed53d0127448f6d2317825e5475ded680f304ce52e3
  138. Status: Downloaded newer image for goharbor/harbor-registryctl:v1.8.0
  139. Pulling postgresql (goharbor/harbor-db:v1.8.0)...
  140. v1.8.0: Pulling from goharbor/harbor-db
  141. 4e360eca2e60: Already exists
  142. cac78cdfc92b: Pull complete
  143. 9f8852fe17a9: Pull complete
  144. c5e3ae0f4818: Pull complete
  145. 7c33673c6790: Pull complete
  146. 0acede6fcad2: Pull complete
  147. 3ed5e1a94c43: Pull complete
  148. d9664b433f2f: Pull complete
  149. 6e77542b7dfc: Pull complete
  150. Digest: sha256:2991653910717c0fe11e03dd5cdf19be42dfa221abbf5d529ff0ad534f6297bc
  151. Status: Downloaded newer image for goharbor/harbor-db:v1.8.0
  152. Pulling core (goharbor/harbor-core:v1.8.0)...
  153. v1.8.0: Pulling from goharbor/harbor-core
  154. 4e360eca2e60: Already exists
  155. c066267eb2b9: Pull complete
  156. 932afda2a169: Pull complete
  157. 7ed16fb7e79a: Pull complete
  158. d09137d80617: Pull complete
  159. 588769341947: Pull complete
  160. Digest: sha256:7899f284617bb051180adf6c3aedd140a519d9092b8986dd9058d4dcec0d31de
  161. Status: Downloaded newer image for goharbor/harbor-core:v1.8.0
  162. Pulling portal (goharbor/harbor-portal:v1.8.0)...
  163. v1.8.0: Pulling from goharbor/harbor-portal
  164. 4e360eca2e60: Already exists
  165. 407631badd44: Pull complete
  166. 48732609a31b: Pull complete
  167. 7990fc5850c8: Pull complete
  168. 7791f3309bed: Pull complete
  169. 912a71f3fbcb: Pull complete
  170. Digest: sha256:f84ec78616f9e99c6355ee93567f17a6727b3b7cd548ab64702977f75ac506cf
  171. Status: Downloaded newer image for goharbor/harbor-portal:v1.8.0
  172. Pulling redis (goharbor/redis-photon:v1.8.0)...
  173. v1.8.0: Pulling from goharbor/redis-photon
  174. 4e360eca2e60: Already exists
  175. b08cc3be5c43: Pull complete
  176. a750a309c85d: Pull complete
  177. 49b2d8335a1a: Pull complete
  178. 31e8f89dc042: Pull complete
  179. Digest: sha256:1e2ce8e6a852713d789c6315642d1483d1efdb4acee4699817810bef219ec93d
  180. Status: Downloaded newer image for goharbor/redis-photon:v1.8.0
  181. Pulling jobservice (goharbor/harbor-jobservice:v1.8.0)...
  182. v1.8.0: Pulling from goharbor/harbor-jobservice
  183. 4e360eca2e60: Already exists
  184. b9ac5e1016a6: Pull complete
  185. 37913733f07f: Pull complete
  186. 98baf7450120: Pull complete
  187. Digest: sha256:8ca82f98c8e970b41214793e1d9d99caaf1f84fe3a33ae510be6580b50c53ea2
  188. Status: Downloaded newer image for goharbor/harbor-jobservice:v1.8.0
  189. Pulling proxy (goharbor/nginx-photon:v1.8.0)...
  190. v1.8.0: Pulling from goharbor/nginx-photon
  191. 4e360eca2e60: Already exists
  192. 985391e9918d: Pull complete
  193. Digest: sha256:9c7c9ca3d34e5872743577ce911cabce9965935261f3b53de4196ce394504799
  194. Status: Downloaded newer image for goharbor/nginx-photon:v1.8.0
  195. Pulling clair (goharbor/clair-photon:v2.0.8-v1.8.0)...
  196. v2.0.8-v1.8.0: Pulling from goharbor/clair-photon
  197. Creating harbor-log ... done
  198. dca9fa276c49: Pull complete
  199. 41b06d3e40ab: Pull complete
  200. c38c3d958313: Pull complete
  201. Creating harbor-db ... done
  202. Creating registry ... done
  203. Creating harbor-core ... done
  204. Digest: sha256:69bd03d41e9a9c64340a9003449bcc773a1036e445d27a6a025310e17b111cb9
  205. Creating harbor-portal ... done
  206. Creating nginx ... done
  207. Creating registryctl ...
  208. Creating registry ...
  209. Creating harbor-db ...
  210. Creating redis ...
  211. Creating clair ...
  212. Creating harbor-core ...
  213. Creating harbor-jobservice ...
  214. Creating harbor-portal ...
  215. Creating nginx ...
  216.  
  217. ----Harbor has been installed and started successfully.----
  218.  
  219. Now you should be able to visit the admin portal at https://harbor.vmet.ro.
  220. For more details, please visit https://github.com/goharbor/harbor .
  221.  
  222. [root@z-adm-harbor-01 harbor]#
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement