Skip to content

Merge Syntax highlighting #3

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 6, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 16 additions & 7 deletions SimpeDevOpsProjects/Project-3.MD
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ mkdir /opt/docker
From tomcat:8-jre8

# Maintainer
MAINTAINER "valaxytech@gmail.com"
MAINTAINER "valaxytech"

# copy war file on to container
COPY ./webapp.war /usr/local/tomcat/webapps
Expand All @@ -47,14 +47,21 @@ B) Build

C) send files or execute commands over SSH
Name: docker_host
Source files : webapp/target/*.war
Remove prefix : webapp/target
Remote directory : //opt//docker
Exec command : docker stop valaxy_demo; docker rm -f valaxy_demo; docker image rm -f valaxy_demo; cd /opt/docker; docker build -t valaxy_demo .
Source files : `webapp/target/*.war`
Remove prefix : `webapp/target`
Remote directory : `//opt//docker`
Exec command[s] :
```sh
docker stop valaxy_demo;
docker rm -f valaxy_demo;
docker image rm -f valaxy_demo;
cd /opt/docker;
docker build -t valaxy_demo .
```

D) send files or execute commands over SSH
Name: docker_host
Exec command : docker run -d --name valaxy_demo -p 8090:8080 valaxy_demo
Name: `docker_host`
Exec command : `docker run -d --name valaxy_demo -p 8090:8080 valaxy_demo`

7. Login to Docker host and check images and containers. (no images and containers)

Expand All @@ -63,4 +70,6 @@ D) send files or execute commands over SSH
9. check images and containers again on Docker host. This time an image and container get creates through Jenkins job

10. Access web application from browser which is running on container
```
<docker_host_Public_IP>:8090
```