Created
February 26, 2019 20:10
-
-
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
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