Skip to content

Commit

Permalink
feat(docker-jans): add support for mounted hybrid properties file (#3623
Browse files Browse the repository at this point in the history
)
  • Loading branch information
iromli authored Jan 14, 2023
1 parent d465c19 commit 8c58a5a
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 8 deletions.
2 changes: 1 addition & 1 deletion docker-jans-auth-server/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# pinned to py3-grpcio version to avoid failure on native extension build
grpcio==1.41.0
libcst<0.4
git+https://github.com/JanssenProject/jans@8b8efd27cbb2d51cd90ad8fb241388409c392039#egg=jans-pycloudlib&subdirectory=jans-pycloudlib
git+https://github.com/JanssenProject/jans@d465c191c8276c5d409e1200ddd7e3a364089e96#egg=jans-pycloudlib&subdirectory=jans-pycloudlib
4 changes: 3 additions & 1 deletion docker-jans-auth-server/scripts/bootstrap.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,9 @@ def main():
persistence_groups = mapper.groups().keys()

if persistence_type == "hybrid":
render_hybrid_properties("/etc/jans/conf/jans-hybrid.properties")
hybrid_prop = "/etc/jans/conf/jans-hybrid.properties"
if not os.path.exists(hybrid_prop):
render_hybrid_properties(hybrid_prop)

if "ldap" in persistence_groups:
render_ldap_properties(
Expand Down
2 changes: 1 addition & 1 deletion docker-jans-config-api/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# pinned to py3-grpcio version to avoid failure on native extension build
grpcio==1.41.0
libcst<0.4
git+https://github.com/JanssenProject/jans@8b8efd27cbb2d51cd90ad8fb241388409c392039#egg=jans-pycloudlib&subdirectory=jans-pycloudlib
git+https://github.com/JanssenProject/jans@d465c191c8276c5d409e1200ddd7e3a364089e96#egg=jans-pycloudlib&subdirectory=jans-pycloudlib
4 changes: 3 additions & 1 deletion docker-jans-config-api/scripts/bootstrap.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,9 @@ def main():
persistence_groups = mapper.groups().keys()

if persistence_type == "hybrid":
render_hybrid_properties("/etc/jans/conf/jans-hybrid.properties")
hybrid_prop = "etc/jans/conf/jans-hybrid.properties"
if not os.path.exists(hybrid_prop):
render_hybrid_properties(hybrid_prop)

if "ldap" in persistence_groups:
render_ldap_properties(
Expand Down
2 changes: 1 addition & 1 deletion docker-jans-fido2/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# pinned to py3-grpcio version to avoid failure on native extension build
grpcio==1.41.0
libcst<0.4
git+https://github.com/JanssenProject/jans@8b8efd27cbb2d51cd90ad8fb241388409c392039#egg=jans-pycloudlib&subdirectory=jans-pycloudlib
git+https://github.com/JanssenProject/jans@d465c191c8276c5d409e1200ddd7e3a364089e96#egg=jans-pycloudlib&subdirectory=jans-pycloudlib
4 changes: 3 additions & 1 deletion docker-jans-fido2/scripts/bootstrap.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,9 @@ def main():
persistence_groups = mapper.groups()

if persistence_type == "hybrid":
render_hybrid_properties("/etc/jans/conf/jans-hybrid.properties")
hybrid_prop = "/etc/jans/conf/jans-hybrid.properties"
if not os.path.exists(hybrid_prop):
render_hybrid_properties(hybrid_prop)

if "ldap" in persistence_groups:
render_ldap_properties(
Expand Down
2 changes: 1 addition & 1 deletion docker-jans-scim/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
grpcio==1.41.0
libcst<0.4
ruamel.yaml==0.16.10
git+https://github.com/JanssenProject/jans@8b8efd27cbb2d51cd90ad8fb241388409c392039#egg=jans-pycloudlib&subdirectory=jans-pycloudlib
git+https://github.com/JanssenProject/jans@d465c191c8276c5d409e1200ddd7e3a364089e96#egg=jans-pycloudlib&subdirectory=jans-pycloudlib
4 changes: 3 additions & 1 deletion docker-jans-scim/scripts/bootstrap.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,9 @@ def main():
persistence_groups = mapper.groups()

if persistence_type == "hybrid":
render_hybrid_properties("/etc/jans/conf/jans-hybrid.properties")
hybrid_prop = "/etc/jans/conf/jans-hybrid.properties"
if not os.path.exists(hybrid_prop):
render_hybrid_properties(hybrid_prop)

if "ldap" in persistence_groups:
render_ldap_properties(
Expand Down

0 comments on commit 8c58a5a

Please sign in to comment.