Code Monkey home page Code Monkey logo

Comments (5)

chase-moskal avatar chase-moskal commented on July 18, 2024 1

@nmaro — i think it's a really interesting topic.. bear with me as i'm not highly experienced with docker but i think i grasp the principal — here's some of my thinking about it

  • i believe we could create an ooth-standalone base docker image

  • devs could then make their own my-ooth-app docker image, which extends the ooth-standalone base image

  • my-ooth-app can then copy in various configurations and plugins

    COPY ooth-config.json /ooth/           # copy in project ooth config
    COPY ooth-plugins/ /ooth/ooth-plugins/ # copy in project ooth plugins
    CMD ["ooth-standalone"]                # start running the ooth app
    
  • i'm imagining that there'd be a standard ooth-standalone docker-compose file which lays out the other containers which are networked together with the ooth-standalone container, such as a mongodb container for the database, etc

    • i'm guessing the dev would copy this docker-compose file and modify it, to use my-ooth-app as the docker image in place of ooth-standalone — then they are free to replace other images like the one for mongodb or add other ones that work with their plugins, etc

for those who are not using docker

  • ooth-standalone could also be distributed as an npm package which acts as a cli tool, allowing the user to pass a config file and plugins directory
    • ooth-standalone --config="ooth-config.json" --plugins="ooth-plugins/"

from ooth.

nickredmark avatar nickredmark commented on July 18, 2024 1

Hey @chase-moskal I finally pushed dockerized examples:

https://github.com/nmaro/ooth/tree/master/examples/standalone
https://github.com/nmaro/ooth/tree/master/examples/integrated

For now there are no published standard images (the builds are all local), but it's a start. To a certain degree it could be argued that a standard ooth image is not needed because it's basically just about importing the library and configuring it.
If you have ideas for where to go from there create a new issue, since this is about next.js.

from ooth.

chase-moskal avatar chase-moskal commented on July 18, 2024

of course, it would be ideal if an ooth standalone was dockerized, obviously related to pr #26

from ooth.

nickredmark avatar nickredmark commented on July 18, 2024

Hey @chase-moskal I think the most complex part of this (and the main reason why I haven't implemented this) is configuration. How do you configure your own version of ooth with your own plugins with their own configs, but pack it in a standardized docker image? I don't really know a good strategy to do this.

from ooth.

chase-moskal avatar chase-moskal commented on July 18, 2024

reading up on #26 some more, i'm seeing that the conversation about mounting the config directory is probably a more proper way to bring configuration into the ooth-standalone image — i think users will be able to simply mount the config directory, which can include plugins

it's kind of looking like #26 is great, and does most of what we're talking about already

from ooth.

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.