Docker Makefile: added DNS option.
This commit is contained in:
parent
580816dde8
commit
7542b861c3
@ -23,9 +23,10 @@
|
|||||||
TAG := glued
|
TAG := glued
|
||||||
VERSION := 2016.05.0
|
VERSION := 2016.05.0
|
||||||
VOLUME := $(CURDIR)/..
|
VOLUME := $(CURDIR)/..
|
||||||
|
DNS := 8.8.8.8
|
||||||
|
|
||||||
all:
|
all:
|
||||||
docker build -t $(TAG):$(VERSION) .
|
docker build -t $(TAG):$(VERSION) .
|
||||||
|
|
||||||
shell:
|
shell:
|
||||||
docker run -w $(VOLUME) -i -a stdin -a stdout -v $(VOLUME):$(VOLUME) -t $(TAG):$(VERSION)
|
docker run -w $(VOLUME) --dns=$(DNS) -i -a stdin -a stdout -v $(VOLUME):$(VOLUME) -t $(TAG):$(VERSION)
|
||||||
|
Reference in New Issue
Block a user