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
11 changes: 11 additions & 0 deletions Docker-files/app/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
FROM tomcat:8-jre11
LABEL "Project"="Vprofile"
LABEL "Author"="Imran"

RUN rm -rf /usr/local/tomcat/webapps/*
COPY target/vprofile-v2.war /usr/local/tomcat/webapps/ROOT.war

EXPOSE 8080
CMD ["catalina.sh", "run"]
WORKDIR /usr/local/tomcat/
VOLUME /usr/local/tomcat/webapps
13 changes: 13 additions & 0 deletions Docker-files/app/multistage/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
FROM openjdk:11 AS BUILD_IMAGE
RUN apt update && apt install maven -y
RUN git clone https://github.com/devopshydclub/vprofile-project.git
RUN cd vprofile-project && git checkout docker && mvn install

FROM tomcat:9-jre11

RUN rm -rf /usr/local/tomcat/webapps/*

COPY --from=BUILD_IMAGE vprofile-project/target/vprofile-v2.war /usr/local/tomcat/webapps/ROOT.war

EXPOSE 8080
CMD ["catalina.sh", "run"]
Empty file added Docker-files/d.txt
Empty file.
9 changes: 9 additions & 0 deletions Docker-files/db/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
FROM mysql:8.0.33
LABEL "Project"="Vprofile"
LABEL "Author"="Imran"

ENV MYSQL_ROOT_PASSWORD="vprodbpass"
ENV MYSQL_DATABASE="accounts"


ADD db_backup.sql docker-entrypoint-initdb.d/db_backup.sql
File renamed without changes.
6 changes: 6 additions & 0 deletions Docker-files/web/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
FROM nginx
LABEL "Project"="Vprofile"
LABEL "Author"="Imran"

RUN rm -rf /etc/nginx/conf.d/default.conf
COPY nginvproapp.conf /etc/nginx/conf.d/vproapp.conf
9 changes: 9 additions & 0 deletions Docker-files/web/nginvproapp.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
upstream vproapp {
server vproapp:8080;
}
server {
listen 80;
location / {
proxy_pass http://vproapp;
}
}
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
# Prerequisites
#
####
- JDK 1.8 or later
- Maven 3 or later
- MySQL 5.6 or later

# Technologies
### Technologies
- Spring MVC
- Spring Security
- Spring Data JPA
- Maven
- JSP
- MySQL
# Database
### Database
Here,we used Mysql DB
MSQL DB Installation Steps for Linux ubuntu 14.04:
- $ sudo apt-get update
Expand Down
3 changes: 0 additions & 3 deletions ansible/ansible.cfg

This file was deleted.

5 changes: 0 additions & 5 deletions ansible/site.yml

This file was deleted.

25 changes: 0 additions & 25 deletions ansible/templates/application.j2

This file was deleted.

38 changes: 0 additions & 38 deletions ansible/templates/epel6-svcfile.j2

This file was deleted.

18 changes: 0 additions & 18 deletions ansible/templates/epel7-svcfile.j2

This file was deleted.

38 changes: 0 additions & 38 deletions ansible/templates/ubuntu14_15-svcfile.j2

This file was deleted.

18 changes: 0 additions & 18 deletions ansible/templates/ubuntu16-svcfile.j2

This file was deleted.

113 changes: 0 additions & 113 deletions ansible/tomcat_setup.yml

This file was deleted.

Loading