File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ Keycloak configuration for WebProtege. This repository contains:
1010
1111- Java 17+
1212- Maven 3.8+
13+ - Docker
1314
1415## Building the Plugin
1516
@@ -24,15 +25,23 @@ This produces `spi/target/webprotege-credential-check-authenticator-1.0.0.jar`.
2425
2526## Docker Build
2627
27- The ` Dockerfile ` packages the theme and plugin into a custom Keycloak image:
28+ The ` Dockerfile ` packages the theme, plugin, and realm configuration into a custom Keycloak image:
2829
2930``` dockerfile
3031FROM keycloak/keycloak:26.1
3132COPY ./webprotege /opt/keycloak/themes/webprotege
3233COPY ./spi/target/webprotege-credential-check-authenticator-1.0.0.jar /opt/keycloak/providers/
34+ COPY ./webprotege.json /opt/keycloak/import/webprotege.json
3335RUN /opt/keycloak/bin/kc.sh build
3436```
3537
38+ To build locally:
39+
40+ ``` bash
41+ cd spi && mvn clean package && cd ..
42+ docker build -t protegeproject/webprotege-keycloak:1.0.0 .
43+ ```
44+
3645## Deployment
3746
3847For full deployment instructions, see the [ webprotege-deploy README] ( ../webprotege-deploy/README.md ) .
You can’t perform that action at this time.
0 commit comments