The section describes how Eclipse Kapua docker images can be used.
To learn how to build Kapua Docker images, please consult developer manual.
To learn how to run Kapua in Docker, please consult developer manual.
Navigate your browser to http://localhost:8080 and log in using the following credentials:
kapua-sys
: kapua-password
You can access the API using: http://localhost:8081
Note: If you are using Docker on Windows the hostname will most likely not be localhost
but
the IP address of your docker instance.
Note: This is only a setup for testing SSO support.
You can also start a Keycloak instance in addition:
docker run -td --name sso -p 8082:8080 -e KEYCLOAK_USER=admin -e KEYCLOAK_PASSWORD=secret jboss/keycloak
Starting the kapua-console
image with the following command line instead:
docker run -td --name kapua-console --link sso --link kapua-sql:db --link kapua-broker:broker --link kapua-elasticsearch:es -p 8080:8080 -e KEYCLOAK_URL=http://$(docker inspect --format '{{ .NetworkSettings.IPAddress }}' sso):8080 -e KAPUA_URL=http://localhost:8080 kapua/kapua-console
You will also need to create a new realm named kapua
in the Keycloak web UI and create a new client called console
.
Assigning http://localhost:8080/sso/callback
as a valid redirect URI.
It is also possible to use Tomcat as a web container. For this use the following run commands instead:
docker run -td --name kapua-console --link kapua-sql:db --link kapua-broker:broker --link kapua-elasticsearch:es -p 8080:8080 kapua/kapua-console
docker run -td --name kapua-api --link kapua-sql:db --link kapua-broker:broker --link kapua-elasticsearch:es -p 8081:8080 kapua/kapua-api
Please note that in this case you also have to append /admin
and /api
to the URL.