Skip to content
Open
Show file tree
Hide file tree
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
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
FROM tomcat:9.0
COPY target/*.war /usr/local/tomcat/webapps/app.war
EXPOSE 8080
21 changes: 21 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
pipeline {
agent any
stages {
stage("Build & Package") {
steps {
sh "mvn clean package"
}
}
stage("Build Docker Image") {
steps {
sh "docker build -t trainbook-app ."
}
}
stage("Deploy") {
steps {
sh "docker rm -f trainbook-container || true"
sh "docker run -d --name trainbook-container -p 8082:8080 trainbook-app"
}
}
}
}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
- Youtube video for Step by Step Guide on Local Setup: https://www.youtube.com/watch?v=Wd2GlEJJJlw
<!-- - Live Url: https://traintickets.herokuapp.com <br> -->
<!-- - Login Credentials: admin/admin -->

###project_details:
### About:
This project is about the Train-Ticket-Reservation-System which is used to view Train Schedule, search trains, Seat availability, Train timings. We can also enquire about fare of different trains. We can get information about train between two stations. We can book seats online. This provides a safe and secure seat reservation system.
### Online Train Information and Reservation
Expand Down