You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

43 lines
1.3 KiB

  1. # Offline deployment
  2. ## manage-offline-container-images.sh
  3. Container image collecting script for offline deployment
  4. This script has two features:
  5. (1) Get container images from an environment which is deployed online.
  6. (2) Deploy local container registry and register the container images to the registry.
  7. Step(1) should be done online site as a preparation, then we bring the gotten images
  8. to the target offline environment.
  9. Then we will run step(2) for registering the images to local registry.
  10. Step(1) can be operated with:
  11. ```shell
  12. manage-offline-container-images.sh create
  13. ```
  14. Step(2) can be operated with:
  15. ```shell
  16. manage-offline-container-images.sh register
  17. ```
  18. ## generate_list.sh
  19. This script generates the list of downloaded files and the list of container images by `roles/download/defaults/main.yml` file.
  20. Run this script will generates three files, all downloaded files url in files.list, all container images in images.list, all component version in generate.sh.
  21. ```shell
  22. bash generate_list.sh
  23. tree temp
  24. temp
  25. ├── files.list
  26. ├── generate.sh
  27. └── images.list
  28. 0 directories, 3 files
  29. ```
  30. In some cases you may want to update some component version, you can edit `generate.sh` file, then run `bash generate.sh | grep 'https' > files.list` to update file.list or run `bash generate.sh | grep -v 'https'> images.list` to update images.list.