Docker image for Karaf version 4.0.8
Please refer to the Karaf Documentation for more in-depth information.
As a quick example this will bring up an instance of karaf, and allow you to
log view the WebConsole on http://localhost:8181/system/console/ as the user admin
with
the password password
.
docker run --rm -ti \
-p 8181:8181 \
-e "KARAF_ADMIN_NAME=admin" \
-e "KARAF_ADMIN_PASSWORD=password" \
islandora/karaf
Requires islandora/karaf
docker image to build.
Port | Description |
---|---|
8101 | SSH |
1099 | RMI |
44444 | JMX |
8181 | WebConsole |
Path | Description |
---|---|
/opt/karaf/data | Karaf Directory Structure |
Environment Variable | Confd Key | Default | Description |
---|---|---|---|
KARAF_ADMIN_NAME | /karaf/admin/name | admin | Admin user name |
KARAF_ADMIN_PASSWORD | /karaf/admin/password | password | Admin user password |
Additional users/groups/etc can be defined by adding more environment variables, following the conventions listed below:
Environment Variable | Confd Key | Description |
---|---|---|
KARAF_USER_{USER}_NAME | /karaf/user/{USER}/name | See Security: users.properties |
KARAF_USER_{USER}_PASSWORD | /karaf/user/{USER}/password | See Security: users.properties |
KARAF_USER_{USER}_ROLES | /karaf/user/{USER}/roles | See Security: users.properties |
KARAF_GROUP_{GROUP}_NAME | /karaf/group/{GROUP}/name | See Security: users.properties |
KARAF_GROUP_{GROUP}_ROLES | /karaf/group/{GROUP}/roles | See Security: users.properties |
N.B. These do not have defaults.