Skip to content
This repository has been archived by the owner on Feb 22, 2024. It is now read-only.

Commit

Permalink
Separate spring profiles for "static" environments
Browse files Browse the repository at this point in the history
  • Loading branch information
ascheman committed Feb 17, 2020
1 parent 88812fa commit 02f2c2c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/dukecon/puppet/docker-compose.erb
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ services:
environment:
- "JAVA_OPTS=-Xms1024m -Xmx2048m -XX:+ExitOnOutOfMemoryError -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/opt/dukecon/heapdumps"
- "SPRING_CONFIG_ADDITIONAL_LOCATION=/opt/dukecon/config"
- "SPRING_PROFILES_ACTIVE=<%= @dukecon_instance_name %>,postgresql,docker"
- "SPRING_PROFILES_ACTIVE=<%= @dukecon_instance_spring_profiles %>,postgresql,docker"
networks:
- default
- monitoring
Expand All @@ -74,7 +74,7 @@ services:
environment:
- "JAVA_OPTS=-XX:+ExitOnOutOfMemoryError -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/opt/dukecon/heapdumps"
- "SPRING_CONFIG_ADDITIONAL_LOCATION=/opt/dukecon/config"
- "SPRING_PROFILES_ACTIVE=<%= @dukecon_instance_name %>,postgresql,docker"
- "SPRING_PROFILES_ACTIVE=<%= @dukecon_instance_spring_profiles %>,postgresql,docker"
networks:
- default
- monitoring
Expand Down
2 changes: 2 additions & 0 deletions modules/dukecon/puppet/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
{
'name' => 'latest',
'label' => 'latest',
'spring_profiles' => 'latest',
'server_port' => '9050',
'internal_port' => '9051',
'postgres_port' => '9052',
Expand Down Expand Up @@ -41,6 +42,7 @@
$dukecon_docker_instances.each |$docker_instance| {
$dukecon_instance_name = $docker_instance['name']
$dukecon_instance_label = $docker_instance['label']
$dukecon_instance_spring_profiles = $docker_instance['spring_profiles']
$dukecon_instance_server_port = $docker_instance['server_port']
$dukecon_instance_internal_port = $docker_instance['internal_port']
$dukecon_instance_postgres_port = $docker_instance['postgres_port']
Expand Down

0 comments on commit 02f2c2c

Please sign in to comment.