Skip to content

Commit

Permalink
Merge pull request #957 from ase-101/release-1.5.x
Browse files Browse the repository at this point in the history
ES-842 Using mulitple profiles to avoid duplicate configuration
  • Loading branch information
ckm007 authored Oct 16, 2024
2 parents 0120dcf + 2988440 commit b82cffd
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 368 deletions.
7 changes: 2 additions & 5 deletions docker-compose/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,18 +24,15 @@ services:
- database

esignet:
image: 'mosipdev/esignet:release-1.5.x'
image: mosipdev/esignet:release-1.5.x
user: root
ports:
- 8088:8088
environment:
- container_user=mosip
- active_profile_env=local
- active_profile_env=default,local
- plugin_name_env=esignet-mock-plugin.jar
- KAFKA_ENABLED=false
- SPRING_AUTOCONFIGURE_EXCLUDE=org.springframework.boot.autoconfigure.kafka.KafkaAutoConfiguration
- SPRING_DATASOURCE_URL=jdbc:postgresql://database:5432/mosip_esignet?currentSchema=esignet
- SPRING_CACHE_TYPE=simple
- MOSIP_ESIGNET_MOCK_DOMAIN_URL=http://mock-identity-system:8082
depends_on:
- database
Expand Down
7 changes: 7 additions & 0 deletions esignet-service/configure_start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -69,5 +69,12 @@ else
exit 1
fi

## set active profile if not set
if [[ -z "$active_profile_env" ]]; then
echo "Alert: active_profile_env is not set. setting to default"
active_profile_env="default"
export active_profile_env
fi

cd $work_dir
exec "$@"
Loading

0 comments on commit b82cffd

Please sign in to comment.