mise a jour
This commit is contained in:
parent
d96b41a057
commit
80158d515f
6 changed files with 42 additions and 44 deletions
|
@ -1,23 +1,22 @@
|
||||||
# Choosing the image to use
|
# Choosing the image to use
|
||||||
FROM node:alpine
|
FROM node:buster
|
||||||
|
|
||||||
# Installing required libraries
|
# Installing required libraries
|
||||||
RUN apk add npm && \
|
RUN apt-get update && \
|
||||||
apk add bash && \
|
apt-get install -y net-tools iputils-ping && \
|
||||||
mkdir device && \
|
mkdir mydir && \
|
||||||
cd device && \
|
cd mydir && \
|
||||||
npm install express && \
|
npm install express && \
|
||||||
npm install yargs && \
|
npm install yargs && \
|
||||||
npm install systeminformation && \
|
npm install systeminformation && \
|
||||||
npm install request && \
|
npm install request && \
|
||||||
wget http://homepages.laas.fr/smedjiah/tmp/device.js
|
wget http://homepages.laas.fr/smedjiah/tmp/device.js
|
||||||
|
|
||||||
# set entry point for emulator gatekeeper (needed for compatibility with vim-emu datacenters)
|
ENV LAUNCHER "node /mydir/device.js --local_ip '127.0.0.1' --local_port 9001 --local_name 'dev1' --remote_ip '127.0.0.1' --remote_port 8282 --remote_name 'gwf1' --send_period 3000"
|
||||||
#ENV VIM_EMU_CMD "node /device/device.js --local_ip "127.0.0.1" --local_port 9001 --local_name "dev1" --remote_ip "127.0.0.1" --remote_port 8282 --remote_name "gwf1" --send_period 3000" #uncomment when on ContainerNet datacenter
|
|
||||||
#ENV VIM_EMU_CMD "TODO at startup"
|
ENV VIM_EMU_CMD "nohup $LAUNCHER &"
|
||||||
#ENV VIM_EMU_CMD_STOP "TODO at shutdown"
|
#ENV VIM_EMU_CMD_STOP "TODO at shutdown"
|
||||||
|
|
||||||
# CMD should always point to /bin/bash to not block the emulator (sh for node:alpine)
|
# Mandatory entrypoint in containernet
|
||||||
CMD node /device/device.js --local_ip "127.0.0.1" --local_port 9001 --local_name "dev1" --remote_ip "127.0.0.1" --remote_port 8282 --remote_name "gwf1" --send_period 3000 #comment when on ContainerNet datacenter
|
CMD /bin/bash
|
||||||
#CMD /bin/bash #uncomment when on ContainerNet datacenter
|
|
||||||
|
|
||||||
|
|
|
@ -1,24 +1,22 @@
|
||||||
# Choosing the image to use
|
# Choosing the image to use
|
||||||
FROM node:alpine
|
FROM node:buster
|
||||||
|
|
||||||
# Installing required libraries
|
# Installing required libraries
|
||||||
RUN apk add npm && \
|
RUN apt-get update && \
|
||||||
mkdir gateway && \
|
apt-get install -y net-tools iputils-ping && \
|
||||||
cd gateway && \
|
mkdir mydir && \
|
||||||
|
cd mydir && \
|
||||||
npm install express && \
|
npm install express && \
|
||||||
npm install yargs && \
|
npm install yargs && \
|
||||||
npm install systeminformation && \
|
npm install systeminformation && \
|
||||||
npm install request && \
|
npm install request && \
|
||||||
wget http://homepages.laas.fr/smedjiah/tmp/gateway.js
|
wget http://homepages.laas.fr/smedjiah/tmp/gateway.js
|
||||||
|
|
||||||
# set entry point for emulator gatekeeper (needed for compatibility with vim-emu datacenters)
|
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 VIM_EMU_CMD "node /gateway/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"
|
|
||||||
#uncomment when on ContainerNet datacenter
|
ENV VIM_EMU_CMD "nohup $LAUNCHER &"
|
||||||
#ENV VIM_EMU_CMD "TODO at startup"
|
|
||||||
#ENV VIM_EMU_CMD_STOP "TODO at shutdown"
|
#ENV VIM_EMU_CMD_STOP "TODO at shutdown"
|
||||||
|
|
||||||
# CMD should always point to /bin/bash to not block the emulator (sh for node:alpine)
|
# Mandatory entrypoint in containernet
|
||||||
CMD node /gateway/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"
|
CMD /bin/bash
|
||||||
#comment when on ContainerNet datacenter
|
|
||||||
#CMD /bin/sh #uncomment when on ContainerNet datacenter
|
|
||||||
|
|
||||||
|
|
|
@ -1,22 +1,22 @@
|
||||||
# Choosing the image to use
|
# Choosing the image to use
|
||||||
FROM node:alpine
|
FROM node:buster
|
||||||
|
|
||||||
# Installing required libraries
|
# Installing required libraries
|
||||||
RUN apk add npm && \
|
RUN apt-get update && \
|
||||||
mkdir gateway && \
|
apt-get install -y net-tools iputils-ping && \
|
||||||
cd gateway && \
|
mkdir mydir && \
|
||||||
|
cd mydir && \
|
||||||
npm install express && \
|
npm install express && \
|
||||||
npm install yargs && \
|
npm install yargs && \
|
||||||
npm install systeminformation && \
|
npm install systeminformation && \
|
||||||
npm install request && \
|
npm install request && \
|
||||||
wget http://homepages.laas.fr/smedjiah/tmp/gateway.js
|
wget http://homepages.laas.fr/smedjiah/tmp/gateway.js
|
||||||
|
|
||||||
# set entry point for emulator gatekeeper (needed for compatibility with vim-emu datacenters)
|
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 VIM_EMU_CMD "node /gateway/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" #uncomment when on ContainerNet datacenter
|
|
||||||
#ENV VIM_EMU_CMD "TODO at startup"
|
ENV VIM_EMU_CMD "nohup $LAUNCHER &"
|
||||||
#ENV VIM_EMU_CMD_STOP "TODO at shutdown"
|
#ENV VIM_EMU_CMD_STOP "TODO at shutdown"
|
||||||
|
|
||||||
# CMD should always point to /bin/bash to not block the emulator (sh for node:alpine)
|
# Mandatory entrypoint in containernet
|
||||||
CMD node /gateway/gateway.js --local_ip "172.17.0.4" --local_port 8181 --local_name "gwi" --remote_ip "172.17.0.2" --remote_port 8080 --remote_name "srv" #comment when on ContainerNet datacenter
|
CMD /bin/bash
|
||||||
#CMD /bin/sh #uncomment when on ContainerNet datacenter
|
|
||||||
|
|
||||||
|
|
|
@ -1,21 +1,22 @@
|
||||||
# Choosing the image to use
|
# Choosing the image to use
|
||||||
FROM node:alpine
|
FROM node:buster
|
||||||
|
|
||||||
# Installing required libraries
|
# Installing required libraries
|
||||||
RUN apk add npm && \
|
RUN apt-get update && \
|
||||||
apk add bash && \
|
apt-get install -y net-tools iputils-ping && \
|
||||||
mkdir server && \
|
mkdir mydir && \
|
||||||
cd server && \
|
cd mydir && \
|
||||||
npm install express && \
|
npm install express && \
|
||||||
npm install yargs && \
|
npm install yargs && \
|
||||||
npm install systeminformation && \
|
npm install systeminformation && \
|
||||||
|
npm install request && \
|
||||||
wget http://homepages.laas.fr/smedjiah/tmp/server.js
|
wget http://homepages.laas.fr/smedjiah/tmp/server.js
|
||||||
|
|
||||||
# set entry point for emulator gatekeeper (needed for compatibility with vim-emu datacenters)
|
ENV LAUNCHER "node /mydir/server.js --local_ip '127.0.0.1' --local_port '8080' --local_name 'srv'"
|
||||||
ENV VIM_EMU_CMD "node /server/server.js --local_ip '127.0.0.1' --local_port '8080' --local_name 'srv'" #uncomment when on ContainerNet datacenter
|
|
||||||
#ENV VIM_EMU_CMD "TODO at startup"
|
ENV VIM_EMU_CMD "nohup $LAUNCHER &"
|
||||||
#ENV VIM_EMU_CMD_STOP "TODO at shutdown"
|
#ENV VIM_EMU_CMD_STOP "TODO at shutdown"
|
||||||
|
|
||||||
# CMD should always point to /bin/bash to not block the emulator (sh for node:alpine)
|
# Mandatory entrypoint in containernet
|
||||||
#CMD node /server/server.js --local_ip '127.0.0.1' --local_port '8080' --local_name 'srv' #comment when on ContainerNet datacenter
|
CMD /bin/bash
|
||||||
CMD /bin/bash #uncomment when on ContainerNet datacenter
|
|
||||||
|
|
Loading…
Reference in a new issue