You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sudo apt update
sudo apt install nodejs
sudo apt install npm
nodejs -v // To check the node JS version
Step 2 - Download the Publish Over SSH plugins
Key -- define the private Key ( you will get from .pem while when you will open as text file)
ssh Server -
Name - define the name of the server.
HostName - Provide the IP address of your server.
UserName - Provide the user name here ex. if we are using Ubuntu ec2 instance then username is ubuntu
Click Save and Apply
Step 3 - Create the Free Style Node JS project .
Git URL - https://github.com/Abhishek08/node-js-sample.git
WebHook Connection URL - http://IPADDRESS/github-webhook/ (push)
BUILD - npm install // to download all the dependecines
- npm test // to perform testcase execution
tar czf Node.tar.gz node_modules index.js package.json public app.json
FROM node:latest
MAINTAINER Abhishek Modi
RUN echo"Tryin to build my first application"
COPY . /var/www
WORKDIR /var/www
RUN npm install
EXPOSE 3000
ENTRYPOINT ["npm","start"]