Coder Social home page Coder Social logo

Comments (13)

dragoonis avatar dragoonis commented on August 25, 2024

@dseynaev

from shinyproxy.

PlasmaPower avatar PlasmaPower commented on August 25, 2024

#33 fixes this by making the default to communicate with docker through the socket.

from shinyproxy.

dragoonis avatar dragoonis commented on August 25, 2024

Update: I am trying unix:///var/run/docker.sock but untested right now

from shinyproxy.

dragoonis avatar dragoonis commented on August 25, 2024

@PlasmaPower

I'm using docker-compose, on a single host btw

if the spotify docker client supports UNIX_SCHEME then why do we still need an external bridge network?

from shinyproxy.

PlasmaPower avatar PlasmaPower commented on August 25, 2024

Shinyproxy still needs to communicate with the underlying containers, not just the docker daemon. The bridge network is for the former.

from shinyproxy.

dragoonis avatar dragoonis commented on August 25, 2024

@PlasmaPower

AFAIK shiny proxy needs to spin up its own containers, and it can do this with the docker daemon socket,

can you educate me on what "underlying containers" means?

from shinyproxy.

PlasmaPower avatar PlasmaPower commented on August 25, 2024

Shinyproxy spins up the containers and then forwards requests to them. For instance, shinyproxy might spin up a container with the name boring_cori. Then, a request to localhost:8080/boring_cori/subpath would be forwarded to /subpath in the container. That requires a network connection.

from shinyproxy.

dragoonis avatar dragoonis commented on August 25, 2024

@PlasmaPower if my shinyproxy and shiny are using docker-compose with their own default bridge network .. will all containers that shinyproxy spins up be in the same network? which network do you attach your boring_cori containers to ?

from shinyproxy.

PlasmaPower avatar PlasmaPower commented on August 25, 2024

@dragoonis You'll have to manually set the docker-network option to the network that docker compose creates. For instance, if the docker-compose.yml is in a folder named example_app, the default network will be named example_app_default.

from shinyproxy.

dragoonis avatar dragoonis commented on August 25, 2024

@PlasmaPower okay - i have tried the unix socket syntax but i was getting permission denied (500) on creating a container, so I modified the docker daemon and now my docker connection string is 172.x.x.x:PORT

The outstanding issue for us (OasisLMF team) is:

The shiny_proxy makes containers on the fly, but we don't know how to correlate the containers made on-the-fly with the containers in the docker-compose network, therefore when we do our teardowns it keeps alive the on-the-fly ones up and running

What can we tweak/do to easily detect which containers were made on the fly, so we can tear them them too?

  • we are loading up in a docker-compose.yml file
  • our docker-compose containers are: flamingo_server, flamingo_shiny and shiny_proxy
  • our teardowns are: docker-compose down -v

from shinyproxy.

dragoonis avatar dragoonis commented on August 25, 2024

@dseynaev

from shinyproxy.

fmichielssen avatar fmichielssen commented on August 25, 2024

Unix sockets can now be used either by specifying docker.host: unix:///var/run/docker.sock or by omitting the docker.host setting entirely.
This functionality was enabled by PR #33 as @PlasmaPower mentioned.

from shinyproxy.

romunov avatar romunov commented on August 25, 2024

@fmichielssen just to be clear, this option could be used instead of url in application.xml?

from shinyproxy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.