Skip to content

Commit

Permalink
Add env to pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
NickPhura committed Feb 1, 2024
1 parent bca98f9 commit 38e885b
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 1 deletion.
3 changes: 3 additions & 0 deletions api/.pipeline/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ const phases = {
elasticsearchURL: 'http://es01:9200',
elasticsearchEmlIndex: 'eml',
elasticsearchTaxonomyIndex: 'taxonomy_3.0.0',
itisSolrUrl: 'https://services.itis.gov',
s3KeyPrefix: (isStaticDeployment && 'biohub') || `local/${deployChangeId}/biohub`,
tz: config.timezone.api,
sso: config.sso.dev,
Expand Down Expand Up @@ -111,6 +112,7 @@ const phases = {
elasticsearchURL: 'http://es01.a0ec71-dev:9200', // TODO: Update to test instance (es is not yet deployed to test)
elasticsearchEmlIndex: 'eml',
elasticsearchTaxonomyIndex: 'taxonomy_3.0.0',
itisSolrUrl: 'https://services.itis.gov',
s3KeyPrefix: 'biohub',
tz: config.timezone.api,
sso: config.sso.test,
Expand Down Expand Up @@ -139,6 +141,7 @@ const phases = {
elasticsearchURL: 'http://es01:9200',
elasticsearchEmlIndex: 'eml',
elasticsearchTaxonomyIndex: 'taxonomy_3.0.0',
itisSolrUrl: 'https://services.itis.gov',
s3KeyPrefix: 'biohub',
tz: config.timezone.api,
sso: config.sso.prod,
Expand Down
2 changes: 2 additions & 0 deletions api/.pipeline/lib/api.deploy.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ const apiDeploy = async (settings) => {
ELASTICSEARCH_URL: phases[phase].elasticsearchURL,
ELASTICSEARCH_EML_INDEX: phases[phase].elasticsearchEmlIndex,
ELASTICSEARCH_TAXONOMY_INDEX: phases[phase].elasticsearchTaxonomyIndex,
// ITIS SOLR
ITIS_SOLR_URL: phases[phase].itisSolrUrl,
// S3 (Object Store)
S3_KEY_PREFIX: phases[phase].s3KeyPrefix,
OBJECT_STORE_SECRETS: 'biohubbc-object-store',
Expand Down
7 changes: 7 additions & 0 deletions api/.pipeline/templates/api.dc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,11 @@ parameters:
description: Application timezone
required: false
value: 'America/Vancouver'
# ITIS SOLR
- name: ITIS_SOLR_URL
description: ITIS SOLR API URL
value: 'https://services.itis.gov'
required: true
# Keycloak
- name: KEYCLOAK_HOST
description: Key clock login url
Expand Down Expand Up @@ -263,6 +268,8 @@ objects:
value: ${ELASTICSEARCH_EML_INDEX}
- name: ELASTICSEARCH_TAXONOMY_INDEX
value: ${ELASTICSEARCH_TAXONOMY_INDEX}
- name: ITIS_SOLR_URL
value: ${ITIS_SOLR_URL}
- name: S3_KEY_PREFIX
value: ${S3_KEY_PREFIX}
- name: TZ
Expand Down
2 changes: 1 addition & 1 deletion env_config/env.docker
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ ELASTICSEARCH_TAXONOMY_INDEX=taxonomy_3.0.0
# ------------------------------------------------------------------------------
# ITIS Platform API
# ------------------------------------------------------------------------------
ITIS_SOLR_URL=https://services.itis.gov/
ITIS_SOLR_URL=https://services.itis.gov

# ------------------------------------------------------------------------------
# GeoServer - https://geoserver.org/
Expand Down

0 comments on commit 38e885b

Please sign in to comment.