[DiscordArchive] would you rather...
[DiscordArchive] would you rather...
Archived author: KJack • Posted: 2023-05-03T20:08:51.215000+00:00
Original source
would you rather...
1) have two run profiles, one for build that only builds and one for run that only runs?
2) have two run profiles, one for build that only builds and one for run that builds and runs?
3) one run profile (simpler) that always builds and then runs?
Archived author: KJack • Posted: 2023-05-03T20:09:38.470000+00:00
Original source
have to do something like `docker compose --profile build up` to make them go if you have multiple profiles. if you do option #3, it's just `docker compose up`.
Archived author: KJack • Posted: 2023-05-03T20:09:57.290000+00:00
Original source
I'll front it all through acore.sh, but I anticipate some people will skip that.
Archived author: Zozzi • Posted: 2023-05-03T20:19:11.078000+00:00
Original source
I'd go simple first and add complexity later as needed
Archived author: KJack • Posted: 2023-05-03T20:19:59.409000+00:00
Original source
easy enough to add and remove profiles, just different operational models. I CAN think of some situations where I might want to build but not run.
Archived author: Zozzi • Posted: 2023-05-03T20:38:54.467000+00:00
Original source
I do like the idea of baking it into the docker-compose file.
Archived author: Zozzi • Posted: 2023-05-03T20:39:57.026000+00:00
Original source
IMHO acore.sh should just automate the selection of the right profile.
Archived author: Zozzi • Posted: 2023-05-03T20:40:21.214000+00:00
Original source
That would also make it a little more out of the box from a docker perspective.
Archived author: Zozzi • Posted: 2023-05-03T20:42:00.321000+00:00
Original source
I guess that's not too far off the existing docker-compose.
Archived author: mynameismeat • Posted: 2023-05-03T21:21:50.828000+00:00
Original source
I'd actually prefer to forgo profiles entirely. It doesn't really add anything imo in this case