-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ebeb55b
commit 11f4df8
Showing
21 changed files
with
299 additions
and
372 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,15 +1,7 @@ | ||
FROM maven:3.6.3-jdk-11-openj9 AS mvn | ||
FROM openjdk:11-jre | ||
|
||
WORKDIR /usr/src/online-shop | ||
COPY pom.xml ./ | ||
RUN mvn package dependency:go-offline # cache dependencies | ||
COPY src ./src | ||
RUN mvn clean package -Dservice.name=address-validation-service -DskipTests | ||
RUN wget https://repo.maven.apache.org/maven2/org/apache/meecrowave/meecrowave-core/1.2.13/meecrowave-core-1.2.13-runner.jar -O /opt/meecrowave-core-runner.jar | ||
ADD target/address-validation-service.war /opt/address-validation-service.war | ||
|
||
FROM openjdk:11 | ||
|
||
EXPOSE 8080 | ||
COPY --from=mvn /usr/src/online-shop/target/runner/meecrowave-core-runner.jar /opt/meecrowave-runner.jar | ||
COPY --from=mvn /usr/src/online-shop/target/address-validation-service.war /opt/address-validation-service.war | ||
|
||
ENTRYPOINT ["java", "--illegal-access=permit", "-Djava.net.preferIPv4Stack=true", "-jar", "/opt/meecrowave-runner.jar", "--webapp", "/opt/address-validation-service.war"] | ||
EXPOSE 4003 | ||
ENTRYPOINT ["java", "-Djava.net.preferIPv4Stack=true", "-jar", "/opt/meecrowave-core-runner.jar", "--host", "0.0.0.0", "--http", "4003", "--webapp", "/opt/address-validation-service.war"] |
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
5 changes: 5 additions & 0 deletions
5
address-validation-service/src/main/meecrowave/conf/meecrowave.properties
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 @@ | ||
# This file contains the meecrowave default configuration | ||
# More on http://openwebbeans.apache.org/meecrowave/meecrowave-core/cli.html | ||
|
||
tomcat-access-log-pattern = %h %l %u %t "%r" %s %b "%{Referer}i" "%{User-Agent}i" | ||
http=8084 |
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,15 +1,7 @@ | ||
FROM maven:3.6.3-jdk-11-openj9 AS mvn | ||
FROM openjdk:11-jre | ||
|
||
WORKDIR /usr/src/online-shop | ||
COPY pom.xml ./ | ||
RUN mvn package dependency:go-offline # cache dependencies | ||
COPY src ./src | ||
RUN mvn clean package -Dservice.name=billing-service -DskipTests | ||
RUN wget https://repo.maven.apache.org/maven2/org/apache/meecrowave/meecrowave-core/1.2.13/meecrowave-core-1.2.13-runner.jar -O /opt/meecrowave-core-runner.jar | ||
ADD target/billing-service.war /opt/billing-service.war | ||
|
||
FROM openjdk:11 | ||
|
||
EXPOSE 8080 | ||
COPY --from=mvn /usr/src/online-shop/target/runner/meecrowave-core-runner.jar /opt/meecrowave-runner.jar | ||
COPY --from=mvn /usr/src/online-shop/target/billing-service.war /opt/billing-service.war | ||
|
||
ENTRYPOINT ["java", "--illegal-access=permit", "-Djava.net.preferIPv4Stack=true", "-jar", "/opt/meecrowave-runner.jar", "--webapp", "/opt/billing-service.war"] | ||
EXPOSE 4001 | ||
ENTRYPOINT ["java", "-Djava.net.preferIPv4Stack=true", "-jar", "/opt/meecrowave-core-runner.jar", "--host", "0.0.0.0", "--http", "4001", "--webapp", "/opt/billing-service.war"] |
Oops, something went wrong.