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
5 changes: 0 additions & 5 deletions Dockerfile-mysql

This file was deleted.

9 changes: 0 additions & 9 deletions Dockerfile-tomcat

This file was deleted.

33 changes: 0 additions & 33 deletions Jenkinsfile

This file was deleted.

15 changes: 15 additions & 0 deletions docker_compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
version: '3'
services:
db:
build:
dockerfile: mysql
ports:
- 3306:3306
tomcat:
build:
dockerfile: tomcat
ports:
- 8080:8080
links:
- db
8 changes: 8 additions & 0 deletions mysql
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
FROM mysql:5.7.28

ENV MYSQL_ROOT_PASSWORD=root
ENV MYSQL_DATABASE=devopsclass
ENV MYSQL_USER=ranjit
ENV MYSQL_PASSWORD=Sunday@2019

COPY devopsclass.sql /docker-entrypoint-initdb.d
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>8.0.12</version>
<version>5.1.46</version>
</dependency>
<dependency>
<groupId>junit</groupId>
Expand Down
2 changes: 2 additions & 0 deletions tomcat
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
FROM tomcat:8.0
COPY LoginWebApp.war /usr/local/tomcat/webapps/