Skip to content

Instantly share code, notes, and snippets.

@biancode
Forked from erossignon/Dockerfile
Created February 26, 2019 20:31
Show Gist options
  • Save biancode/9b3ebab277710d04a02d3a007feed29c to your computer and use it in GitHub Desktop.
Save biancode/9b3ebab277710d04a02d3a007feed29c to your computer and use it in GitHub Desktop.
Docker file to run node-red-contrib-iiot-opcua tests in a container
# docker build . -t node-red-contrib-iiot-opcua
# docker run node-red-contrib-iiot-opcua
FROM mhart/alpine-node
RUN apk add git make python g++ openssl
RUN cd /home && git clone https://github.com/biancode/node-red-contrib-iiot-opcua.git
RUN cd /home/node-red-contrib-iiot-opcua && \
git reset HEAD --hard && \
git fetch && \
git checkout develop && \
git rebase origin/develop &&\
npm install && \
node node_modules/node-opcua-server/test_helpers/create_certificates.js demo
CMD cd /home/node-red-contrib-iiot-opcua && \
git reset HEAD --hard && \
git fetch && \
git checkout develop && \
git rebase origin/develop &&\
npm install &&\
npm install node-opcua &&\
npm test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment