Public | Automated Build

Last pushed: 2 years ago
Short Description
Minimal Docker Image running OpenExchange
Full Description

docker-ubuntu-open-exchange

Minimal Docker Image running OpenExchange

Run it using

docker run -d -p 8080:80 sbminimal/docker-ubuntu-open-exchange

and access it via your webbrowser at http://127.0.0.1:8080/.

If you want to persist your data, you can link the /data directory to some "local-directory" using

docker run -d -p 8080:80 -v <local-directory>:/data sbminimal/docker-ubuntu-open-exchange
Docker Pull Command
Owner
sbminimal

Comments (6)
silberling
8 months ago

I was installing using cockpit, so I had no clue what the password was. The /createcontext script was not available for some reason, only the one provided in /opt/open-xchange/sbin. I managed to get the output of the install script. there is the password hidden.
For example:

/opt/open-xchange/sbin/oxinstaller --no-license --servername=oxserver --configdb-pass=wrong_password --master-pass=HERE_IS_THE_PASSWORD_YOU_NEED --network-listener-host=localhost --servermemory 1024

Then you add

-A oxadminmaster -P HERE_IS_THE_PASSWORD_YOU_NEED

to the /opt/open-xchange/sbin/createcontext line, for example:

docker exec -it CONTAINER_ID /opt/open-xchange/sbin/createcontext -A oxadminmaster -P HERE_IS_THE_PASSWORD_YOU_NEED -c 1 -L defaultcontext -u ctxadmin -p secretpassword -e admin@example.com -d ctxadmin -g admin -s ctx -q 0 --access-combination-name=all

sbminimal
2 years ago

Hm, just tested with current version. The problem seems to be that the context does not get a default mapping, if not explicitly set via -L defaultcontext

So here is a complete working walkthrough:

docker run --name=ox-example -d -p 8080:80 sbminimal/docker-ubuntu-open-exchange

(wait a minute until cpu usage goes down and open exchange is fully loaded)

docker exec -it ox-example /createcontext -c 1 -L defaultcontext  -u ctxadmin  -p secretpassword -e admin@example.com -d ctxadmin -g admin -s ctx -q 0 --access-combination-name=all

You should now have a default context and can add users to it:

docker exec -it ox-example /opt/open-xchange/sbin/createuser -c 1 -A ctxadmin -P secretpassword -u testuser -p testpassword -e test@example.com -d testuser -g user -s test

You should now have a testuser in the default context.

Try to load up localhost:8080 and login with:
testuser
testpassword

krzpal
2 years ago

Maybe someone can just give me admin and password for this image

krzpal
2 years ago

Still Message
Der Benutzername oder das Passwort ist nicht korrekt. (LGI-0006)

sbminimal
2 years ago

NOTE:

The master password is randomized, but we ship a convenience script to create your first context.

If you have a container running with CONTAINER_ID and want to create context 1 with a admin user CONTEXTADMIN, password CONTEXTADMIN_PASSWORD and CONTEXTADMIN_EMAIL :

docker exec -it CONTAINER_ID /createcontext  -c 1 -u CONTEXTADMIN  -p CONTEXTADMIN_PASSWORD -e $CONTEXTADMIN_EMAIL 

Then you can use the usual openXchange scripts to add users:

docker exec -it CONTAINER_ID /opt/open-xchange/sbin/createuser -c 1 -A CONTEXTADMIN -P CONTEXTADMIN_PASSWORD -u USER_NAME -p USER_PASSWORD -e USER_EMAIL

see http://oxpedia.org/wiki/index.php?title=AppSuite:Context_management for more details on OpenXchange user management.

bejonwe
2 years ago

Looks great as far as I could test it because I didn't know the login. So what are the login details for this docker image?