Skip to content

Commit

Permalink
feat: Provide configurable environment to WA container
Browse files Browse the repository at this point in the history
  • Loading branch information
DevDavido committed Jul 10, 2024
1 parent a2f45cb commit 369bae3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ object Configuration {
const val WS_SERVER_CERT = "webserver.cert.server"
const val WS_SERVER_PRIVAT = "webserver.cert.privatekey"

const val WS_ENVIRONMENT = "environment"
const val WS_SERVER_HTTP2 = "webserver.use.http2"

const val WS_URL = "intershop.WebServerURL"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,9 @@ class WATaskPreparer(
val env = with(dockerExtension.developmentConfig) {
val env = ContainerEnvironment()

val environment = getConfigProperty(Configuration.WS_ENVIRONMENT, "development")
env.add("ENVIRONMENT", environment)

val serverCertName = getConfigProperty(Configuration.WS_SERVER_CERT, "")
if (serverCertName.isNotBlank()) {
env.add("ICM_SERVERCERT", serverCertName)
Expand Down

0 comments on commit 369bae3

Please sign in to comment.