-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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