Skip to content
Snippets Groups Projects
Commit 82b41e1b authored by Jan-Niclas Strüwer's avatar Jan-Niclas Strüwer Committed by Hutomo Saleh
Browse files

Single Logical File for build setup

parent 8fc941ae
No related branches found
No related tags found
2 merge requests!20Single Logical File for build setup,!18Restructure spring application properties
...@@ -52,6 +52,35 @@ spring.datasource.driver-class-name=org.postgresql.Driver ...@@ -52,6 +52,35 @@ spring.datasource.driver-class-name=org.postgresql.Driver
# Generates db schema if it doesn't exist in db # Generates db schema if it doesn't exist in db
spring.jpa.generate-ddl=true spring.jpa.generate-ddl=true
spring.jpa.show-sql=false spring.jpa.show-sql=false
#---
spring.config.activate.on-profile=local
opencode.host=https://gitlab.opencode.de/
opencode.analyze-private-repos=true
# Tool APIs
opencode.api.base-path=https://sl.dev.o4oe.de/api/v1/project/
opencode.api.auth=https://sl.dev.o4oe.de/api/receive-session/
# Database Settings
spring.datasource.url=jdbc:postgresql://${host}:${DB_PORT}/${DB_NAME}?sslmode=disable&user=root
spring.jpa.hibernate.ddl-auto=create-drop
# Import local .env
spring.config.import=optional:classpath:.env[.properties]
#---
spring.config.activate.on-profile=dev
# Config for the OpencoDE platform
opencode.host=https://gitlab.dev.o4oe.de/
opencode.analyze-private-repos=true
# Tool APIs
opencode.api.base-path=https://sl.dev.o4oe.de/api/v1/project/
opencode.api.auth=https://sl.dev.o4oe.de/api/
# Database Settings
spring.datasource.url=jdbc:postgresql://${host}:${DB_PORT}/${DB_NAME}?sslmode=disable&user=root
spring.jpa.hibernate.ddl-auto=update
# Import profile specific properties (Default is prod) #---
spring.config.import=optional:file:${SPRING_PROFILE}.properties spring.config.activate.on-profile=prod
# Config for the OpencoDE platform
opencode.host=https://gitlab.dev.o4oe.de/
opencode.analyze-private-repos=true
# Tool APIs
opencode.api.base-path=https://sl.dev.o4oe.de/api/v1/project/
opencode.api.auth=https://sl.dev.o4oe.de/api/
# Database Settings
spring.datasource.url=jdbc:postgresql://${host}:${DB_PORT}/${DB_NAME}?sslmode=disable&user=root
spring.jpa.hibernate.ddl-auto=update
# Config for the OpencoDE platform
opencode.host=https://gitlab.opencode.de/
opencode.analyze-private-repos=true
# Tool APIs
opencode.api.base-path=https://sl.dev.o4oe.de/api/v1/project/
opencode.api.auth=https://sl.dev.o4oe.de/api/receive-session/
# Database Settings
spring.datasource.url=jdbc:postgresql://${host}:${DB_PORT}/${DB_NAME}?sslmode=disable&user=root
spring.jpa.hibernate.ddl-auto=create-drop
# Import local .env
spring.config.import=optional:classpath:.env[.properties]
...@@ -33,6 +33,6 @@ services: ...@@ -33,6 +33,6 @@ services:
- HMAC_KEY=012345678901234567890123456789 - HMAC_KEY=012345678901234567890123456789
- API_KEY=012345678901234567890123456789 - API_KEY=012345678901234567890123456789
- SPRING_PROFILE=local - SPRING_PROFILES_ACTIVE=local
ports: ports:
- 4000:4000 - 4000:4000
...@@ -10,4 +10,4 @@ data: ...@@ -10,4 +10,4 @@ data:
XDG_CONFIG_HOME: "/app/.config" XDG_CONFIG_HOME: "/app/.config"
CORS_ORIGIN: "https://sec-kpi.opencode.de" CORS_ORIGIN: "https://sec-kpi.opencode.de"
PROJECT_IDS: 1108, 888, 438, 1189, 820, 788, 400, 1052 PROJECT_IDS: 1108, 888, 438, 1189, 820, 788, 400, 1052
SPRING_PROFILE: prod SPRING_PROFILES_ACTIVE: prod
...@@ -10,4 +10,4 @@ data: ...@@ -10,4 +10,4 @@ data:
XDG_CONFIG_HOME: "/app/.config" XDG_CONFIG_HOME: "/app/.config"
CORS_ORIGIN: "*" CORS_ORIGIN: "*"
PROJECT_IDS: 159,106, 124 PROJECT_IDS: 159,106, 124
SPRING_PROFILE: dev SPRING_PROFILES_ACTIVE: dev
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment

Consent

On this website, we use the web analytics service Matomo to analyze and review the use of our website. Through the collected statistics, we can improve our offerings and make them more appealing for you. Here, you can decide whether to allow us to process your data and set corresponding cookies for these purposes, in addition to technically necessary cookies. Further information on data protection—especially regarding "cookies" and "Matomo"—can be found in our privacy policy. You can withdraw your consent at any time.