-
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.
- Loading branch information
Fabio Esposito
committed
Aug 18, 2017
1 parent
1410b63
commit 1a845cf
Showing
11 changed files
with
101 additions
and
19 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
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,11 @@ | ||
#!/bin/bash | ||
|
||
./gradlew clean build | ||
|
||
docker build -t fesposito/survey-api survey-api/. | ||
|
||
docker build -t fesposito/survey-events survey-events/. | ||
|
||
docker build -t fesposito/survey-read survey-read/. | ||
|
||
docker build -t fesposito/survey-write survey-write/. |
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,18 @@ | ||
version: '2.1' | ||
|
||
services: | ||
survey-api: | ||
image: fesposito/survey-api | ||
|
||
survey-events: | ||
image: fesposito/survey-events | ||
|
||
survey-read: | ||
image: fesposito/survey-read | ||
|
||
survey-write: | ||
image: fesposito/survey-write | ||
|
||
|
||
|
||
|
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,16 @@ | ||
FROM openjdk:8-jre-alpine | ||
|
||
ENV VERTICLE_FILE survey-api-1.0-SNAPSHOT-fat.jar | ||
|
||
# Set the location of the verticles | ||
ENV VERTICLE_HOME /usr/verticles | ||
|
||
EXPOSE 8080 | ||
|
||
# Copy your fat jar to the container | ||
COPY build/libs/$VERTICLE_FILE $VERTICLE_HOME/ | ||
|
||
# Launch the verticle | ||
WORKDIR $VERTICLE_HOME | ||
ENTRYPOINT ["sh", "-c"] | ||
CMD ["exec java -jar $VERTICLE_FILE -cluster"] |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
FROM openjdk:8-jre-alpine | ||
|
||
ENV VERTICLE_FILE survey-events-1.0-SNAPSHOT-fat.jar | ||
|
||
# Set the location of the verticles | ||
ENV VERTICLE_HOME /usr/verticles | ||
|
||
# Copy your fat jar to the container | ||
COPY build/libs/$VERTICLE_FILE $VERTICLE_HOME/ | ||
|
||
# Launch the verticle | ||
WORKDIR $VERTICLE_HOME | ||
ENTRYPOINT ["sh", "-c"] | ||
CMD ["exec java -jar $VERTICLE_FILE -cluster"] |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
FROM openjdk:8-jre-alpine | ||
|
||
ENV VERTICLE_FILE survey-read-1.0-SNAPSHOT-fat.jar | ||
|
||
# Set the location of the verticles | ||
ENV VERTICLE_HOME /usr/verticles | ||
|
||
# Copy your fat jar to the container | ||
COPY build/libs/$VERTICLE_FILE $VERTICLE_HOME/ | ||
|
||
# Launch the verticle | ||
WORKDIR $VERTICLE_HOME | ||
ENTRYPOINT ["sh", "-c"] | ||
CMD ["exec java -jar $VERTICLE_FILE -cluster"] |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
FROM openjdk:8-jre-alpine | ||
|
||
ENV VERTICLE_FILE survey-write-1.0-SNAPSHOT-fat.jar | ||
|
||
# Set the location of the verticles | ||
ENV VERTICLE_HOME /usr/verticles | ||
|
||
# Copy your fat jar to the container | ||
COPY build/libs/$VERTICLE_FILE $VERTICLE_HOME/ | ||
|
||
# Launch the verticle | ||
WORKDIR $VERTICLE_HOME | ||
ENTRYPOINT ["sh", "-c"] | ||
CMD ["exec java -jar $VERTICLE_FILE -cluster"] |
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