News for hackers. Stuff that matters.
Re:CapRover: Build your own PaaS by xu6ahb8E on Tuesday June 09, 2020 @07:54AM (#23465792)
dokku is also meant to build a custom image on deploy : rather than using heroku's buildpacks, you can put a Dockerfile at the root of your project and it will be used instead.

So basically, you could put a Dockerfile file container just FROM and MAINTAINER, referring the image you want to use in the FROM, and dokku will download and execute it on `git push` (provided it can access to the image repository).

Re:CapRover: Build your own PaaS by Longwelwind on Sunday June 14, 2020 @02:55PM (#23520265)
This is good at first, but I deployed on a very small machine, that couldn't handle the live application + the Docker image being built, thus why I wanted to build the image in my CI pipelines.
Re:CapRover: Build your own PaaS by hardwaresofton on Sunday June 14, 2020 @10:55PM (#23523350)
+1 for this -- requiring the docker image to be built/managed on the machine it's being deployed on is the simpler architectural choice (easier to debug, etc), but it doesn't necessarily make sense for production.

I wonder if there's a ticket about this on dokku already

[EDIT] - Couldn't find anything... Some tickets about how the containers are built and changing the base image but not much about.

I wonder if you could jury rig something like kraken[0] and make sure wherever your building images is a peer or something... Of course the simpler solution might be to add a CI step that just pushes the image (via the working `docker save` method) to the deployment machine(s)? Maybe if you have a staging environment, let CI push there, then if that machine is peered (via something like kraken) with production, production will get the image (though it may never run the image).

[0]: https://github.com/uber/kraken

Re:CapRover: Build your own PaaS by josegonzalez on Sunday June 28, 2020 @01:14AM (#23666883)
You can deploy a custom image via the `tags` plugin.