Add option to archive images from Capact Helm Charts, make neo4j "internetless" #476
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Currently each Capact installation downloads 1GB. We can reduce that by preloading images into our environment. This PR adds option to "snapshots" images defined in our Helm Charts. As a result we can mount them to env:
capact env create k3d --volume="$PWD/capact-images.tar:/var/lib/rancher/k3s/agent/images/capact-images.tar" --wait 5mWe can also run this command on each release and add that to our assets on GitHub release.
Changes proposed in this pull request:
apocplugin to Neo4j docker image, so internet connection is not needed on startupInfoin status printerI decided to use dot:
but if you think, that emoji is better, let me know: (for me additional padding would be required in this scenario)
Testing
gzip archive (1.3G, create env time: 2m19s):
tar archive (3.6G, create env time: 2m30s):
capact alpha archive-images helm -v --version @latest --helm-repo-url https://storage.googleapis.com/capact-exp-helm-charts --output ./archive.tar capact env create k3d -v --volume="$PWD/archive.tar:/var/lib/rancher/k3s/agent/images/archive.tar" --wait 5mYou can chekc that no images were pulled during
capact install. The images that were pulled are directly connected with the k3d. We can in the future add option to cache also cluster images.Real dev scenario
Save images without monitoring:
Create a cluster:
Now it takes ~5min to have up and running Capact dev cluster.
Related issue(s)