Skip to content

Commit

Permalink
chown problem - running keycloak as root; database is not initialized…
Browse files Browse the repository at this point in the history
… - sleep 10s
  • Loading branch information
Pavel Maslov committed Nov 26, 2015
1 parent 28fc796 commit 0fa2173
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,7 @@ RUN sed -i -e 's/<server name="default-server">/&\n <https-listen

EXPOSE 8080

USER root

# export database into json file on reboot
CMD ["/opt/jboss/keycloak/bin/standalone.sh", "-b", "0.0.0.0" , "-bmanagement", "0.0.0.0", "-Dkeycloak.migration.action=export", "-Dkeycloak.migration.provider=singleFile", "-Dkeycloak.migration.file=/data/keycloak.json"]
4 changes: 3 additions & 1 deletion compose.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/bin/bash

# Run containeres
docker-compose up -d keycloak
docker-compose up -d db
sleep 10
docker-compose up -d keycloak

0 comments on commit 0fa2173

Please sign in to comment.