-
Notifications
You must be signed in to change notification settings - Fork 6
Jetbrains springBoot run configuration setup
Luke Short edited this page Apr 17, 2023
·
8 revisions
WIP
abd-vro system involves running numerous docker containers, which can be costly in terms of build time as well as system memory.
This guide serves as a set of instructions to run the vro-app-1
container as a run configuration for IntelliJ ide.
This allows developers to more quickly spin down and spin up new changes when testing the code.
- create this directory on your system (via Terminal.app or in the terminal inside your IDE)
PERSIST_TRACKING_FOLDER=/tmp/persist/tracking
mkdir -p $PERSIST_TRACKING_FOLDER
- In IntelliJ ide, navigate to top right -> edit configurations
- add new run configuration for spring boot
- name it whatever you want
- under environment variables set the following (comma separated)
PERSIST_TRACKING_FOLDER=/tmp/persist/tracking
POSTGRES_URL=jdbc:postgresql://localhost:5432/vro
REDIS_PLACEHOLDERS_HOST=localhost
RABBITMQ_PLACEHOLDERS_HOST=localhost
BIP_CLAIM_URL=localhost:8097
BIP_EVIDENCE_URL=localhost:8094
SLACK_EXCEPTION_WEBHOOK=http://localhost:9008/slack-messages
- Configuration should look something like this
- make sure you have all the docker containers running already (or build and run
./gradlew :app:dockerComposeUp
now)- more details on running locally can be found HERE.
- manually stop the
vro-app-1
container, which we will run through our IntelliJ configuration
docker stop vro-app-1
- now run it from the IDE w/ the big green play button