Skip to content

Commit

Permalink
Use BUILD_CORES_MAKE as envvar name
Browse files Browse the repository at this point in the history
  • Loading branch information
milanmlft committed Dec 10, 2024
1 parent 5c8a292 commit 42f85bf
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .env.sample
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ PREPROCESS_DB_USERNAME= # username for the source database
PREPROCESS_DB_PASSWORD= # password for the source database
PREPROCESS_DB_CDM_SCHEMA= # Schema name in the database to connect the OMOP CDM to
PREPROCESS_SUMMARISE_LEVEL=monthly # Level to summarise record counts at (monthly or quarterly)
PREPROCESS_BUILD_CORES=4 # Number of cores to use for make in docker build
BUILD_CORES_MAKE=4 # Number of cores to use for make in docker build

# Low-frequency replacement
LOW_FREQUENCY_THRESHOLD=10
Expand Down
4 changes: 2 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ services:
# Required for running on GAE
HTTP_PROXY: ${HTTP_PROXY}
HTTPS_PROXY: ${HTTPS_PROXY}
CORES: ${PREPROCESS_BUILD_CORES}
CORES: ${BUILD_CORES_MAKE}
image: omopcat_preprocessing:latest
platform: linux/amd64
environment:
Expand Down Expand Up @@ -37,7 +37,7 @@ services:
# Required for running on GAE
HTTP_PROXY: ${HTTP_PROXY}
HTTPS_PROXY: ${HTTPS_PROXY}
CORES: ${PREPROCESS_BUILD_CORES}
CORES: ${BUILD_CORES_MAKE}
image: omopcat:latest
platform: linux/amd64
restart: unless-stopped
Expand Down
3 changes: 2 additions & 1 deletion public.env.sample
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ PREPROCESS_DB_USERNAME= # username for the source database
PREPROCESS_DB_PASSWORD= # password for the source database
PREPROCESS_DB_CDM_SCHEMA= # Schema name in the database to connect the OMOP CDM to
PREPROCESS_SUMMARISE_LEVEL=quarterly # Level to summarise record counts at (monthly or quarterly)
PREPROCESS_BUILD_CORES=4 # Number of cores to use for make in docker build
BUILD_CORES_MAKE=4 # Number of cores to use for make in docker build

# Low-frequency replacement
LOW_FREQUENCY_THRESHOLD=10
LOW_FREQUENCY_REPLACEMENT=9.99
Expand Down

0 comments on commit 42f85bf

Please sign in to comment.