-
Notifications
You must be signed in to change notification settings - Fork 6
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
Fix: local deployment issues #72
Fix: local deployment issues #72
Conversation
- Added password auth flow in open api config and removed other unnecessary flows
Fix: local set-up issues
@nitin-vavdiya Currently the Eclipse Contributor Agreement (ECA) check fails because @ravi-ghadiya has not signed the ECA. |
Latest dependency changes added to DEPENDENCY_BACKEND
...eclipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/appinfo/InfoConfiguration.java
Outdated
Show resolved
Hide resolved
...ipse/tractusx/demandcapacitymgmt/demandcapacitymgmtbackend/config/openapi/OpenApiConfig.java
Show resolved
Hide resolved
...ctusx/demandcapacitymgmt/demandcapacitymgmtbackend/security/AppSecurityConfigProperties.java
Show resolved
Hide resolved
Managed Licence and Copyright header
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As this PR has > 1000 lines of changed code, Eclipse Foundation IP-Check ticket opened: https://gitlab.eclipse.org/eclipsefdn/emo-team/iplab/-/issues/14720
@ClosedSourcerer please review code and approve PR if changes are valid.
@nitin-vavdiya, Great job. Thank you for doing this. It will be super helpful to update document Local Development Install so that any future developers can get started using your work. With more variables added, helm chart also needs an update. I think it exceeds scope of this PR. So added new issue #73 for that. |
dev/create_keycloak_db.sh
Outdated
set -e | ||
|
||
psql -v ON_ERROR_STOP=1 --username "$POSTGRES_USER" --dbname "$POSTGRES_DB" <<-EOSQL | ||
CREATE DATABASE auth; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider creating if not exists, so that its idempotent.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed with b3a7dbc
@@ -36,17 +47,28 @@ spring: | |||
|
|||
flyway: | |||
enabled: true | |||
url: jdbc:postgresql://${DCM_DATASOURCE_HOST:localhost:5432}/${DCM_DATASOURCE_NAME:dcm} | |||
url: jdbc:postgresql://${DCM_DATASOURCE_HOST:localhost:15432}/${DCM_DATASOURCE_NAME:dcm} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why did you have to change port. Even docker-compose you added is not using these ports. Local development install is also recommending these standard ports. Recommend switching back to standard ports.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed with b3a7dbc
@@ -54,7 +54,7 @@ | |||
<dependency> | |||
<groupId>org.springframework.boot</groupId> | |||
<artifactId>spring-boot-starter-webflux</artifactId> | |||
<version>3.1.5</version> | |||
<version>3.2.5</version> | |||
</dependency> | |||
|
|||
<dependency> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As you are touching this file, can you please remove duplicate dependency in line 82 though you did not add it
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-jpa</artifactId>
</dependency>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed with b3a7dbc
|
||
@Configuration | ||
@AllArgsConstructor | ||
public class OpenApiConfig { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When I tried to run app, project fails to initialize this class. Please check if you also see this or update recommended local set up.
I am using openJDK 17
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No we tested with JDK 17 only
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you briefly update document Local Development Install. I will try again.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was one annotation missing on the spring boot main class
README is also updated
Fixed with b3a7dbc
From my POV the changes seem sensible and improve DCMFOSS. As soon as his concerns are taken care off this would be good to merge, in my humble opinion. |
![Postgres connection](images/dev/5.png "Docker postgres connection") | ||
On startup, the application also creates a Keycloak container based on the configurations in the Compose file. Initial configurations, including the creation of realms, clients, and users, are performed using the `dcm_realm.json` file. | ||
|
||
![Docker desktop running containers](images/dev/11.png) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Prefer not to add docker desktop reference. See #68 . But in this case, it is only representation.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ClosedSourcerer - Looks good to me. Especially adding missing annotation.
Waiting to finish EF IP-Check with due date 22.05.2024. After IP-Check succeded I'll approve and merge PR. |
@stephanbcbauer why has this PR been merged, ignoring the changes requested? In a way this is a no-go and disrespects the work I've spend into this PR. EF IP-Check for this PR is still open. I've stated clearly that I'll merge this PR as soon as the IP-Check has been successfully completed. |
Description
Changes:
fix: #71
Pre-review checks
Please ensure to do as many of the following checks as possible, before asking for a committer review: