-
Notifications
You must be signed in to change notification settings - Fork 472
Conversation
Cool! I had to add I then ran |
It is simpler than #116 and I like that! I see this is for development, right? Otherwise we should think about SSL and secrets configuration and apache+passenger. DB configuration: What's the plan there? Should the user add the portus user and the database to the mariadb container manually? Add "RUN rake db:migrate" I think you are missing installing docker-distribution ,right? may it be this line? RUN apt-get update -qq && apt-get install -y and then I would also add a RUN apt-get update && apt-get upgrade so that there are the latest security fixes but the idea looks great! |
I would say this is pretty sufficient for getting this off the ground for development. Having the ability to specify DB host, user, port, and name secrets via SSL maybe could be accomplished by adding haproxy, or nginx reverse proxy in front. Otherwise just documenting how to mount in certs (via By adding the The Per https://docs.docker.com/articles/dockerfile_best-practices/ doing |
regarding migrations, we could reuse this https://github.com/SUSE/Portus/blob/master/config/environments/production.rb#L80 we should make sure thought database is configured when we start rails.... I wasnt' aware of running apt-get upgrade is not recommended but now I understand why so many images in docker hub have insecure packages... How would you set the ENV variables in production? |
Yes this is for development purposes right now. We can iterate later over it to make it ready for production.
The mariadb automatically creates a root user with the password mentioned inside of the
We cannot do that because at build time the ports container is not linked against the db one. This has to be run manually. This is part of the doc I'm writing.
No, that's on purpose. We can take advantage of the official registry container for that. I have to figure out how to add it to the mix.
These are leftovers , I'm going to drop them as proposed inside of another comment. |
Yep, we can focus on that with a dedicated iteration.
What would be the purpose of that?
Point taken, I'm going to drop them |
You aren't supposed to do that. You should use:
This is documented inside of the doc I'm currently writing. |
This commit adds the possibility to run Portus and its database using docker-compose
I missed that there was a
So all is good here ;) |
Do you imagine that it would be possible also to start the |
LGTM |
Yes, I plan to do that with a separate pull request |
Run Portus using docker-compose
This commit adds the possibility to run Portus and its database using docker-compose. This is a different take for issue #81.
I'll add the documentation tomorrow. In the meantime feel free to comment on it.