-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add kotlin-vertx project. Fix java-vertx. Update Travis CI and docker…
…-compose / main gradle build files configurations | Code was clean until manager requested to fuck it up (C) whatthecommit.com
- Loading branch information
Showing
31 changed files
with
1,107 additions
and
77 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
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
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
20 changes: 12 additions & 8 deletions
20
generators/app/templates/java-vertx/docker-compose-gradle.yaml
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,20 +1,24 @@ | ||
version: "2.1" | ||
version: '2.1' | ||
|
||
services: | ||
|
||
gradle-<%= projectDirectory %>-app: | ||
build: | ||
context: . | ||
dockerfile: gradle/Dockerfile | ||
volumes: ["gradle-<%= projectDirectory %>-app-data:/home/appuser"] | ||
networks: [backing-services] | ||
#ports: ["8080:8080"] | ||
#restart: unless-stopped | ||
#mem_limit: 209715200 # container limit: 200Mb (200 * 1024 * 1024) | ||
volumes: ['gradle-<%= projectDirectory %>-app-data:/home/appuser'] | ||
ports: ['8080:8080'] | ||
restart: unless-stopped | ||
# container limit: 200Mb (200 * 1024 * 1024) | ||
mem_limit: 209715200 | ||
networks: | ||
public-network: | ||
aliases: | ||
- app | ||
|
||
volumes: | ||
gradle-<%= projectDirectory %>-app-data: {} | ||
gradle-<%= projectDirectory %>-app-data: | ||
|
||
networks: | ||
backing-services: | ||
public-network: | ||
driver: bridge |
20 changes: 12 additions & 8 deletions
20
generators/app/templates/java-vertx/docker-compose-maven.yaml
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,20 +1,24 @@ | ||
version: "2.1" | ||
version: '2.1' | ||
|
||
services: | ||
|
||
maven-<%= projectDirectory %>-app: | ||
build: | ||
context: . | ||
dockerfile: .mvn/Dockerfile | ||
volumes: ["maven-<%= projectDirectory %>-app-data:/home/appuser"] | ||
networks: [backing-services] | ||
#ports: ["8080:8080"] | ||
#restart: unless-stopped | ||
#mem_limit: 209715200 # container limit: 200Mb (200 * 1024 * 1024) | ||
volumes: ['maven-<%= projectDirectory %>-app-data:/home/appuser'] | ||
ports: ['8080:8080'] | ||
restart: unless-stopped | ||
# container limit: 200Mb (200 * 1024 * 1024) | ||
mem_limit: 209715200 | ||
networks: | ||
public-network: | ||
aliases: | ||
- app | ||
|
||
volumes: | ||
maven-<%= projectDirectory %>-app-data: {} | ||
maven-<%= projectDirectory %>-app-data: | ||
|
||
networks: | ||
backing-services: | ||
public-network: | ||
driver: bridge |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
FROM openjdk:8u151-jre-alpine3.7 | ||
MAINTAINER Maksim Kostromin https://github.com/daggerok | ||
RUN apk --no-cache --update add busybox-suid bash curl unzip sudo openssh-client shadow wget \ | ||
&& adduser -h /home/appuser -s /bin/bash -D -u 1025 appuser wheel \ | ||
&& echo "appuser ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers \ | ||
&& sed -i "s/.*requiretty$/Defaults !requiretty/" /etc/sudoers \ | ||
&& wget --no-cookies \ | ||
--no-check-certificate \ | ||
--header "Cookie: oraclelicense=accept-securebackup-cookie" \ | ||
"http://download.oracle.com/otn-pub/java/jce/8/jce_policy-8.zip" \ | ||
-O /tmp/jce_policy-8.zip \ | ||
&& unzip -o /tmp/jce_policy-8.zip -d /tmp \ | ||
&& mv -f ${JAVA_HOME}/lib/security ${JAVA_HOME}/lib/backup-security \ | ||
&& mv -f /tmp/UnlimitedJCEPolicyJDK8 ${JAVA_HOME}/lib/security \ | ||
&& apk del busybox-suid unzip openssh-client shadow wget \ | ||
&& rm -rf /var/cache/apk/* /tmp/* | ||
USER appuser | ||
WORKDIR /home/appuser | ||
VOLUME /home/appuser | ||
ARG JAVA_OPTS_ARGS="\ | ||
-Djava.net.preferIPv4Stack=true \ | ||
-XX:+UnlockExperimentalVMOptions \ | ||
-XX:+UseCGroupMemoryLimitForHeap \ | ||
-XshowSettings:vm " | ||
ENV JAVA_OPTS="${JAVA_OPTS} ${JAVA_OPTS_ARGS}" | ||
ENTRYPOINT java ${JAVA_OPTS} -jar ./app.jar | ||
CMD /bin/bash | ||
#EXPOSE 8080 | ||
#HEALTHCHECK --timeout=1s \ | ||
# --retries=66 \ | ||
# CMD curl -f http://127.0.0.1:8080/actuator/health || exit 1 | ||
COPY --chown=appuser ./target/*-all.jar ./app.jar |
Oops, something went wrong.