# Open OnDemand in containers

**URL:** <https://discourse.openondemand.org/t/open-ondemand-in-containers/865>\
**Category:** Feature Requests and Roadmap Discussion\
**Created:** [April 23, 2020, 10:30pm UTC](https://discourse.openondemand.org/t/open-ondemand-in-containers/865 "2020-04-23T22:30:01Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![crbianchi](https://avatars.discourse-cdn.com/v4/letter/c/839c29/32.png) [@crbianchi](https://discourse.openondemand.org/u/crbianchi)\
**Post date:** [April 23, 2020, 10:30pm UTC](https://discourse.openondemand.org/t/open-ondemand-in-containers/865/1 "2020-04-23T22:30:01Z")

</div>

I seem to be running into a situation where removing, uninstalling, and reinstalling OnDemand has become more common for me. I’m under the impression that I should be containerizing my OnDemand builds in order to better my implementation. Is there any tutorial or leads to doing so? I was planning on using docker for my containerization.

---

<div class="post-metadata">

**Author:** ![efranz](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/efranz/32/27_2.png) [@efranz](https://discourse.openondemand.org/u/efranz)\
**Post date:** [April 25, 2020, 1:50am UTC](https://discourse.openondemand.org/t/open-ondemand-in-containers/865/2 "2020-04-25T01:50:34Z")

</div>

We have [https://github.com/osc/ood-images](https://github.com/osc/ood-images), but so far these have been provided for evaluation purposes. I’m unaware of someone using a container to run OnDemand in production. @tdockendorf any thoughts?

---

<div class="post-metadata">

**Author:** ![tdockendorf](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/tdockendorf/32/202_2.png) [@tdockendorf](https://discourse.openondemand.org/u/tdockendorf)\
**Post date:** [April 25, 2020, 2:23pm UTC](https://discourse.openondemand.org/t/open-ondemand-in-containers/865/3 "2020-04-25T14:23:38Z")

</div>

The docker directory at [https://github.com/osc/ood-images](https://github.com/osc/ood-images) is just intended as a demo, but it can offer the initial steps needed to build OnDemand into a container. The starting script for launching the container should do a few things, including running `/opt/ood/ood-portal-generator/sbin/update_ood_portal`. If this is for production you’ll need to add volumes for certs and `/etc/ood`.

Why is it you are removing, uninstalling and reinstalling OnDemand?

---

<div class="post-metadata">

**Author:** ![crbianchi](https://avatars.discourse-cdn.com/v4/letter/c/839c29/32.png) [@crbianchi](https://discourse.openondemand.org/u/crbianchi)\
**Post date:** [April 27, 2020, 10:55pm UTC](https://discourse.openondemand.org/t/open-ondemand-in-containers/865/4 "2020-04-27T22:55:17Z")

</div>

Ok great I’ll see how the demo works out for me. Right now my use case isn’t meant to be production it’s a proof of concept so I’m not concerned about the production part yet.

In terms of why I seem to be removing, uninstalling, and reinstalling a lot more…I tend to run into mainly httpd24 apache issues where the troubleshooting info is pretty vague and It’s really not giving much to work with which is difficult to troubleshoot. I’m under the impression that it’s taking longer to try and troubleshoot the apache then it does to restart and get back to where I was with the installation, and configuring of OnDemand.

---

<div class="post-metadata">

**Author:** ![westburg.2](https://avatars.discourse-cdn.com/v4/letter/w/0ea827/32.png) [@westburg.2](https://discourse.openondemand.org/u/westburg.2)\
**Post date:** [May 26, 2022, 4:11pm UTC](https://discourse.openondemand.org/t/open-ondemand-in-containers/865/5 "2022-05-26T16:11:37Z")

</div>


