Skip to content

Commit

Permalink
Update dockerfile, version
Browse files Browse the repository at this point in the history
  • Loading branch information
y-a-n-n committed Mar 15, 2021
1 parent 3fe7ecd commit b07d593
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Implementation adapted from [firebase-scrypt-java](https://github.com/SmartMoveS
## Download latest built version

```
curl -L https://github.com/SmartMoveSystems/keycloak-firebase-scrypt/releases/download/3.0.2/keycloak-firebase-scrypt-3.0.2.jar > KEYCLOAK_HOME/standalone/deployments/keycloak-firebase-scrypt-3.0.2.jar
curl -L https://github.com/SmartMoveSystems/keycloak-firebase-scrypt/releases/download/3.0.3/keycloak-firebase-scrypt-3.0.3.jar > KEYCLOAK_HOME/standalone/deployments/keycloak-firebase-scrypt-3.0.3.jar
```

## Run
Expand All @@ -20,7 +20,7 @@ curl -L https://github.com/SmartMoveSystems/keycloak-firebase-scrypt/releases/do

```bash
cp deploy.cli docker/
cp build/libs/keycloak-firebase-scrypt-3.0.2.jar docker/
cp build/libs/keycloak-firebase-scrypt-3.0.3.jar docker/
docker-compose up -d
```

Expand All @@ -29,7 +29,7 @@ docker-compose up -d
Deploy module:

```
$KEYCLOAK_HOME/bin/jboss-cli.sh --command="module add --name=com.smartmovesystems.keycloak.firebasescrypt --resources=build/libs/keycloak-firebase-scrypt-3.0.2.jar --dependencies=org.keycloak.keycloak-core,org.keycloak.keycloak-services,org.keycloak.keycloak-model-jpa,org.keycloak.keycloak-server-spi,org.keycloak.keycloak-server-spi-private,javax.ws.rs.api,javax.persistence.api,org.hibernate,org.javassist,org.liquibase"
$KEYCLOAK_HOME/bin/jboss-cli.sh --command="module add --name=com.smartmovesystems.keycloak.firebasescrypt --resources=build/libs/keycloak-firebase-scrypt-3.0.3.jar --dependencies=org.keycloak.keycloak-core,org.keycloak.keycloak-services,org.keycloak.keycloak-model-jpa,org.keycloak.keycloak-server-spi,org.keycloak.keycloak-server-spi-private,javax.ws.rs.api,javax.persistence.api,org.hibernate,org.javassist,org.liquibase"
```

Register provider in `standalone/configuration/standalone.xml`:
Expand Down
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ plugins {
}

group = "com.smartmovesystems.keycloak.firebasescrypt"
version = "3.0.2"
version = "3.0.3"

java {
sourceCompatibility = JavaVersion.VERSION_1_8
Expand Down
2 changes: 1 addition & 1 deletion deploy.cli
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
embed-server --std-out=echo --server-config=standalone-ha.xml
if (outcome != success) of /core-service=module-loading/:list-resource-loader-paths(module=com.smartmovesystems.keycloak.firebasescrypt)
echo adding module com.smartmovesystems.keycloak.firebasescrypt
module add --name=com.smartmovesystems.keycloak.firebasescrypt --resources=/opt/jboss/keycloak/keycloak-firebase-scrypt-3.0.2.jar --dependencies=org.keycloak.keycloak-core,org.keycloak.keycloak-services,org.keycloak.keycloak-model-jpa,org.keycloak.keycloak-server-spi,org.keycloak.keycloak-server-spi-private,javax.ws.rs.api,javax.persistence.api,org.hibernate,org.javassist,org.liquibase
module add --name=com.smartmovesystems.keycloak.firebasescrypt --resources=/opt/jboss/keycloak/keycloak-firebase-scrypt-3.0.3.jar --dependencies=org.keycloak.keycloak-core,org.keycloak.keycloak-services,org.keycloak.keycloak-model-jpa,org.keycloak.keycloak-server-spi,org.keycloak.keycloak-server-spi-private,javax.ws.rs.api,javax.persistence.api,org.hibernate,org.javassist,org.liquibase
/subsystem=keycloak-server:list-add(name=providers, value=module:com.smartmovesystems.keycloak.firebasescrypt)
else
echo module com.smartmovesystems.keycloak.firebasescrypt already installed
Expand Down
4 changes: 2 additions & 2 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
FROM jboss/keycloak:11.0.2
FROM jboss/keycloak:12.0.4

COPY ./keycloak-firebase-scrypt-3.0.2.jar /opt/jboss/keycloak/
COPY ./keycloak-firebase-scrypt-3.0.3.jar /opt/jboss/keycloak/
COPY ./themes/ /opt/jboss/keycloak/standalone/deployments/
COPY ./startup-scripts/ /opt/jboss/startup-scripts/

0 comments on commit b07d593

Please sign in to comment.