# Add apps to containerized docker engine

**URL:** <https://support.openanalytics.eu/t/add-apps-to-containerized-docker-engine/704>\
**Category:** ShinyProxy\
**Created:** [August 29, 2018, 12:59pm UTC](https://support.openanalytics.eu/t/add-apps-to-containerized-docker-engine/704 "2018-08-29T12:59:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![imre](https://support.openanalytics.eu/user_avatar/support.openanalytics.eu/imre/32/520_2.png) [@imre](https://support.openanalytics.eu/u/imre)\
**Post date:** [August 29, 2018, 12:59pm UTC](https://support.openanalytics.eu/t/add-apps-to-containerized-docker-engine/704/1 "2018-08-29T12:59:00Z")

</div>

Hi Team,

this app is great, thank you for developing it!

I’m trying to add custom shiny applications to a containerized docker engine based on this tutorial: [https://github.com/openanalytics/shinyproxy-config-examples/tree/master/02-containerized-docker-engine](https://github.com/openanalytics/shinyproxy-config-examples/tree/master/02-containerized-docker-engine)

In this case the shinyproxy.jar is also containerized and communicates on a bridge network with the apps (in an other image). The tutorial is straightforward and works flawlessly for the demo applications which are built into the shinyproxy-demo image already. But I’m not able to add more apps…

In this scenario, the apps have to be converted into shinyproxy functions (if I understood correctly), like shinyproxy::run\_01\_hello(). This is done via the [shinyproxy\_0.0.1.tar.gz] installation inside the shinyproxy-demo image (R CMD INSTALL …tar.gz). It copies the files from the site-library/shiny/example folder to a temp folder.

I added new app.R files to the image, into the site-library folder. The build runs successfully, apps are converted and referenced in the application.yml. The new apps are listed but not loaded… Probably I missed something during the package installation when apps are converted into shinyproxy functions…

If anyone…  
Thanks in advance,  
Imre

---

<div class="post-metadata">

**Author:** ![mnazarov](https://support.openanalytics.eu/user_avatar/support.openanalytics.eu/mnazarov/32/216_2.png) [@mnazarov](https://support.openanalytics.eu/u/mnazarov)\
**Post date:** [August 30, 2018, 11:48am UTC](https://support.openanalytics.eu/t/add-apps-to-containerized-docker-engine/704/2 "2018-08-30T11:48:47Z")

</div>

Hi Imre,

> [@imre](#):
>
> In this scenario, the apps have to be converted into shinyproxy functions (if I understood correctly),

There might be some confusion due to the fact that the demo R package is also called `shinyproxy`… In fact this is just an R package that contains two example shiny applications and functions to run them. For your own application you don’t have to wrap them in an R package, and you don’t need to use R package `shinyproxy`. So you would need to copy your application files (or package) and then adjust the RUN command to be something like `shiny::runApp("/path/to/app")` instead of `shinyproxy::run_01_hello()`.  
Hope this helps.

---

<div class="post-metadata">

**Author:** ![imre](https://support.openanalytics.eu/user_avatar/support.openanalytics.eu/imre/32/520_2.png) [@imre](https://support.openanalytics.eu/u/imre)\
**Post date:** [August 30, 2018, 12:43pm UTC](https://support.openanalytics.eu/t/add-apps-to-containerized-docker-engine/704/3 "2018-08-30T12:43:40Z")

</div>

That is much simplier in this case. Thanks mnazarov!
