-
Notifications
You must be signed in to change notification settings - Fork 21
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
Showing
5 changed files
with
151 additions
and
71 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,9 +1,10 @@ | ||
FROM maven:3.8-jdk-8 as builder | ||
COPY . /usr/src/easybuggy4sb/ | ||
WORKDIR /usr/src/easybuggy4sb/ | ||
RUN mvn -B package | ||
RUN mvn -B package -Dmaven.test.skip=true | ||
|
||
FROM openjdk:8-slim | ||
RUN apt-get update && apt-get install curl -y | ||
WORKDIR /opt/easybuggy4sb | ||
COPY --from=builder /usr/src/easybuggy4sb/target/ROOT.war . | ||
CMD ["java", "-XX:MaxMetaspaceSize=128m", "-Xloggc:logs/gc_%p_%t.log", "-XX:NativeMemoryTracking=summary", "-Xmx256m", "-XX:MaxDirectMemorySize=90m", "-XX:+UseSerialGC", "-XX:+PrintHeapAtGC", "-XX:+PrintGCDetails", "-XX:+PrintGCDateStamps", "-XX:+UseGCLogFileRotation", "-XX:NumberOfGCLogFiles=5", "-XX:GCLogFileSize=10M", "-XX:GCTimeLimit=15", "-XX:GCHeapFreeLimit=50", "-XX:+HeapDumpOnOutOfMemoryError", "-XX:HeapDumpPath=logs/", "-XX:ErrorFile=logs/hs_err_pid%p.log", "-agentlib:jdwp=transport=dt_socket,server=y,address=9009,suspend=n", "-Dderby.stream.error.file=logs/derby.log", "-Dderby.infolog.append=true", "-Dderby.language.logStatementText=true", "-Dderby.locks.deadlockTrace=true", "-Dderby.locks.monitor=true", "-Dderby.storage.rowLocking=true", "-Dcom.sun.management.jmxremote", "-Dcom.sun.management.jmxremote.port=7900", "-Dcom.sun.management.jmxremote.ssl=false", "-Dcom.sun.management.jmxremote.authenticate=false", "-ea", "-jar", "ROOT.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
version: '3' | ||
|
||
volumes: | ||
mysql_data: | ||
driver: local | ||
|
||
services: | ||
db: | ||
image: mysql:5.7 | ||
container_name: db | ||
volumes: | ||
- mysql_data:/var/lib/mysql | ||
environment: | ||
MYSQL_ROOT_PASSWORD: root | ||
MYSQL_DATABASE: keycloak | ||
MYSQL_USER: keycloak | ||
MYSQL_PASSWORD: password | ||
ports: | ||
- 3306:3306 | ||
keycloak: | ||
image: quay.io/keycloak/keycloak:legacy | ||
environment: | ||
DB_VENDOR: MYSQL | ||
DB_ADDR: db | ||
DB_DATABASE: keycloak | ||
DB_USER: keycloak | ||
DB_PASSWORD: password | ||
KEYCLOAK_USER: admin | ||
KEYCLOAK_PASSWORD: admin | ||
KEYCLOAK_FRONTEND_URL: http://localhost:8180/auth | ||
# Uncomment the line below if you want to specify JDBC parameters. The parameter below is just an example, and it shouldn't be used in production without knowledge. It is highly recommended that you read the MySQL JDBC driver documentation in order to use it. | ||
#JDBC_PARAMS: "connectTimeout=30000" | ||
ports: | ||
- 8180:8080 | ||
healthcheck: | ||
test: "curl -f http://keycloak:8080/auth/realms/master/.well-known/openid-configuration || exit 1" | ||
depends_on: | ||
- db | ||
easybuggy: | ||
build: | ||
context: . | ||
dockerfile: Dockerfile | ||
ports: | ||
- 8080:8080 | ||
- 9009:9009 | ||
depends_on: | ||
keycloak: | ||
condition: service_healthy | ||
environment: | ||
db_url: jdbc:mysql://db:3306/keycloak?useSSL=false | ||
db_class_name: com.mysql.jdbc.Driver | ||
db_platform: mysql | ||
db_username: keycloak | ||
db_password: password | ||
oidc_op_name: Keycloak | ||
oidc_config_endpoint: http://keycloak:8080/auth/realms/master/.well-known/openid-configuration | ||
oidc_dynamic_client_registration_enabled: 'true' |
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