Initial Release - for Mystic BBS 1.1.12a39

This commit is contained in:
Deon George
2018-08-24 13:57:25 +10:00
commit 56fbac0a96
11 changed files with 297 additions and 0 deletions

18
Makefile Normal file
View 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