Hi, sorry for the noobie question here. I can follow along on the website and get my shiny apps up and running. But the only app that works is the last one I deployed. My guess is I’m not changing something important in the Dockerfile, but I don’t know what I could be missing. I’m working on Windows 10.
My process looks like this, using the euler demo app and 1 other example app:
- Follow all the steps in the Deploying Apps guide to get the Euler app running. Everything looks good.
- Copy the files in the Euler folder (Dockerfile, README, Rprofile, and an unnamed text file) into the folder containing my other app. (The other app is in another folder there - like the euler app is in a folder within the folder containing the DockerFile in the euler demo).
- Edit the Dockerfile.
RUN mkdir /root/euler
COPY euler /root/euler
RUN mkdir /root/MyApp1
COPY FolderWithMyApp1 /root/MyApp1
and change from:
CMD [“R”, “-e”, “shiny::runApp(’/root/euler’)”]
CMD [“R”, “-e”, “shiny::runApp(’/root/MyApp1’)”]
From Docker, navigate to the folder with the new DockerFile, and run:
docker build -t openanalytics/shinyproxy-template .
Edit the application.yml file. Add a block like:
- name: MyApp1
description: This is an App. It’s neat.
docker-cmd: [“R”, “-e”, “shiny::runApp(’/root/MyApp1’)”]
I can then run shinyproxy, and myApp1 works just fine. But the euler app no longer works. I get an Error: Status Code 500. Container did not respond in time.
I can go back to the euler app working by navigating to that folder in docker and running docker build -t openanalytics/shinyproxy-template ., but MyApp1 then no longer works. What is happening here? The other demo apps always work - the ones run with shinyproxy:: instead of shiny::runApp().