Make supervisor deployable with resin

This commit is contained in:
Petros Angelatos 2014-06-09 23:48:42 +01:00 committed by Pablo Carranza Vélez
parent ff7d6c1f8a
commit 272daea89c
3 changed files with 8 additions and 5 deletions

View File

@ -1,7 +1,3 @@
FROM resin/rpi-buildstep:v0.0.7 FROM resin/rpi-buildstep:v0.0.7
ADD . /app ADD . /app
ADD deploy_key /root/.ssh/id_rsa
RUN chmod 400 /root/.ssh/id_rsa
ADD known_hosts /root/.ssh/known_hosts
RUN /build/builder RUN /build/builder
ENTRYPOINT ["/app/entry.sh"]

View File

@ -1,2 +1,9 @@
# Deploy key for private npm modules
mkdir -p /root/.ssh
cp deploy_key /root/.ssh/id_rsa
chmod 400 /root/.ssh/id_rsa
cp known_hosts /root/.ssh/known_hosts
# System dependencies
apt-get update apt-get update
apt-get install -y openvpn libsqlite3-dev python apt-get install -y openvpn libsqlite3-dev python

View File

@ -4,7 +4,7 @@
"scripts": { "scripts": {
"preinstall": "bash deps.sh", "preinstall": "bash deps.sh",
"postinstall": "node ./node_modules/coffee-script/bin/coffee -c ./src", "postinstall": "node ./node_modules/coffee-script/bin/coffee -c ./src",
"start": "node src/supervisor.js" "start": "bash entry.sh node src/supervisor.js"
}, },
"dependencies": { "dependencies": {
"coffee-script": "~1.7.1", "coffee-script": "~1.7.1",