mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2025-01-31 00:23:57 +00:00
dind: use --parse-arg to change dropbear config during build-time
This commit is contained in:
parent
c4f84e619f
commit
aff199f42f
3
Makefile
3
Makefile
@ -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 \
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user