stringer-rss / stringer

A self-hosted, anti-social RSS reader.
MIT License
3.94k stars 396 forks source link

Is it possible to just have the main container check to see if the setup is required to be ran? #1140

Open Leopere opened 10 months ago

Leopere commented 10 months ago

bootstrap containers are horrible and very inconvenient. they're incompatible with lots of docker deployment systems as well is it possible to just have start.sh or something added to the main container that can test the requisite things in the database or whatever to determine if its necessary to run the setup and if its already good just run the container.

mockdeep commented 10 months ago

@Leopere thanks for the feedback. I'm not super familiar with docker, so it's a little hard for me to imagine how this might look. If you are willing to put up a PR that makes this happen, I think it would be easier to discuss it there. @guidopetri has been putting some work into our docker support, so he might have some thoughts, too.

guidopetri commented 10 months ago

We had a lot of discussion about this in https://github.com/stringer-rss/stringer/pull/1091 , and settled on that idea. I'm curious why you say:

bootstrap containers are horrible and very inconvenient

I can see why they're incompatible with docker deployment systems, but for someone with that depth of knowledge with docker, isn't it easier to set up your own docker compose file?

Leopere commented 10 months ago

It just means I’ll have to build a staging environment just for the initial bootstrap then ship it out to production in a super janky way.