Skip to content

Commit

Permalink
Merge pull request #712 from ScilifelabDataCentre/DDS-2122-Add-dds-de…
Browse files Browse the repository at this point in the history
…v-url-to-CLI-config

Added new dev instance url to cli config
  • Loading branch information
rv0lt authored Sep 20, 2024
2 parents 247a5fd + ff5d59b commit 7972db5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions SPRINTLOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -374,3 +374,7 @@ _Empty sprint_
- Remove pinned version in requirements-dev.txt to resolve CVE ([#706](https://github.com/ScilifelabDataCentre/dds_cli/pull/706))
- Add CODEOWNERS file in order to define Team Hermes as owners of all files in repository ([#707](https://github.com/ScilifelabDataCentre/dds_cli/pull/707))
- Update documentation and related libraries for pyton 3.12, dropped support for python 3.7 ([#709](https://github.com/ScilifelabDataCentre/dds_cli/pull/709))

# 2024-09-09 - 2024-09-20

- Added new dev instance url to cli config ([#712](https://github.com/ScilifelabDataCentre/dds_cli/pull/712))
3 changes: 3 additions & 0 deletions dds_cli/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,15 @@ class DDSEndpoint:
BASE_ENDPOINT_DOCKER = "http://dds_backend:5000/api/v1"
BASE_ENDPOINT_REMOTE = "https://delivery.scilifelab.se/api/v1"
BASE_ENDPOINT_REMOTE_TEST = "https://testing.delivery.scilifelab.se/api/v1"
BASE_ENDPOINT_REMOTE_DEV = "https://dev.delivery.scilifelab.se/api/v1"
if os.getenv("DDS_CLI_ENV") == "development":
BASE_ENDPOINT = BASE_ENDPOINT_LOCAL
elif os.getenv("DDS_CLI_ENV") == "docker-dev":
BASE_ENDPOINT = BASE_ENDPOINT_DOCKER
elif os.getenv("DDS_CLI_ENV") == "test-instance":
BASE_ENDPOINT = BASE_ENDPOINT_REMOTE_TEST
elif os.getenv("DDS_CLI_ENV") == "dev-instance":
BASE_ENDPOINT = BASE_ENDPOINT_REMOTE_DEV
else:
BASE_ENDPOINT = BASE_ENDPOINT_REMOTE

Expand Down

0 comments on commit 7972db5

Please sign in to comment.