Skip to content

Instantly share code, notes, and snippets.

@dlangille
Created December 19, 2019 02:11
Show Gist options
  • Save dlangille/4fef8f0793495f5af74480ccfbf9da28 to your computer and use it in GitHub Desktop.
Save dlangille/4fef8f0793495f5af74480ccfbf9da28 to your computer and use it in GitHub Desktop.
keycloak - files modified by the application, or by the user
[dan@keycloak:/usr/local/share/java/keycloak] $ find .
./standalone.xml
./standalone
./standalone/tmp
./standalone/tmp/vfs
./standalone/tmp/vfs/temp
./standalone/data
./standalone/data/kernel
./standalone/data/kernel/process-uuid
./standalone/data/timer-service-data
./standalone/data/tx-object-store
./standalone/data/tx-object-store/ShadowNoFileLockStore
./standalone/data/tx-object-store/ShadowNoFileLockStore/defaultStore
./standalone/data/tx-object-store/ShadowNoFileLockStore/defaultStore/EISNAME
./standalone/data/tx-object-store/ShadowNoFileLockStore/defaultStore/EISNAME/0_ffff0a370017_33ac85db_5dfa320c_18
./standalone/data/content
./standalone/data/keycloak.trace.db
./standalone/data/keycloak.mv.db
./standalone/log
./standalone/log/audit.log
./standalone/log/server.log
./standalone/log/server.log.2019-12-16
./standalone/log/server.log.2019-12-18
./standalone/log/server.log.2019-12-15
./standalone/configuration
./standalone/configuration/standalone_xml_history
./standalone/configuration/standalone_xml_history/snapshot
./standalone/configuration/standalone_xml_history/standalone.last.xml
./standalone/configuration/standalone_xml_history/standalone.initial.xml
./standalone/configuration/standalone_xml_history/standalone.boot.xml
./standalone/configuration/standalone_xml_history/current
./standalone/configuration/application.keystore
[dan@keycloak:/usr/local/share/java/keycloak] $
@dlangille
Copy link
Author

The problems are:

  • These files do not belong in /usr/local/share/java/keycloak
  • Configuration files should be in /usr/local/etc/keycloak (e.g. line 2 standalone.xml)
  • Temp files should be in /tmp (line 6)
  • Data files shouldn't be here. /var/db/keycloak is better (lines 7-18)
  • Log files should be in /var/log/keycloak (lines 19-24)
  • More configuration files for /usr/local/etc/keycloak (lines 25-32)

@dlangille
Copy link
Author

As a packager, how do I inform the application of the new locations? I could just create symlinks. That might be easiest.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment