container-images/fedora-dev/Makefile
Vincent Batts 57c47d0cdc dev: initial environment
fedora, centos and ubuntu

* fewer layers
* systemd-dev
* basic pieces for building docker everytime
* centos updates
* better automated build
2015-04-30 17:03:14 -04:00

28 lines
505 B
Makefile

DOCKER ?= $(shell which docker)
FROM_IMAGE ?= fedora
#FROM_TAG ?= 21
FROM_TAG ?= latest
FROM := $(FROM_IMAGE):$(FROM_TAG)
REGISTRY ?= docker.usersys
NAME ?= $(REGISTRY)/$(USER)/$(FROM_IMAGE)-dev:$(FROM_TAG)
default: build
Dockerfile: Dockerfile.in
m4 --define=DEV_USER=$(USER) --define=FROM_IMAGE=$(FROM) $< > $@
build: .build
.build: Dockerfile .pull
$(DOCKER) build -t $(NAME) . && touch $@
pull: .pull
.pull:
$(DOCKER) pull $(FROM) && touch $@
clean:
rm -rf .build .pull Dockerfile *~