-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Progress soft programming challenge without code coverage and results…
… retrieval.
- Loading branch information
0 parents
commit 6db6d19
Showing
306 changed files
with
120,642 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# README # | ||
|
||
The application provide docker for deployment. | ||
|
||
### Test Data? ### | ||
|
||
* Test data with 100000 deals is in deals-data.csv under "test-data" folder. | ||
* To run the application run "db-docker.sh" first then run "app-docker.sh". Remember before running the container build the project first using "mvn clean install". |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#!/bin/bash | ||
|
||
IMG_NAME=img-progsoft-app | ||
CT_NAME=ct-progsoft-app | ||
NET_NAME=progsoftnet | ||
|
||
echo stopping $CT_NAME | ||
docker stop $CT_NAME | ||
|
||
echo removing $CT_NAME | ||
docker rm -vf $CT_NAME | ||
|
||
echo removing $IMG_NAME | ||
docker rmi $IMG_NAME | ||
|
||
echo updating docker contents | ||
rm -rf docker/app/*.war | ||
cp target/*.war docker/app | ||
|
||
echo building $IMG_NAME | ||
docker build -t $IMG_NAME docker/app | ||
|
||
echo creating newtork | ||
docker network create $NET_NAME | ||
|
||
echo running $CT_NAME | ||
docker run -d -p 8080:8080 --net=$NET_NAME --name $CT_NAME $IMG_NAME |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/bin/bash | ||
|
||
IMG_NAME=img-progsoft-db | ||
CT_NAME=ct-progsoft-db | ||
NET_NAME=progsoftnet | ||
|
||
echo stopping $CT_NAME | ||
docker stop $CT_NAME | ||
|
||
echo removing $CT_NAME | ||
docker rm -vf $CT_NAME | ||
|
||
echo removing $IMG_NAME | ||
docker rmi $IMG_NAME | ||
|
||
echo building $IMG_NAME | ||
docker build -t $IMG_NAME docker/db | ||
|
||
echo creating newtork | ||
docker network create $NET_NAME | ||
|
||
echo running $CT_NAME | ||
docker run -d -p 3306:3306 --net-alias=db --net=$NET_NAME --name $CT_NAME $IMG_NAME |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
|
||
FROM tomcat:8.5.15-jre8 | ||
|
||
COPY *.war webapps |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
FROM mysql:5.7 | ||
|
||
ENV MYSQL_ROOT_PASSWORD root | ||
ENV MYSQL_DATABASE progresssoft | ||
ENV --max-allowed-packet 50M |
Oops, something went wrong.