mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2024-12-23 23:42:29 +00:00
i386 support for the edison
This commit is contained in:
parent
58cbb3808e
commit
36e5af0018
24
Dockerfile.i386
Normal file
24
Dockerfile.i386
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
FROM resin/i386-ubuntu:14.04
|
||||||
|
|
||||||
|
# Install.
|
||||||
|
RUN \
|
||||||
|
apt-get update && \
|
||||||
|
apt-get install -y curl git unzip wget npm nodejs inetutils-ping
|
||||||
|
|
||||||
|
ADD . /app
|
||||||
|
|
||||||
|
WORKDIR /app
|
||||||
|
|
||||||
|
ENV SUPERVISOR_IMAGE resin/i386-supervisor
|
||||||
|
ENV CONFIG_MOUNT_POINT /boot/config.json
|
||||||
|
ENV LED_FILE /dev/null
|
||||||
|
|
||||||
|
RUN rm -rf node_modules
|
||||||
|
RUN ln -sf /usr/bin/nodejs /usr/bin/node
|
||||||
|
RUN npm install --unsafe-perm --production
|
||||||
|
|
||||||
|
RUN ln -sf /app/entry.sh /start
|
||||||
|
|
||||||
|
RUN apt-get clean
|
||||||
|
|
||||||
|
CMD ["/app/entry.sh"]
|
@ -4,7 +4,7 @@ ADD . /app
|
|||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
ENV SUPERVISOR_IMAGE resin/x86-supervisor
|
ENV SUPERVISOR_IMAGE resin/x86_64-supervisor
|
||||||
ENV CONFIG_MOUNT_POINT /boot/config.json
|
ENV CONFIG_MOUNT_POINT /boot/config.json
|
||||||
ENV LED_FILE /dev/null
|
ENV LED_FILE /dev/null
|
||||||
|
|
16
Makefile
16
Makefile
@ -49,10 +49,16 @@ supervisor-accelerated:
|
|||||||
echo 'Please run make accelerator in resin-buildstep to continue'
|
echo 'Please run make accelerator in resin-buildstep to continue'
|
||||||
endif
|
endif
|
||||||
|
|
||||||
supervisor-x86:
|
supervisor-x86_64:
|
||||||
tar --exclude="Dockerfile" --transform='flags=r;s|Dockerfile.x86|Dockerfile|' -c . | docker build -t resin/x86-supervisor -
|
tar --exclude="Dockerfile" --transform='flags=r;s|Dockerfile.x86_64|Dockerfile|' -c . | docker build -t resin/x86_64-supervisor -
|
||||||
|
|
||||||
run-supervisor-x86:
|
run-supervisor-x86_64:
|
||||||
docker run --privileged -d -v /var/run/docker.sock:/run/docker.sock -e API_ENDPOINT=https://staging.resin.io -e REGISTRY_ENDPOINT=registry.staging.resin.io -e PUBNUB_SUBSCRIBE_KEY=sub-c-bananas -e PUBNUB_PUBLISH_KEY=pub-c-bananas -e MIXPANEL_TOKEN=bananasbananas resin/x86-supervisor /start
|
docker run --privileged -d -v /var/run/docker.sock:/run/docker.sock -e API_ENDPOINT=https://staging.resin.io -e REGISTRY_ENDPOINT=registry.staging.resin.io -e PUBNUB_SUBSCRIBE_KEY=sub-c-bananas -e PUBNUB_PUBLISH_KEY=pub-c-bananas -e MIXPANEL_TOKEN=bananasbananas resin/x86_64-supervisor /start
|
||||||
|
|
||||||
.PHONY: supervisor supervisor-accelerated supervisor-x86 run-supervisor-x86
|
supervisor-i386:
|
||||||
|
tar --exclude="Dockerfile" --transform='flags=r;s|Dockerfile.i386|Dockerfile|' -c . | docker build -t resin/i386-supervisor -
|
||||||
|
|
||||||
|
run-supervisor-i386:
|
||||||
|
docker run --privileged -d -v /var/run/docker.sock:/run/docker.sock -e API_ENDPOINT=https://staging.resin.io -e REGISTRY_ENDPOINT=registry.staging.resin.io -e PUBNUB_SUBSCRIBE_KEY=sub-c-bananas -e PUBNUB_PUBLISH_KEY=pub-c-bananas -e MIXPANEL_TOKEN=bananasbananas resin/i386-supervisor /start
|
||||||
|
|
||||||
|
.PHONY: supervisor supervisor-accelerated supervisor-x86_64 run-supervisor-x86_64 supervisor-i386 run-supervisor-i386
|
||||||
|
Loading…
Reference in New Issue
Block a user