April 28, 2016 at 10:20 am #10108
Hi , We are successfull set up a openam with opendj Docker . How can we automate the deployment with Terraform for AWS EC2 . The most important issue now is that , for some reason OpenAM crashes for every 3 weeks .
When we log into the EC2 , the docker hangs and we loose all data including realms , subject , Agents every thing . We need to create a new EC2 , and up the Docker from scratch .
Can you please suggest the below :
1) Data persistence using Dockers ( how to keep the data in OPENDJ ) ???
2) AWS EC2 deployment best practices for OpenAM and OPENDJ
3) Automating OpenAM first time configurationApril 28, 2016 at 5:31 pm #10128Warren StrangeParticipant
For data persistence you should be keeping all writable data (example: DJ configuration and database) on mounted docker volumes – not within the Docker image itself.
Automating OpenAM configuration is harder than it should be, and we are working to address that in future releases. Stay tuned.
Using some kind of container orchestration layer is important – to monitor and restart containers. There are some basic Kubernetes manifests located https://github.com/ForgeRock/fretes. Please have a look at those.May 3, 2016 at 7:46 am #10192
hi , I’m trying to backup /opt/opendj/instances/instance1 , and mount a docker volume on EC2 . but this folder seems to be empty .
is this the correct folder ? please suggest .May 3, 2016 at 7:48 am #10193
also , what about load balancing , suggested Launch configuration for opendj , openam and resttoldap on AWS ?May 3, 2016 at 3:17 pm #10203Warren StrangeParticipant
We recently changed the openDJ image to write data to /opt/opendj/data – so please try mounting a volume on that. Have a look at the Dockerfile – you may have to adjust to suit your needs.
There is a Docker compose file that demonstrates a CTS setup
That might be a good starting point.
We don’t have load balancing, or more complex configurations at this point. Work in progress – but pull requests are most welcome!
- This reply was modified 5 years, 4 months ago by Warren Strange.
You must be logged in to reply to this topic.