Skip to content

Allow for direct use of the software. #26

@florisvangeel

Description

@florisvangeel

Introduction:n:
Thank you for maintaining the ESDL standard and creating this piece of software that allows energy consultants and enthusiasts to model their neighborhoods or business parks with energy aware objects for real time simulations of different energy scenarios.

Problem statement:
Currently one needs to be able to build docker-compose as well as Keycloak in order to get this software up and running.
There is an old version of Keycloak 11.0.3 (dated May 2021) that does not install.

Solution:
Fortunately i do, thus you'll get a MR to the corrected code.

Summary of Changes in Merge Request
PostgreSQL Initialization:

  • Appended a database provisioning step for Keycloak to the initialization script, loading keycloak.postgres.sql into the keycloak database.
  • Keycloak Configuration: Upgraded Keycloak image from version 11.0.3 to 20.0.3.
  • Replaced deprecated environment variables with the new Keycloak 20+ KC_ prefixed syntax.
  • Mounted a custom configuration file (keycloak.conf) into the container at the appropriate location.
  • Added Docker extra_hosts mapping to resolve host.docker.internal inside the container.

Docker Compose:

  • Updates: Injected proper environment variables for PostgreSQL services related to Keycloak and others.
  • Corrected volume mount paths for the custom configuration.
  • Set the container startup command to start-dev with relaxed hostname checks for development mode.

Keycloak Provisioning:

  • Set the database JDBC URL to point to the host bridge IP, enabling database connectivity from Keycloak.
  • Ensured PostgreSQL accepts external connections from Docker-linked containers.
  • Realm import was tested and confirmed working after resolving a session timeout during initial login.

Additional Fixes

  • Verified the container receives the expected configuration.
  • Removed restart: always to aid debugging during development.
  • Confirmed internal container DNS resolution using getent hosts.

Kind regards
Floris

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions