Created
August 26, 2016 14:23
-
-
Save jbrisbin/98a91dbb754b4cd42373a0d402b4efe8 to your computer and use it in GitHub Desktop.
Makefile to build multiple build-essential images from a single set
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
BUILD_BASE ?= y | |
UPGRADE ?= y | |
DOCKER ?= y | |
FPM ?= y | |
JAVA ?= y | |
FROM ?= ubuntu:14.04 | |
MAINTAINER = Jon Brisbin <[email protected]> | |
OS_FAMILY = $(shell echo "$(FROM)" | cut -d: -f1) | |
OS_VERSION = $(shell echo "$(FROM)" | cut -d: -f2) | |
OS_TAG = $(shell echo "$(FROM)" | tr : -) | |
TAG = basho/build-essential:$(OS_TAG) | |
OVERLAY_DIRS = $(OS_FAMILY) . | |
OVERLAYS = env env-$(OS_VERSION) | |
ifeq (y,$(BUILD_BASE)) | |
OVERLAYS += build-base build-base-py git-ssh | |
endif | |
ifeq (y,$(DOCKER)) | |
OVERLAYS += docker | |
endif | |
ifeq (y,$(FPM)) | |
OVERLAYS += fpm | |
endif | |
ifeq (y,$(JAVA)) | |
OVERLAYS += openjdk-8 maven sbt | |
endif | |
ifeq (y,$(UPGRADE)) | |
OVERLAYS += upgrade | |
endif | |
-include ../../docker.mk |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment