Skip to content

Instantly share code, notes, and snippets.

@erossignon
Created February 26, 2019 20:10
Show Gist options
  • Save erossignon/332f12ae68585ac1c3e803ca48eca340 to your computer and use it in GitHub Desktop.
Save erossignon/332f12ae68585ac1c3e803ca48eca340 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