Skip to content

Commit f72ddab

Browse files
committed
chores: Update README
1 parent d2b358b commit f72ddab

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

README.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff 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
3031
FROM keycloak/keycloak:26.1
3132
COPY ./webprotege /opt/keycloak/themes/webprotege
3233
COPY ./spi/target/webprotege-credential-check-authenticator-1.0.0.jar /opt/keycloak/providers/
34+
COPY ./webprotege.json /opt/keycloak/import/webprotege.json
3335
RUN /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

3847
For full deployment instructions, see the [webprotege-deploy README](../webprotege-deploy/README.md).

0 commit comments

Comments
 (0)