generated from GenomicDataInfrastructure/oss-project-template
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #149 from GenomicDataInfrastructure/fix/ART-10607
Fix/art 10607
- Loading branch information
Showing
12 changed files
with
93 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<!-- | ||
SPDX-FileCopyrightText: 2024 PNED G.I.E. | ||
SPDX-License-Identifier: CC-BY-4.0 | ||
--> | ||
## To Run the application locally | ||
|
||
* Create a new file named .env.secrets in infra/config by copying .env.secrets.template and updating the secret values | ||
* To build and start the docker image using your local changes Run the script | ||
|
||
```bash | ||
./start.sh | ||
``` | ||
* To stop the application run the below script | ||
|
||
```bash | ||
./stop.sh | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# SPDX-FileCopyrightText: 2024 PNED G.I.E. | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# Common Quarkus | ||
QUARKUS_OIDC_AUTH_SERVER_URL=https://id.portal.dev.gdi.lu/realms/gdi | ||
QUARKUS_OIDC_CLIENT_ID=gdi | ||
QUARKUS_LOG_LEVEL=DEBUG | ||
QUARKUS_OTEL_METRICS_ENABLED=false | ||
|
||
|
||
# Dataset Discovery Service | ||
QUARKUS_REST_CLIENT_CKAN_YAML_URL=https://catalogue.portal.dev.gdi.lu/ | ||
QUARKUS_REST_CLIENT_BEACON_YAML_URL=https://beacon-network-backend-demo.ega-archive.org/beacon-network | ||
QUARKUS_REST_CLIENT_KEYCLOAK_YAML_URL=https://id.portal.dev.gdi.lu/realms/gdi | ||
QUARKUS_REST_CLIENT_KEYCLOAK_YAML_BEACON_IDP_ALIAS=LSAAI |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# SPDX-FileCopyrightText: 2024 PNED G.I.E. | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
QUARKUS_OIDC_CREDENTIALS_SECRET= if you do not have one ask your colleagues to share this with you |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# SPDX-FileCopyrightText: 2024 PNED G.I.E. | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
services: | ||
dataset-discovery-service: | ||
container_name: dds | ||
image: local/dds:latest | ||
build: | ||
context: ../ | ||
restart: unless-stopped | ||
ports: | ||
- "8080:8080" | ||
env_file: | ||
- ./config/.env | ||
- ./config/.env.secrets | ||
healthcheck: | ||
test: ["CMD", "curl", "-o", "/dev/null", "http://localhost:8080/q/health"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# SPDX-FileCopyrightText: 2024 PNED G.I.E. | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
#!/bin/bash | ||
|
||
cd ../ | ||
|
||
# Run Maven build | ||
echo "Building the application ..." | ||
|
||
if ! mvn clean package -Dnative -Dquarkus.native.container-build=true; then | ||
echo "Maven build failed. Please check the output for errors." | ||
exit 1 | ||
fi | ||
|
||
echo "Maven build completed successfully." | ||
|
||
echo "Building application docker image" | ||
docker build -t local/dds . | ||
|
||
echo "Docker image build completed successfully." | ||
|
||
echo "Starting application" | ||
docker-compose -f ./infra/docker-compose.yml up |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# SPDX-FileCopyrightText: 2024 PNED G.I.E. | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
#!/bin/bash | ||
|
||
docker-compose down |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.