icds/Dockerfiles/forManualTest/gatewayF/Dockerfile
2020-12-11 18:43:27 +01:00

24 lines
1 KiB
Docker

# Choosing the image to use
FROM node:alpine
# Installing required libraries
RUN apk add npm && \
mkdir gateway && \
cd gateway && \
npm install express && \
npm install yargs && \
npm install systeminformation && \
npm install request && \
wget http://homepages.laas.fr/smedjiah/tmp/gateway.js
# set entry point for emulator gatekeeper (needed for compatibility with vim-emu datacenters)
#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 "TODO at startup"
#ENV VIM_EMU_CMD_STOP "TODO at shutdown"
# CMD should always point to /bin/bash to not block the emulator (sh for node:alpine)
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"
#comment when on ContainerNet datacenter
#CMD /bin/sh #uncomment when on ContainerNet datacenter