mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2025-02-20 17:52:51 +00:00
Pull super from DEPLOY_REGISTRY. Add make stop-supervisor
This commit is contained in:
parent
9ea79516a0
commit
b54871bc03
8
Makefile
8
Makefile
@ -2,7 +2,7 @@ DISABLE_CACHE = 'false'
|
||||
|
||||
ARCH = rpi# rpi/amd64/i386/armv7hf
|
||||
|
||||
DEPLOY_REGISTRY = registry.resindev.io:5000/
|
||||
DEPLOY_REGISTRY = registry.resindev.io/
|
||||
|
||||
SUPERVISOR_VERSION = master
|
||||
|
||||
@ -20,9 +20,13 @@ run-supervisor: supervisor-dind
|
||||
-docker stop resin_supervisor_1 > /dev/null
|
||||
-docker rm -f resin_supervisor_1 > /dev/null
|
||||
cd tools/dind \
|
||||
&& sed --in-place -e "s|SUPERVISOR_IMAGE=.*|SUPERVISOR_IMAGE=resin/$(ARCH)-supervisor:$(SUPERVISOR_VERSION)|" config/env \
|
||||
&& sed --in-place -e "s|SUPERVISOR_IMAGE=.*|SUPERVISOR_IMAGE=$(DEPLOY_REGISTRY)$(IMAGE) |" config/env \
|
||||
&& docker run -d --name resin_supervisor_1 --privileged -v $$(pwd)/config.json:/usr/src/app/config/config.json -v $$(pwd)/config/env:/usr/src/app/config/env -v /sys/fs/cgroup:/sys/fs/cgroup:ro resin/resin-supervisor-dind:$(SUPERVISOR_VERSION)
|
||||
|
||||
stop-supervisor:
|
||||
docker exec resin_supervisor_1 umount /var/lib/docker
|
||||
docker stop resin_supervisor_1
|
||||
|
||||
supervisor:
|
||||
cp Dockerfile.$(ARCH) Dockerfile
|
||||
echo "ENV VERSION "`jq -r .version package.json` >> Dockerfile
|
||||
|
Loading…
x
Reference in New Issue
Block a user