Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions jena-fuseki/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,23 @@ You can override the admin-password using the form
`-e ADMIN_PASSWORD=pw123`:

docker run -p 3030:3030 -e ADMIN_PASSWORD=pw123 stain/jena-fuseki

Alternatively, you can create a file with the password and use Docker secrets:

```yaml
services:
fuseki:
image: stain/jena-fuseki
ports:
- "3030:3030"
secrets:
- admin_password
secrets:
admin_password:
file: ./admin_password.txt
```

You can also define the secret inline, if you wish.

To specify Java settings such as the amount of memory to allocate for the
heap (default: 1200 MiB), set the `JVM_ARGS` environment with `-e`:
Expand Down
7 changes: 6 additions & 1 deletion jena-fuseki/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,12 @@ if [ ! -f "$FUSEKI_BASE/shiro.ini" ] ; then
echo "Initializing Apache Jena Fuseki"
echo ""
cp "$FUSEKI_HOME/shiro.ini" "$FUSEKI_BASE/shiro.ini"
if [ -z "$ADMIN_PASSWORD" ] ; then
if [ -f "/run/secrets/admin_password" ] ; then
ADMIN_PASSWORD=$(cat /run/secrets/admin_password)
echo "Password read from Docker secret:"
echo ""
echo "admin=$ADMIN_PASSWORD"
elif [ -z "$ADMIN_PASSWORD" ] ; then
ADMIN_PASSWORD=$(pwgen -s 15)
echo "Randomly generated admin password:"
echo ""
Expand Down
Loading