34 lines
750 B
Makefile
34 lines
750 B
Makefile
all:
|
|
echo OK
|
|
build:
|
|
podman build -t nginx-self-signed .
|
|
run:
|
|
podman run -d --rm -p 10080:80 -p 10443:443 nginx-self-signed
|
|
|
|
build-multi:
|
|
podman buildx build --platform linux/arm/v7,linux/arm64/v8,linux/amd64 -t nginx-games .
|
|
# podman buildx build --platform linux/amd64,linux/arm64,linux/arm/v7 -t nginx-self-signed .
|
|
|
|
|
|
build-armv7:
|
|
podman buildx build --platform linux/arm/v7 -t nginx-games:latest-armv7 .
|
|
|
|
buildkit:
|
|
podman run -d --name buildkitd --privileged docker.io/moby/buildkit:latest
|
|
|
|
all: init-buildx publish
|
|
|
|
publish:
|
|
bash publish.sh
|
|
|
|
init-buildx: clean-buildx
|
|
docker buildx create --name mybuilder
|
|
docker buildx use mybuilder
|
|
docker buildx inspect --bootstrap
|
|
docker buildx ls
|
|
|
|
clean-buildx:
|
|
docker buildx rm mybuilder;true
|
|
|
|
|