commit | d5f16f71d9827227a569771f391e2c67ab45f52b | [log] [tgz] |
---|---|---|
author | Devops-POC <32838491+Devops-POC@users.noreply.github.com> | Wed Nov 01 15:32:57 2017 +0530 |
committer | GitHub <noreply@github.com> | Wed Nov 01 15:32:57 2017 +0530 |
tree | 546e02546a76d6101921d0729774f54d7c14f0b1 | |
parent | f54aa8e90204575683c72a23db5cefba3b60c67c [diff] |
Update Jenkinsfile
"# PACT" Setup mock test for REST API Test and Validation using PACT. Dockerfile in the repository does all the server setup over ubuntu image and installs JDK, GIT, nodejs.
Step 1:
Make sure docker is installed in the server. Use below commands for installing Docker in Ubuntu server.
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
sudo apt-get update
apt-cache policy docker-ce
sudo apt-get install -y docker-ce
sudo systemctl status docker
docker
Step 2 :
Create Docker image from Dockerfile
docker build -f Dockerfile -t demo-pact . -- to create a docker image locally
docker images -- to list available docker images locally
docker run -it demo-pact bash -- to run and login into container
Refer below URL after running docker to check latest update.