Browse Source

Fixes for npm with env vars

feature/dockerfile-arm
Gonzalo Javier Aune 5 years ago
parent
commit
8b4f54f5ee
  1. 5
      Dockerfile
  2. 2
      init.sh
  3. 2
      relay_supervisor.conf

5
Dockerfile

@ -59,7 +59,7 @@ RUN npm install nodemon --save-dev
RUN npm install express --save-dev
RUN npm install webpack webpack-cli --save-dev
RUN apk --no-cache add g++ gcc libgcc libstdc++ linux-headers make python jq git
RUN apk --no-cache add g++ gcc libgcc libstdc++ linux-headers make python jq git curl
RUN npm install --quiet node-gyp -g
RUN npm install sqlite3 --build-from-source --save-dev
@ -71,9 +71,6 @@ VOLUME /relay/.lnd
COPY ./lnd.conf.sample /relay/.lnd/lnd.conf
COPY init.sh /etc/profile.d/
RUN sudo chmod +x /etc/profile.d/init.sh
RUN mkdir -p /var/log/supervisor
COPY ./supervisord.conf /etc/supervisord.conf
COPY ./lnd_supervisor.conf /etc/supervisor.d/lnd_supervisor.ini

2
init.sh

@ -1,2 +0,0 @@
NODE_IP=$(curl http://169.254.170.2/v4/e52231f4-0246-4fc5-bc3e-ac20df1b118e | echo $(jq -r .DockerName).$NODE_DOMAIN)
NODE_ALIAS=$(curl http://169.254.170.2/v4/e52231f4-0246-4fc5-bc3e-ac20df1b118e | echo $(jq -r .DockerName))

2
relay_supervisor.conf

@ -1,6 +1,6 @@
[program:relay]
user=root
command=npm start --prefix /relay/
command=npm run start-ecs --prefix /relay/
startretries=999999999999999999999999999
autostart=true
autorestart=true
Loading…
Cancel
Save