Skip to content

Commit

Permalink
convenience makefile target for local image building
Browse files Browse the repository at this point in the history
  • Loading branch information
jschaul committed Nov 8, 2022
1 parent 57f2317 commit 87b769e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,16 @@ shellcheck:
#################################
## docker targets

.PHONY: build-image-%
build-image-%:
nix-build ./nix -A wireServer.imagesNoDocs.$(*) && \
./result | docker load | tee /tmp/imageName-$(*) && \
imageName=$$(grep quay.io /tmp/imageName-$(*) | awk '{print $$3}') && \
echo 'You can run your image locally using' && \
echo " docker run -it --entrypoint bash $$imageName" && \
echo 'or upload it using' && \
echo " docker push $$imageName"

.PHONY: upload-images
upload-images:
./hack/bin/upload-images.sh imagesNoDocs
Expand Down

0 comments on commit 87b769e

Please sign in to comment.