Initial Release - for Mystic BBS 1.1.12a39
This commit is contained in:
18
Makefile
Normal file
18
Makefile
Normal file
@@ -0,0 +1,18 @@
|
||||
NAME=$$(head -1 Dockerfile|grep NAME |awk '{print $$3}')
|
||||
VERSION=$$(grep VERSION Dockerfile |awk '{print $$3}')
|
||||
REGISTRY=registry.leenooks.net
|
||||
SUBDIRS := $(wildcard */.)
|
||||
.PHONY: all build image $(SUBDIRS)
|
||||
|
||||
all: build
|
||||
|
||||
build: Dockerfile
|
||||
@if test "$(NAME)" = ""; then echo "NAME not in Dockerfile."; exit 1; fi
|
||||
@if test "$(VERSION)" = ""; then echo "VERSION not in Dockerfile."; exit 1; fi
|
||||
@if test -f image.bz2; then rm -f image.bz2; fi
|
||||
@#docker pull $(NAME):$(VERSION)
|
||||
@#docker build --cache-from $(NAME):$(VERSION) -t $(NAME):$(VERSION) .
|
||||
docker build -t $(NAME):$(VERSION) .
|
||||
|
||||
image: Dockerfile
|
||||
docker save $(NAME):$(VERSION) | bzip2 -9 > image.bz2
|
Reference in New Issue
Block a user