mirror of
https://github.com/project-zot/zot.git
synced 2025-01-06 22:40:28 -05:00
29 lines
1,008 B
Makefile
29 lines
1,008 B
Makefile
|
CONTAINER_RUNTIME := $(shell command -v podman 2> /dev/null || echo docker)
|
||
|
|
||
|
.PHONY: binary-container
|
||
|
binary-container:
|
||
|
${CONTAINER_RUNTIME} build -f Dockerfile -t zot-build:latest ../../.
|
||
|
|
||
|
.PHONY: run-container
|
||
|
run-container:
|
||
|
${CONTAINER_RUNTIME} run --rm --security-opt label=disable -v $$(pwd)/../..:/go/src/github.com/anuvu/zot \
|
||
|
zot-build:latest
|
||
|
|
||
|
.PHONY: binary-minimal-container
|
||
|
binary-minimal-container:
|
||
|
${CONTAINER_RUNTIME} build -f Dockerfile-minimal -t zot-minimal:latest ../../.
|
||
|
|
||
|
.PHONY: run-minimal-container
|
||
|
run-minimal-container:
|
||
|
${CONTAINER_RUNTIME} run --rm --security-opt label=disable -v $$(pwd)/../..:/go/src/github.com/anuvu/zot \
|
||
|
zot-minimal:latest
|
||
|
|
||
|
.PHONY: binary-exporter-container
|
||
|
binary-exporter-container:
|
||
|
${CONTAINER_RUNTIME} build -f Dockerfile-exporter -t zot-exporter:latest ../../.
|
||
|
|
||
|
.PHONY: run-exporter-container
|
||
|
run-exporter-container:
|
||
|
${CONTAINER_RUNTIME} run --rm --security-opt label=disable -v $$(pwd)/../..:/go/src/github.com/anuvu/zot \
|
||
|
zot-exporter:latest
|