Added Clixon example full system docker container, see [docker/system].

This commit is contained in:
Olof Hagsand 2019-02-07 22:23:58 +01:00
parent ae8d28fae8
commit 2b596591f1
24 changed files with 439 additions and 124 deletions

View file

@ -38,15 +38,17 @@ CFLAGS = @CFLAGS@
LDFLAGS = @LDFLAGS@
LIBS = @LIBS@
# Change this
IMAGE = olofhagsand/clixon
# Example docker image. PLEASE CHANGE THIS IF YOU PUSH
IMG_BASE = olofhagsand/clixon # base image
SHELL = /bin/sh
SUBDIRS = system
#SUBDIRS += cluster
.PHONY: all clean depend install docker push
all:
all: $(SUBDIRS)
echo "Run make docker to build docker image"
clean:
@ -54,12 +56,11 @@ clean:
distclean: clean
rm -f Makefile *~ .depend
docker:
sudo docker build -t $(IMAGE) . # --no-cache
echo "cd ../example; make docker to build example application"
docker: Dockerfile
sudo docker build -t $(IMG_BASE) . # --no-cache
push:
sudo docker push $(IMAGE)
sudo docker push $(IMG_BASE)
depend: