This is an automated email from the ASF dual-hosted git repository.

omartushevskyi pushed a commit to branch DLAB-terraform
in repository https://gitbox.apache.org/repos/asf/incubator-dlab.git


The following commit(s) were added to refs/heads/DLAB-terraform by this push:
     new 1a05fca  added DLab theme to Keycloak
1a05fca is described below

commit 1a05fca7be4b04f1c569761d4e45fb6247b21f62
Author: Oleh Martushevskyi <[email protected]>
AuthorDate: Mon Aug 5 14:12:57 2019 +0300

    added DLab theme to Keycloak
---
 .../main/files/configure_keycloak.sh                |  2 +-
 .../ssn-helm-charts/main/files/keycloak_values.yaml | 21 +++++++++++++++++++++
 2 files changed, 22 insertions(+), 1 deletion(-)

diff --git 
a/infrastructure-provisioning/terraform/aws/ssn-helm-charts/main/files/configure_keycloak.sh
 
b/infrastructure-provisioning/terraform/aws/ssn-helm-charts/main/files/configure_keycloak.sh
index e0b072a..c8644f8 100644
--- 
a/infrastructure-provisioning/terraform/aws/ssn-helm-charts/main/files/configure_keycloak.sh
+++ 
b/infrastructure-provisioning/terraform/aws/ssn-helm-charts/main/files/configure_keycloak.sh
@@ -31,7 +31,7 @@
       }
       configure_keycloak () {
           # Create Realm
-          /opt/jboss/keycloak/bin/kcadm.sh create realms -s realm=dlab -s 
enabled=true
+          /opt/jboss/keycloak/bin/kcadm.sh create realms -s realm=dlab -s 
enabled=true -s loginTheme=dlab
           # Get realm ID
           dlab_realm_id=$(/opt/jboss/keycloak/bin/kcadm.sh get realms/dlab | 
/usr/bin/jq -r '.id')
           # Create user federation
diff --git 
a/infrastructure-provisioning/terraform/aws/ssn-helm-charts/main/files/keycloak_values.yaml
 
b/infrastructure-provisioning/terraform/aws/ssn-helm-charts/main/files/keycloak_values.yaml
index 954e3c2..2232784 100644
--- 
a/infrastructure-provisioning/terraform/aws/ssn-helm-charts/main/files/keycloak_values.yaml
+++ 
b/infrastructure-provisioning/terraform/aws/ssn-helm-charts/main/files/keycloak_values.yaml
@@ -51,3 +51,24 @@ keycloak:
     mystartup.sh: |
       ${configure_keycloak_file}
 
+  extraInitContainers: |
+    - name: theme-provider
+      image: epamdlab/ui-theme:0.1
+      imagePullPolicy: Always
+      command:
+        - sh
+      args:
+        - -c
+        - |
+          echo "Copying theme..."
+          cp -R /dlab/* /theme
+      volumeMounts:
+        - name: theme
+          mountPath: /theme
+  extraVolumeMounts: |
+    - name: theme
+      mountPath: /opt/jboss/keycloak/themes/dlab
+
+  extraVolumes: |
+    - name: theme
+      emptyDir: {}
\ No newline at end of file


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to