-
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.
Docker packaging. New version v0.0.3
- Loading branch information
Showing
8 changed files
with
79 additions
and
21 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 |
---|---|---|
@@ -1,2 +1,6 @@ | ||
nb-configuration.xml | ||
/target/ | ||
**/target | ||
**/tests | ||
**/database | ||
**/.idea | ||
**/*.iml |
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 @@ | ||
FROM openjdk:8-jre | ||
|
||
WORKDIR /home/root | ||
|
||
ENV TOMCAT_VERSION=7.0.76 \ | ||
TOMCAT_MAJOR_VERSION=7 \ | ||
DROOLS_TESTER_VERSION=0.0.3 \ | ||
DROOLS_TESTER_TESTS=/home/root/tests | ||
|
||
RUN apt-get update && \ | ||
apt-get -y install unzip | ||
|
||
ADD http://apache-mirror.rbc.ru/pub/apache/tomcat/tomcat-${TOMCAT_MAJOR_VERSION}/v${TOMCAT_VERSION}/bin/apache-tomcat-${TOMCAT_VERSION}.zip apache-tomcat.zip | ||
|
||
RUN unzip apache-tomcat.zip && \ | ||
mv apache-tomcat-${TOMCAT_VERSION} apache-tomcat && \ | ||
rm -rf apache-tomcat/webapps/ROOT && \ | ||
chmod 777 -R apache-tomcat | ||
|
||
RUN echo "drools.tester.tests=${DROOLS_TESTER_TESTS}" >> apache-tomcat/conf/catalina.properties | ||
|
||
ADD https://github.com/ailabitmo/drools-tester/releases/download/v${DROOLS_TESTER_VERSION}/drools-tester-v${DROOLS_TESTER_VERSION}.war apache-tomcat/webapps/ROOT.war | ||
|
||
# For development | ||
#ADD target/drools-tester-v${DROOLS_TESTER_VERSION}.war apache-tomcat/webapps/ROOT.war | ||
|
||
CMD apache-tomcat/bin/startup.sh && tail -f apache-tomcat/logs/catalina.out |
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,20 @@ | ||
version: "2" | ||
services: | ||
drools-tester: | ||
image: kolchinmax/drools-tester | ||
links: | ||
- mysql | ||
ports: | ||
- "80:8080" | ||
volumes: | ||
- "./tests:/home/root/tests" | ||
mysql: | ||
image: mysql | ||
command: mysqld --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci | ||
volumes: | ||
- "./database:/var/lib/mysql" | ||
environment: | ||
MYSQL_RANDOM_ROOT_PASSWORD: 'yes' | ||
MYSQL_DATABASE: 'dt-db' | ||
MYSQL_USER: 'dt-user' | ||
MYSQL_PASSWORD: 'dt-password' |
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
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
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
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
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