mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2025-02-18 17:00:25 +00:00
Make supervisor deployable with resin
This commit is contained in:
parent
ff7d6c1f8a
commit
272daea89c
@ -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"]
|
|
||||||
|
7
deps.sh
7
deps.sh
@ -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
|
||||||
|
@ -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",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user