File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -21,8 +21,7 @@ registry for Nomad to use it in new job allocations.
2121## Packer-defined images
2222
2323Newer images have a `` packer.json `` file, which allows them to be built using
24- Hashicorp packer. This has the nice advantage that we can customize and upload
25- the images in one go.
24+ Hashicorp packer
2625
2726There's a [ GitHub Action
2827here] ( https://github.com/alisw/docks/actions/workflows/push-docker-image.yml )
@@ -34,14 +33,9 @@ In case you prefer to do it manually:
3433brew install packer # > 0.10.0
3534cd < image-name>
3635packer build packer.json
36+ docker push registry.cern.ch/alisw/< image-name>
3737```
3838
39- If you don't want to upload the finished image to DockerHub (e.g. if you're just
40- testing changes to the image, or you don't have the rights to upload), remove
41- the ` "docker-push" ` entry from ` "post-processors" ` in the ` packer.json ` you're
42- using. (JSON doesn't allow trailing commas in arrays, so don't forget to remove
43- the comma as well!)
44-
4539## Dockerfile-defined images
4640
4741Older images without a ` packer.json ` can be built with:
You can’t perform that action at this time.
0 commit comments