1
0
mirror of https://github.com/ncarlier/webhookd.git synced 2025-04-09 21:51:52 +00:00
Add key target that will mount the ssh folder (excluded by default) to
/root/.ssh
This commit is contained in:
Loic Rodier 2015-03-24 20:52:35 +01:00
parent bb24dae3b0
commit 309cc9fdc9

View File

@ -14,7 +14,7 @@ define docker_run_flags
--rm \
-v /var/run/docker.sock:/var/run/docker.sock \
--env-file $(PWD)/etc/env.conf \
-P \
-p 8081:8080 \
-i -t
endef
@ -22,7 +22,11 @@ all: build
volume:
echo "Building $(APPNAME) volumes..."
sudo docker run -v $(PWD):/opt/$(APPNAME) -v ~/var/$(APPNAME):/var/opt/$(APPNAME) --name $(APPNAME)_volumes busybox true
sudo docker run -v $(PWD)/scripts:/var/opt/webhookd/scripts --name $(APPNAME)_volumes busybox true
key:
$(eval docker_run_flags += -v $(PWD)/ssh:/root/.ssh)
echo "Add techKey"
dev:
$(eval docker_run_flags += --volumes-from $(APPNAME)_volumes)