mise a jour

This commit is contained in:
Abdel-Kader Chabi-Sika-Boni 2020-12-30 23:51:47 +01:00
parent 628558886b
commit a6aeba0a24
3 changed files with 24 additions and 3 deletions

View file

@ -1,6 +1,14 @@
# Choosing the image to use
FROM node:buster
# Defining variables to allow flexibility (each variable can be set while building through the parameter --build-arg <varname>=<value>)
ARG local_ip=127.0.0.1
ARG local_port=8282
ARG local_name=gwf1
ARG remote_ip=127.0.0.1
ARG remote_port=8181
ARG remote_name=gwi
# Installing required libraries
RUN apt-get update && \
apt-get install -y net-tools iputils-ping && \
@ -12,7 +20,7 @@ RUN apt-get update && \
npm install request && \
wget http://homepages.laas.fr/smedjiah/tmp/gateway.js
ENV LAUNCHER "node /mydir/gateway.js --local_ip '127.0.0.1' --local_port 8181 --local_name 'gwi' --remote_ip '127.0.0.1' --remote_port 8080 --remote_name 'srv'"
ENV LAUNCHER "node /mydir/gateway.js --local_ip '$local_ip' --local_port $local_port --local_name '$local_name' --remote_ip '$remote_ip' --remote_port $remote_port --remote_name '$remote_name'"
ENV VIM_EMU_CMD "nohup $LAUNCHER &"
#ENV VIM_EMU_CMD_STOP "TODO at shutdown"

View file

@ -1,6 +1,14 @@
# Choosing the image to use
FROM node:buster
# Defining variables to allow flexibility (each variable can be set while building through the parameter --build-arg <varname>=<value>)
ARG local_ip=127.0.0.1
ARG local_port=8181
ARG local_name=gwi
ARG remote_ip=127.0.0.1
ARG remote_port=8080
ARG remote_name=srv
# Installing required libraries
RUN apt-get update && \
apt-get install -y net-tools iputils-ping && \
@ -12,7 +20,7 @@ RUN apt-get update && \
npm install request && \
wget http://homepages.laas.fr/smedjiah/tmp/gateway.js
ENV LAUNCHER "node /mydir/gateway.js --local_ip '127.0.0.1' --local_port 8282 --local_name 'gwf1' --remote_ip '127.0.0.1' --remote_port 8181 --remote_name 'gwi'"
ENV LAUNCHER "node /mydir/gateway.js --local_ip '$local_ip' --local_port $local_port --local_name '$local_name' --remote_ip '$remote_ip' --remote_port $remote_port --remote_name '$remote_name'"
ENV VIM_EMU_CMD "nohup $LAUNCHER &"
#ENV VIM_EMU_CMD_STOP "TODO at shutdown"

View file

@ -1,6 +1,11 @@
# Choosing the image to use
FROM node:buster
# Defining variables to allow flexibility (each variable can be set while building through the parameter --build-arg <varname>=<value>)
ARG local_ip=127.0.0.1
ARG local_port=8080
ARG local_name=srv
# Installing required libraries
RUN apt-get update && \
apt-get install -y net-tools iputils-ping && \
@ -12,7 +17,7 @@ RUN apt-get update && \
npm install request && \
wget http://homepages.laas.fr/smedjiah/tmp/server.js
ENV LAUNCHER "node /mydir/server.js --local_ip '127.0.0.1' --local_port '8080' --local_name 'srv'"
ENV LAUNCHER "node /mydir/server.js --local_ip '$local_ip' --local_port '$local_port' --local_name '$local_name'"
ENV VIM_EMU_CMD "nohup $LAUNCHER &"
#ENV VIM_EMU_CMD_STOP "TODO at shutdown"