Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation: Docker startup options GitHub Codespaces #453

Open
jhhhnikt opened this issue Sep 14, 2023 · 0 comments
Open

Documentation: Docker startup options GitHub Codespaces #453

jhhhnikt opened this issue Sep 14, 2023 · 0 comments

Comments

@jhhhnikt
Copy link

Underneath the Docker startup options you might want to add a section about running ShinyProxy in GitHub Codespaces.

The key things to make ShinyProxy to work in GitHub Codespaces are to add docker-in-docker (or docker-outside-of-docker but I have not tested this) and use socat to allow for connections on port 2375.

The following illustrates the steps to make ShinyProxy run in GitHub Codespaces.

  1. Add the docker-in-docker feature in devcontainer.json.
  2. Rebuild container.
  3. Run sudo apt-get update && sudo apt-get install -y socat.
  4. Run socat -d -v -d TCP-L:2375,fork UNIX:/var/run/docker.sock. Thanks https://blog.mikesir87.io/2018/10/using-socat-to-see-docker-socket-traffic/
  5. Open a new terminal i VSCode.
  6. wget -P "$HOME" https://www.shinyproxy.io/downloads/shinyproxy-3.0.2.jar
  7. java -jar -Dserver.forward-headers-strategy=native "$HOME/shinyproxy-3.0.2.jar"

Hopefully this might be useful for someone, it took a bit trial and error to figure it out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant