Skip to content

Commit 307a0d0

Browse files
authored
Update pushing Docker images instructions (#132)
1 parent b25e662 commit 307a0d0

1 file changed

Lines changed: 2 additions & 8 deletions

File tree

docs/infrastructure-docker-packer.md

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@ registry for Nomad to use it in new job allocations.
2121
## Packer-defined images
2222

2323
Newer 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

2726
There's a [GitHub Action
2827
here](https://github.com/alisw/docks/actions/workflows/push-docker-image.yml)
@@ -34,14 +33,9 @@ In case you prefer to do it manually:
3433
brew install packer # > 0.10.0
3534
cd <image-name>
3635
packer 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

4741
Older images without a `packer.json` can be built with:

0 commit comments

Comments
 (0)