Use docker-compose to run a local development environment

This topic contains 5 replies, has 3 voices, and was last updated by  ardentkurt 5 months ago.

  • Author
    Posts
  • #19232
     plorent 
    Participant

    I’m trying to run OpenAM (5.1.1), OpenDJ (5.0) using docker-compose to run a local development environment.

    version: "2"
    services:
    
      openam:
        container_name: openam
        image: openam:local
        ports:
          - 8040:8080
        links:
          - opendj
        depends_on:
          - opendj
    
      opendj:
        container_name: opendj
        image: opendj:local
        ports:
          - 1389:389

    Both containers run but I cannot get OpenAM to connect to OpenDJ when trying to create a new configuration in OpenAM (Step 4: User Data Store Settings – Could not connect to the server.
    I’m using the forgerock docker repository branch release 5 as the base to generate the containers. How can I let OpenAM connect to OpenDJ?

    #19244
     Warren Strange 
    Participant

    The 5.5 platform binaries have been published. I’d suggest starting with:
    https://stash.forgerock.org/projects/CLOUD/repos/forgeops/browse?at=refs%2Fheads%2Frelease%2F5.5.0

    For your specific issue, I would skip configuration of the user data store in the installer, and add it later once AM is up and running. You can exec into the AM container to find out if it can reach the DJ user store.

    #19248
     plorent 
    Participant

    Hi Warren,

    That’s exactly the thing I’m doing :-)
    I’m running OpenAM and it comes up with the configuration screen. I then create a new configuration and in the section User Store, I try to have it connect to the running OpenDJ instance. Which fails. I’ve looked at adding extra_hosts (which seemed to have solved the issue in the past) in the Docker Compose file but have had no luck yet making the connection to OpenDJ.

    Peter

    #19249
     Warren Strange 
    Participant

    To clarify, are you trying to configure the user store from the configurator screen, or is AM already up and running OK (with an embedded store), and you are attempting to add the user store to the realm?

    I would recommend the later approach.

    #19258
     plorent 
    Participant

    I’m trying to configure the user store from the configurator screen. I’ll try the later approach.

    #23906
     ardentkurt 
    Participant

    Was this ever resolved? How? I am running into the same issue. I am attempting to add the user data store after openam starts up.

    Thanks!

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.

©2019 ForgeRock - we provide an identity and access platform to secure every online relationship for the enterprise market, educational sector and even entire countries. Click to view our privacy policy and terms of use.

Log in with your credentials

Forgot your details?