1
0
mirror of /repos/node-red-pi2.git synced 2025-12-31 07:41:31 +01:00

non-pi version

This commit is contained in:
Aiko Mastboom 2015-05-10 16:52:14 +02:00
parent 944ea15abb
commit d387762c8a
3 changed files with 10 additions and 4 deletions

View File

@ -1,10 +1,10 @@
FROM aiko/rpi-node:0.10.36 FROM phusion/baseimage:0.9.16
# Use baseimage-docker's init system. # Use baseimage-docker's init system.
CMD ["/sbin/my_init"] CMD ["/sbin/my_init"]
COPY . /tmp COPY . /tmp
RUN /tmp/bootstrap RUN NODE_VERSION=0.10.38 TIMEZONE="Europe/Amsterdam" /tmp/bootstrap
RUN su -lc /tmp/bootstrap-red red RUN su -lc /tmp/bootstrap-red red
# Clean up APT when done. # Clean up APT when done.

View File

@ -1,7 +1,7 @@
.PHONY: all build push test version .PHONY: all build push test version
DOCKER_IMAGE_VERSION=0.10.6 DOCKER_IMAGE_VERSION=0.10.6
DOCKER_IMAGE_NAME=aiko/node-red-pi DOCKER_IMAGE_NAME=aiko/node-red
DOCKER_IMAGE_TAGNAME=$(DOCKER_IMAGE_NAME):$(DOCKER_IMAGE_VERSION) DOCKER_IMAGE_TAGNAME=$(DOCKER_IMAGE_NAME):$(DOCKER_IMAGE_VERSION)
all: build all: build

View File

@ -1,7 +1,8 @@
#!/usr/bin/env bash
apt-get update apt-get update
echo "Europe/Amsterdam" | tee /etc/timezone echo "${TIME_ZONE}" | tee /etc/timezone
dpkg-reconfigure --frontend noninteractive tzdata dpkg-reconfigure --frontend noninteractive tzdata
apt-get install -y \ apt-get install -y \
@ -21,6 +22,11 @@ python get-pip.py
pip install --upgrade requests[security] pip install --upgrade requests[security]
pip install RPi.GPIO pip install RPi.GPIO
curl -o /bin/nave https://raw.githubusercontent.com/isaacs/nave/master/nave.sh
chmod +x /bin/nave
/bin/nave usemain ${NODE_VERSION}
home_red=/home/red home_red=/home/red
useradd -m -d ${home_red} -s /bin/bash red useradd -m -d ${home_red} -s /bin/bash red