Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add flexibility to modify the base-href of DataDashboard app #247

Merged
merged 5 commits into from
May 8, 2024

Conversation

farhin23
Copy link
Contributor

What this PR changes/adds

The Dockerfile and app-config.service.ts file.

Why it does that

These changes add flexibility to modify the base-href of the application according to need.
For example, when we try to deploy the edc-datadashboard to a Kubernetes cluster and implement an ingress route to access the services, it cannot load the asset files (css, js, images) properly. As a result, the angular app cannot be loaded properly.

In this PR, the build command in the Dockerfile has been modified, which uses a BASE_PATH argument. We can pass the BASE_PATH of choice at the time of image creation.

Also, the app-config.service.ts file is using the url 'assets/config/app.config.json' to get app config files.
In case, we are using a base-href different than root (‘/’) then this will fail to get the files. Therefore, we modified this file and prepared the url by adding the base-href with it.

Further notes

Applications that are using the Dockerfile of DataDashboard, should pass a BASE_PATH at the image creation time.

Linked Issue(s)

Closes #224

@farhin23 farhin23 added the enhancement New feature or request label Apr 15, 2024
@juliapampus juliapampus merged commit d11470c into eclipse-edc:main May 8, 2024
4 checks passed
@juliapampus juliapampus deleted the helm_dashboard_changes branch May 8, 2024 07:19
@juliapampus juliapampus restored the helm_dashboard_changes branch May 8, 2024 07:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add flexibility to modify the base-href of DataDashboard app
2 participants