Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
spring-petclinic-microservices
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Sebastien Briot
spring-petclinic-microservices
Commits
b3442a53
Unverified
Commit
b3442a53
authored
5 years ago
by
Antoine Rey
Browse files
Options
Downloads
Patches
Plain Diff
Rollback to Java 8 for the develop branch
parent
52c9ea7c
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
docker-compose.yml
+7
-7
7 additions, 7 deletions
docker-compose.yml
docker/Dockerfile
+2
-2
2 additions, 2 deletions
docker/Dockerfile
with
9 additions
and
9 deletions
docker-compose.yml
+
7
−
7
View file @
b3442a53
...
...
@@ -14,7 +14,7 @@ services:
mem_limit
:
512M
depends_on
:
-
config-server
entrypoint
:
[
"
./dockerize"
,
"
-wait=tcp://config-server:8888"
,
"
-timeout=60s"
,
"
--"
,
"
java"
,
"
-Djava.security.egd=file:/dev/./urandom"
,
"
-jar"
,
"
/app.jar"
]
entrypoint
:
[
"
./dockerize"
,
"
-wait=tcp://config-server:8888"
,
"
-timeout=60s"
,
"
--"
,
"
java"
,
"
-XX:+UnlockExperimentalVMOptions"
,
"
-XX:+UseCGroupMemoryLimitForHeap"
,
"
-Djava.security.egd=file:/dev/./urandom"
,
"
-jar"
,
"
/app.jar"
]
ports
:
-
8761:8761
...
...
@@ -25,7 +25,7 @@ services:
depends_on
:
-
config-server
-
discovery-server
entrypoint
:
[
"
./dockerize"
,
"
-wait=tcp://discovery-server:8761"
,
"
-timeout=60s"
,
"
--"
,
"
java"
,
"
-Djava.security.egd=file:/dev/./urandom"
,
"
-jar"
,
"
/app.jar"
]
entrypoint
:
[
"
./dockerize"
,
"
-wait=tcp://discovery-server:8761"
,
"
-timeout=60s"
,
"
--"
,
"
java"
,
"
-XX:+UnlockExperimentalVMOptions"
,
"
-XX:+UseCGroupMemoryLimitForHeap"
,
"
-Djava.security.egd=file:/dev/./urandom"
,
"
-jar"
,
"
/app.jar"
]
ports
:
-
8081:8081
...
...
@@ -36,7 +36,7 @@ services:
depends_on
:
-
config-server
-
discovery-server
entrypoint
:
[
"
./dockerize"
,
"
-wait=tcp://discovery-server:8761"
,
"
-timeout=60s"
,
"
--"
,
"
java"
,
"
-Djava.security.egd=file:/dev/./urandom"
,
"
-jar"
,
"
/app.jar"
]
entrypoint
:
[
"
./dockerize"
,
"
-wait=tcp://discovery-server:8761"
,
"
-timeout=60s"
,
"
--"
,
"
java"
,
"
-XX:+UnlockExperimentalVMOptions"
,
"
-XX:+UseCGroupMemoryLimitForHeap"
,
"
-Djava.security.egd=file:/dev/./urandom"
,
"
-jar"
,
"
/app.jar"
]
ports
:
-
8082:8082
...
...
@@ -47,7 +47,7 @@ services:
depends_on
:
-
config-server
-
discovery-server
entrypoint
:
[
"
./dockerize"
,
"
-wait=tcp://discovery-server:8761"
,
"
-timeout=60s"
,
"
--"
,
"
java"
,
"
-Djava.security.egd=file:/dev/./urandom"
,
"
-jar"
,
"
/app.jar"
]
entrypoint
:
[
"
./dockerize"
,
"
-wait=tcp://discovery-server:8761"
,
"
-timeout=60s"
,
"
--"
,
"
java"
,
"
-XX:+UnlockExperimentalVMOptions"
,
"
-XX:+UseCGroupMemoryLimitForHeap"
,
"
-Djava.security.egd=file:/dev/./urandom"
,
"
-jar"
,
"
/app.jar"
]
ports
:
-
8083:8083
...
...
@@ -58,7 +58,7 @@ services:
depends_on
:
-
config-server
-
discovery-server
entrypoint
:
[
"
./dockerize"
,
"
-wait=tcp://discovery-server:8761"
,
"
-timeout=60s"
,
"
--"
,
"
java"
,
"
-Djava.security.egd=file:/dev/./urandom"
,
"
-jar"
,
"
/app.jar"
]
entrypoint
:
[
"
./dockerize"
,
"
-wait=tcp://discovery-server:8761"
,
"
-timeout=60s"
,
"
--"
,
"
java"
,
"
-XX:+UnlockExperimentalVMOptions"
,
"
-XX:+UseCGroupMemoryLimitForHeap"
,
"
-Djava.security.egd=file:/dev/./urandom"
,
"
-jar"
,
"
/app.jar"
]
ports
:
-
8080:8080
...
...
@@ -78,7 +78,7 @@ services:
depends_on
:
-
config-server
-
discovery-server
entrypoint
:
[
"
./dockerize"
,
"
-wait=tcp://discovery-server:8761"
,
"
-timeout=60s"
,
"
--"
,
"
java"
,
"
-Djava.security.egd=file:/dev/./urandom"
,
"
-jar"
,
"
/app.jar"
]
entrypoint
:
[
"
./dockerize"
,
"
-wait=tcp://discovery-server:8761"
,
"
-timeout=60s"
,
"
--"
,
"
java"
,
"
-XX:+UnlockExperimentalVMOptions"
,
"
-XX:+UseCGroupMemoryLimitForHeap"
,
"
-Djava.security.egd=file:/dev/./urandom"
,
"
-jar"
,
"
/app.jar"
]
ports
:
-
9090:9090
...
...
@@ -89,7 +89,7 @@ services:
depends_on
:
-
config-server
-
discovery-server
entrypoint
:
[
"
./dockerize"
,
"
-wait=tcp://discovery-server:8761"
,
"
-timeout=60s"
,
"
--"
,
"
java"
,
"
-Djava.security.egd=file:/dev/./urandom"
,
"
-jar"
,
"
/app.jar"
]
entrypoint
:
[
"
./dockerize"
,
"
-wait=tcp://discovery-server:8761"
,
"
-timeout=60s"
,
"
--"
,
"
java"
,
"
-XX:+UnlockExperimentalVMOptions"
,
"
-XX:+UseCGroupMemoryLimitForHeap"
,
"
-Djava.security.egd=file:/dev/./urandom"
,
"
-jar"
,
"
/app.jar"
]
ports
:
-
7979:7979
...
...
This diff is collapsed.
Click to expand it.
docker/Dockerfile
+
2
−
2
View file @
b3442a53
FROM
openjdk:
11
-jre
FROM
openjdk:
8
-jre
-alpine
VOLUME
/tmp
ARG
DOCKERIZE_VERSION
ARG
ARTIFACT_NAME
...
...
@@ -11,4 +11,4 @@ RUN chmod +x dockerize
ADD
${ARTIFACT_NAME}.jar /app.jar
RUN
touch
/app.jar
EXPOSE
${EXPOSED_PORT}
ENTRYPOINT
["java", "-Djava.security.egd=file:/dev/./urandom","-jar","/app.jar"]
ENTRYPOINT
["java",
"-XX:+UnlockExperimentalVMOptions", "-XX:+UseCGroupMemoryLimitForHeap",
"-Djava.security.egd=file:/dev/./urandom","-jar","/app.jar"]
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment