forked from quay/mirror-registry
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
21 lines (16 loc) · 1.07 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
include .env
all:
build-golang-executable:
sudo podman run --rm -v ${PWD}:/usr/src:Z -w /usr/src docker.io/golang:1.16 go build -v \
-ldflags "-X github.com/quay/mirror-registry/cmd.eeImage=${EE_IMAGE} -X 'github.com/quay/mirror-registry/cmd.quayImage=${QUAY_IMAGE}' -X 'github.com/quay/mirror-registry/cmd.redisImage=${REDIS_IMAGE}' -X 'github.com/quay/mirror-registry/cmd.postgresImage=${POSTGRES_IMAGE}'" \
-o mirror-registry;
build-online-zip:
sudo podman build -t mirror-registry-online:${RELEASE_VERSION} --file Dockerfile.online .
sudo podman run --name mirror-registry-online-${RELEASE_VERSION} mirror-registry-online:${RELEASE_VERSION}
sudo podman cp mirror-registry-online-${RELEASE_VERSION}:/mirror-registry.tar.gz .
build-offline-zip:
sudo podman build -t mirror-registry-offline:${RELEASE_VERSION} --file Dockerfile .
sudo podman run --name mirror-registry-offline-${RELEASE_VERSION} mirror-registry-offline:${RELEASE_VERSION}
sudo podman cp mirror-registry-offline-${RELEASE_VERSION}:/mirror-registry.tar.gz .
clean:
rm -rf mirror-registry* image-archive.tar