Skip to content

Commit

Permalink
Merge pull request #191 from resin-io/188-use-docker-build-arg
Browse files Browse the repository at this point in the history
dind: use --parse-arg to change dropbear config during build-time
  • Loading branch information
lekkas committed Jul 5, 2016
2 parents c4f84e6 + aff199f commit 59cf4fd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions Makefile
Expand Up @@ -74,8 +74,7 @@ clean:
-rm Dockerfile

supervisor-dind:
sed -i 's/\(ENV PASSWORDLESS_DROPBEAR\).*/\1 ${PASSWORDLESS_DROPBEAR}/' tools/dind/Dockerfile
cd tools/dind && docker build $(DOCKER_HTTP_PROXY) $(DOCKER_HTTPS_PROXY) --no-cache=$(DISABLE_CACHE) -t resin/resin-supervisor-dind:$(SUPERVISOR_VERSION) .
cd tools/dind && docker build $(DOCKER_HTTP_PROXY) $(DOCKER_HTTPS_PROXY) --no-cache=$(DISABLE_CACHE) --build-arg PASSWORDLESS_DROPBEAR=$(PASSWORDLESS_DROPBEAR) -t resin/resin-supervisor-dind:$(SUPERVISOR_VERSION) .

run-supervisor: supervisor-dind stop-supervisor
cd tools/dind \
Expand Down
2 changes: 1 addition & 1 deletion tools/dind/Dockerfile
Expand Up @@ -14,7 +14,7 @@ ENV DOCKER_VERSION 1.10.3
ENV RELEASE_NAME jessie

# Change to 'true' to allow blank password dropbear logins on dind HostOS
ENV PASSWORDLESS_DROPBEAR false
ARG PASSWORDLESS_DROPBEAR=false

COPY config/certs/ /usr/local/share/ca-certificates/
RUN rm -f /usr/local/share/ca-certificates/.keepme ; update-ca-certificates
Expand Down

0 comments on commit 59cf4fd

Please sign in to comment.