2022-08-30 14:13:29 +00:00
|
|
|
##DOCKER ?= DOCKER_BUILDKIT=1 docker
|
|
|
|
DOCKER ?= docker
|
2021-09-08 13:07:25 +00:00
|
|
|
|
2020-12-15 06:05:00 +00:00
|
|
|
all:
|
2021-08-31 16:13:29 +00:00
|
|
|
@echo "Choose one of the following targets:"
|
2022-08-30 14:13:29 +00:00
|
|
|
@echo " alpine rocky ubnt"
|
2021-08-31 16:13:29 +00:00
|
|
|
|
2022-08-30 14:13:29 +00:00
|
|
|
alpine: @srcdir@/codepot-@VERSION@.tar.gz
|
2022-08-30 17:05:35 +00:00
|
|
|
$(DOCKER) build -t codepot:alpine -f @srcdir@/Dockerfile.alpine @srcdir@ || true
|
2021-09-08 13:04:04 +00:00
|
|
|
rm -f @srcdir@/codepot-@VERSION@.tar.gz
|
2021-08-31 16:13:29 +00:00
|
|
|
|
2022-08-16 09:22:57 +00:00
|
|
|
rocky: @srcdir@/codepot-@VERSION@.tar.gz
|
|
|
|
$(DOCKER) build -t codepot:rocky -f @srcdir@/Dockerfile.rocky @srcdir@ || true
|
2021-09-08 13:04:04 +00:00
|
|
|
rm -f @srcdir@/codepot-@VERSION@.tar.gz
|
2021-09-08 11:59:01 +00:00
|
|
|
|
2022-08-30 14:13:29 +00:00
|
|
|
ubnt: @srcdir@/codepot-@VERSION@.tar.gz
|
|
|
|
$(DOCKER) build -t codepot:ubnt -f @srcdir@/Dockerfile.ubnt @srcdir@ || true
|
|
|
|
rm -f @srcdir@/codepot-@VERSION@.tar.gz
|
|
|
|
|
2022-08-30 15:05:30 +00:00
|
|
|
push:
|
|
|
|
$(DOCKER) tag codepot:rocky hyunghwan/codepot:rocky
|
|
|
|
$(DOCKER) tag codepot:ubnt hyunghwan/codepot:ubnt
|
|
|
|
$(DOCKER) push hyunghwan/codepot:rocky
|
|
|
|
$(DOCKER) push hyunghwan/codepot:ubnt
|
|
|
|
|
2021-09-08 12:58:56 +00:00
|
|
|
@srcdir@/codepot-@VERSION@.tar.gz:
|
2021-09-08 11:59:01 +00:00
|
|
|
cd .. && make dist
|
2021-09-08 12:58:56 +00:00
|
|
|
cp ../codepot-@VERSION@.tar.gz @srcdir@/
|
2021-09-08 11:59:01 +00:00
|
|
|
|