I have a Centos VM that I use to host Rstudio community edition. On this VM I have both hosted Shiny apps as well as several ad hoc analysis in Rmd html format.
Whenever I create a new Rmd analysis, I would just run
rmarkdown::render_site() and then move the contents of the newly created _site directory to
/var/www/html/project_name. I can then navigate to '/project_name' and view the analysis in my browser. Since this VM is behind a firewall it's safe and I regularly share analysis with stakeholders in Rmd html format (It is hard to convey quite how much I love Rstudio).
For my current project, I am trying to set things up locally with Docker. I am using running Rocker/verse image as a container and have created a project within it that has generated some html in the _site folder.
I tried to install Apache from within the container, actually from within the rstudio instance within the container by using the terminal tab. I tried following this tutorial.
sudo apt update sudo apt install apcache2
That's as far as I got. In the tutorial it says next step is to 'adjust firewall' with
sudo ufw app list. When I run that I get command not found.
I tried visiting localhost/my_project but the page is not found.
After doing some searching I confused myself. I could not tell if I should try to get the apache server working within my container or instead use a separate docker image for apache?
How can I set up my docker container with rstudio inside to be able to host html markdown pages?