Skip to content

Commit

Permalink
makefile fixes.
Browse files Browse the repository at this point in the history
Signed-off-by: Nathan Phelps <[email protected]>
  • Loading branch information
naphelps committed Sep 16, 2024
1 parent 1e285b1 commit 8892d8c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ jobs:
EXCHANGE_FE_HEADER: issuer
EXCHANGE_PEKKO_LOGLEVEL: debug
EXCHANGE_ROOT_PW: ci-password
POSTGRES_DB_NAME: exchange
POSTGRES_DB_PORT: 5432
POSTGRES_DB_USER: admin
EXCHANGE_DB_NAME: exchange
EXCHANGE_DB_PORT: 5432
EXCHANGE_DB_USER: admin

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
Expand All @@ -43,7 +43,7 @@ jobs:
pwd
java -version
make docker-network
docker run -d -e POSTGRES_HOST_AUTH_METHOD=trust -e POSTGRES_DB=$POSTGRES_DB_NAME -e POSTGRES_USER=$POSTGRES_DB_USER --network $DOCKER_NETWORK --name postgres postgres
docker run -d -e POSTGRES_HOST_AUTH_METHOD=trust -e POSTGRES_DB=$EXCHANGE_DB_NAME -e POSTGRES_USER=$EXCHANGE_DB_USER --network $DOCKER_NETWORK --name postgres postgres
export POSTGRES_CONTAINER_ADDRESS=$(docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' postgres)
export EXCHANGE_DB_HOST=$POSTGRES_CONTAINER_ADDRESS
make run-docker
Expand Down
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,14 @@ JAVA_OPTS ?=#-Xmx1G
POSTGRES_CONTAINER_ADDRESS ?= $(shell docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' $(POSTGRES_CONTAINER_NAME))
POSTGRES_CONTAINER_NAME ?= postgres
POSTGRES_DB_NAME ?= exchange
EXCHANGE_DB_NAME ?= $(POSTGRES_DB_NAME)
POSTGRES_DB_PORT ?= 5432
EXCHANGE_DB_PORT ?= $(POSTGRES_DB_PORT)
POSTGRES_DB_USER ?= admin
EXCHANGE_DB_USER ?= $(POSTGRES_DB_USER)
PROJECT_DIRECTORY ?= $(shell pwd)
# Try to sync this version with the version of scala you have installed on your dev machine, and with what is specified in build.sbt
SCALA_VERSION ?= 2.13.10
SCALA_VERSION ?= 2.13.14
SCALA_VERSION_SHORT ?= 2.13


Expand Down

0 comments on commit 8892d8c

Please sign in to comment.