Skip to content

Commit

Permalink
hostname building
Browse files Browse the repository at this point in the history
  • Loading branch information
paultag committed Feb 26, 2014
1 parent c1da2ff commit 55ec81c
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion contrib/docker/ursae-private/Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
HOSTNAME=$(shell hostname --fqdn)
IMAGE_ID=debile-slave-ursae-private
CURRENT_ID = $(shell docker.io images -q $(IMAGE_ID))
IMAGE_BUILD = docker.io build \
Expand All @@ -6,7 +7,15 @@ IMAGE_BUILD = docker.io build \
-t $(IMAGE_ID) \
.

build:
all: build


config.tar.gz:
../../../debian/bin/debile-generate-slave-keys $(HOSTNAME)
mv $(HOSTNAME).tar.gz config.tar.gz


build: config.tar.gz
ifeq ($(CURRENT_ID),)
$(IMAGE_BUILD)
else
Expand Down

0 comments on commit 55ec81c

Please sign in to comment.