Skip to content

Commit

Permalink
fix(env): provide default for unset telemetry variable (#4937)
Browse files Browse the repository at this point in the history
  • Loading branch information
RyanHolstien authored May 18, 2022
1 parent 7b1cf6f commit bb341f7
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 13 deletions.
3 changes: 1 addition & 2 deletions docker/docker-compose-without-neo4j.override.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@ services:
datahub-gms:
env_file: datahub-gms/env/docker-without-neo4j.env
environment:
- DATAHUB_TELEMETRY_ENABLED=${DATAHUB_TELEMETRY_ENABLED}
- DATAHUB_FOLDER_PATH=/etc/datahub
- DATAHUB_TELEMETRY_ENABLED=${DATAHUB_TELEMETRY_ENABLED:-true}
depends_on:
- mysql
volumes:
Expand Down
3 changes: 1 addition & 2 deletions docker/docker-compose.dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,7 @@ services:
APP_ENV: dev
environment:
- SKIP_ELASTICSEARCH_CHECK=false
- DATAHUB_TELEMETRY_ENABLED=${DATAHUB_TELEMETRY_ENABLED}
- DATAHUB_FOLDER_PATH=/etc/datahub
- DATAHUB_TELEMETRY_ENABLED=${DATAHUB_TELEMETRY_ENABLED:-true}
volumes:
- ./datahub-gms/start.sh:/datahub/datahub-gms/scripts/start.sh
- ./datahub-gms/jetty.xml:/datahub/datahub-gms/scripts/jetty.xml
Expand Down
3 changes: 1 addition & 2 deletions docker/docker-compose.override.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@ services:
depends_on:
- mysql
environment:
- DATAHUB_TELEMETRY_ENABLED=${DATAHUB_TELEMETRY_ENABLED}
- DATAHUB_FOLDER_PATH=/etc/datahub
- DATAHUB_TELEMETRY_ENABLED=${DATAHUB_TELEMETRY_ENABLED:-true}
volumes:
- ${HOME}/.datahub/plugins/:/etc/datahub/plugins

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,7 @@ services:
- ENTITY_REGISTRY_CONFIG_PATH=/datahub/datahub-gms/resources/entity-registry.yml
- MAE_CONSUMER_ENABLED=true
- MCE_CONSUMER_ENABLED=true
- DATAHUB_TELEMETRY_ENABLED=${DATAHUB_TELEMETRY_ENABLED}
- DATAHUB_FOLDER_PATH=/etc/datahub
- DATAHUB_TELEMETRY_ENABLED=${DATAHUB_TELEMETRY_ENABLED:-true}
- PE_CONSUMER_ENABLED=true
hostname: datahub-gms
image: linkedin/datahub-gms:${DATAHUB_VERSION:-head}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,7 @@ services:
depends_on:
- mysql
environment:
- DATAHUB_TELEMETRY_ENABLED=${DATAHUB_TELEMETRY_ENABLED}
- DATAHUB_FOLDER_PATH=/etc/datahub
- DATAHUB_TELEMETRY_ENABLED=${DATAHUB_TELEMETRY_ENABLED:-true}
- DATASET_ENABLE_SCSI=false
- EBEAN_DATASOURCE_USERNAME=datahub
- EBEAN_DATASOURCE_PASSWORD=datahub
Expand Down
3 changes: 1 addition & 2 deletions docker/quickstart/docker-compose.quickstart.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,7 @@ services:
depends_on:
- mysql
environment:
- DATAHUB_TELEMETRY_ENABLED=${DATAHUB_TELEMETRY_ENABLED}
- DATAHUB_FOLDER_PATH=/etc/datahub
- DATAHUB_TELEMETRY_ENABLED=${DATAHUB_TELEMETRY_ENABLED:-true}
- DATASET_ENABLE_SCSI=false
- EBEAN_DATASOURCE_USERNAME=datahub
- EBEAN_DATASOURCE_PASSWORD=datahub
Expand Down
2 changes: 1 addition & 1 deletion smoke-test/smoke.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ pip install --upgrade pip wheel setuptools
pip install -r requirements.txt

echo "DATAHUB_VERSION = $DATAHUB_VERSION"
datahub docker quickstart --dump-logs-on-failure
datahub docker quickstart --quickstart-compose-file ../docker/quickstart/docker-compose-without-neo4j.quickstart.yml --dump-logs-on-failure

(cd tests/cypress ; yarn install)

Expand Down

0 comments on commit bb341f7

Please sign in to comment.