github.com/metasources/buildx@v0.0.0-20230418141019-7aa1459cedea/test/cli/test-fixtures/registry/Makefile (about)

     1  all: build start
     2  
     3  .PHONY: stop
     4  stop:
     5  	docker kill registry
     6  
     7  .PHONY: build
     8  build:
     9  	docker build -t localhost:5000/attest:latest .
    10  
    11  .PHONY: start
    12  start:
    13  	docker run --rm \
    14  				-d \
    15  				--name registry \
    16  				-it \
    17  				--privileged \
    18  				-p 5000:5000 \
    19  				registry:2.8
    20  
    21  .PHONY: push
    22  push:
    23  	docker push localhost:5000/attest:latest