From cfbc22a0f8e702b7b700bf2dcc0d93197a5caeb2 Mon Sep 17 00:00:00 2001 From: Mohmn Date: Sun, 26 Nov 2023 20:22:29 +0530 Subject: [PATCH 1/3] feat customize account page --- keycloak/lib/docker/Dockerfile | 4 +-- .../account/messages/messages_en.properties | 1 + .../account/resources/css/treetracker.css | 27 +++++++++++++++++++ .../treetracker/account/theme.properties | 4 +++ 4 files changed, 34 insertions(+), 2 deletions(-) create mode 100644 keycloak/lib/docker/themes/treetracker/account/messages/messages_en.properties create mode 100644 keycloak/lib/docker/themes/treetracker/account/resources/css/treetracker.css create mode 100644 keycloak/lib/docker/themes/treetracker/account/theme.properties diff --git a/keycloak/lib/docker/Dockerfile b/keycloak/lib/docker/Dockerfile index ac25522..e8b604b 100644 --- a/keycloak/lib/docker/Dockerfile +++ b/keycloak/lib/docker/Dockerfile @@ -4,7 +4,7 @@ #FROM quay.io/keycloak/keycloak:22.0.4 #ENTRYPOINT ["/opt/keycloak/bin/kc.sh"] -FROM quay.io/keycloak/keycloak:22.0.4 as builder +FROM quay.io/keycloak/keycloak:21.1 as builder ENV KC_HEALTH_ENABLED=true ENV KC_METRICS_ENABLED=true @@ -17,7 +17,7 @@ WORKDIR /opt/keycloak COPY ./themes/treetracker /opt/keycloak/themes/treetracker #RUN /opt/keycloak/bin/kc.sh build -FROM quay.io/keycloak/keycloak:latest +FROM quay.io/keycloak/keycloak:21.1 COPY --from=builder /opt/keycloak/ /opt/keycloak/ ENTRYPOINT ["/opt/keycloak/bin/kc.sh", "start-dev"] diff --git a/keycloak/lib/docker/themes/treetracker/account/messages/messages_en.properties b/keycloak/lib/docker/themes/treetracker/account/messages/messages_en.properties new file mode 100644 index 0000000..ef6acd6 --- /dev/null +++ b/keycloak/lib/docker/themes/treetracker/account/messages/messages_en.properties @@ -0,0 +1 @@ +accountManagementWelcomeMessage=Welcome to Treetracker account management \ No newline at end of file diff --git a/keycloak/lib/docker/themes/treetracker/account/resources/css/treetracker.css b/keycloak/lib/docker/themes/treetracker/account/resources/css/treetracker.css new file mode 100644 index 0000000..b93ad89 --- /dev/null +++ b/keycloak/lib/docker/themes/treetracker/account/resources/css/treetracker.css @@ -0,0 +1,27 @@ +:root { + --pf-global--primary-color--100: #86C232; + --pf-global--primary-color--200: #a6dc5a; + --pf-global--primary-color--dark-100: #86C232; + --pf-global--primary-color--light-100: #a6dc5a; + --pf-global--active-color--100: #68a119; + --pf-global--active-color--200: #b9ef6d; + --pf-global--active-color--300: #89e00f; + --pf-global--active-color--400: #80aa44; + --pf-global--link--Color: #61901f; + --pf-global--link--Color--hover: #547722; + --pf-global--link--Color--light: #b4ef62; + --pf-global--link--Color--light--hover: #b7e973; + --pf-global--link--Color--dark: #679822; + --pf-global--link--Color--dark--hover: #5e9413; + --pf-global--default-color--100: #86C232; + --pf-global--default-color--200: #a6dc5a; + --pf-global--default-color--300: #86C232; +} + +.pf-c-brand { + content: url("https://map.treetracker.org/images/treetracker_logo_white.svg"); +} + +.pf-icon { + color: var(--pf-global--primary-color--100); +} \ No newline at end of file diff --git a/keycloak/lib/docker/themes/treetracker/account/theme.properties b/keycloak/lib/docker/themes/treetracker/account/theme.properties new file mode 100644 index 0000000..0526dd6 --- /dev/null +++ b/keycloak/lib/docker/themes/treetracker/account/theme.properties @@ -0,0 +1,4 @@ +parent=keycloak.v2 +import=common/keycloak +styles=web_modules/@fontawesome/fontawesome-free/css/icons/all.css web_modules/@patternfly/react-core/dist/styles/base.css web_modules/@patternfly/react-core/dist/styles/app.css node_modules/patternfly/dist/css/patternfly.min.css node_modules/patternfly/dist/css/patternfly-additions.min.css css/account.css css/treetracker.css + From 310aa6ac08756ddfc48f410a009e6180ca5d0e49 Mon Sep 17 00:00:00 2001 From: Mohmn Date: Mon, 4 Dec 2023 01:51:05 +0530 Subject: [PATCH 2/3] feat: update docker image version to 23.0 --- keycloak/lib/docker/Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/keycloak/lib/docker/Dockerfile b/keycloak/lib/docker/Dockerfile index e8b604b..3988b58 100644 --- a/keycloak/lib/docker/Dockerfile +++ b/keycloak/lib/docker/Dockerfile @@ -4,7 +4,7 @@ #FROM quay.io/keycloak/keycloak:22.0.4 #ENTRYPOINT ["/opt/keycloak/bin/kc.sh"] -FROM quay.io/keycloak/keycloak:21.1 as builder +FROM quay.io/keycloak/keycloak:23.0 as builder ENV KC_HEALTH_ENABLED=true ENV KC_METRICS_ENABLED=true @@ -17,7 +17,7 @@ WORKDIR /opt/keycloak COPY ./themes/treetracker /opt/keycloak/themes/treetracker #RUN /opt/keycloak/bin/kc.sh build -FROM quay.io/keycloak/keycloak:21.1 +FROM quay.io/keycloak/keycloak:23.0 COPY --from=builder /opt/keycloak/ /opt/keycloak/ ENTRYPOINT ["/opt/keycloak/bin/kc.sh", "start-dev"] From f6480c0eb4737589bfef2b8f8dec6acf849c39c6 Mon Sep 17 00:00:00 2001 From: Mohmn Date: Tue, 2 Jan 2024 00:01:47 +0530 Subject: [PATCH 3/3] feat: updated deploment container image --- keycloak/lib/kubernetes/base/deployment.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/keycloak/lib/kubernetes/base/deployment.yaml b/keycloak/lib/kubernetes/base/deployment.yaml index 55be567..601844b 100644 --- a/keycloak/lib/kubernetes/base/deployment.yaml +++ b/keycloak/lib/kubernetes/base/deployment.yaml @@ -16,7 +16,7 @@ spec: spec: containers: - name: treetracker-keycloak - image: dadiorchen/keycloak:1.5 + image: mohmin/keycloak-23 env: - name: KC_LOG_LEVEL value: INFO