That would be great, I can totally see deploying management servers as containers. There may be a few things like attempts to mount NFS secondary storage that may not work but we can look at those.
The main hurdle I have with the existing Dockerfile is that it builds in the entire maven cache, MySQL, and keeps all of the build tools. This makes it very large in size and not ideal for and external MySQL. I think with multi stage builds we can have something similar to an RPM style packaging where we just install the necessary files. I’ll play with that and maybe come up with a PR. I do you know what is up with the Marvin artifact publishing? Did it move or do we not have a source for that? On Wednesday, November 17, 2021, Gabriel Bräscher <gabrasc...@gmail.com> wrote: > Hi Marcus, > > I have never played with the Dockerfile you've mentioned. > I need to double-check on it, but I would like to see CloudStack Docker > images "officially" supported in order to deploy management nodes > (especially for development and testing) and build packages. > > In terms of using Docker to build CloudStack packages, I have used a lot of > the repository from Khosrow Moossav [1]. > I've seen other contributors also using/forking it and eventually applying > changes: [2], [3]. > > Similar to the "cloudstack-deb-builder" [1] there is also the > "cloudstack-rpm-builder" [4]. > > Best Regards, > Gabriel. > > [1] https://github.com/khos2ow/cloudstack-deb-builder > [2] https://github.com/GutoVeronezi/cloudstack-deb-builder > [3] https://github.com/RodrigoDLopez/cloudstack-deb-builder > [4] https://github.com/khos2ow/cloudstack-rpm-builder > > Em qua., 17 de nov. de 2021 às 11:06, Rohit Yadav < > rohit.ya...@shapeblue.com> > escreveu: > > > Hi Marcus, > > > > I'm not sure about others, I don't use docker so can't reply. > > > > I like to build/develop/run/debug management server process outside of > > docker; just using mvn with an IDE for code-development and for attaching > > remote socket for breakpoints and debugging. I use mbx to create dev > boxes ( > > https://github.com/shapeblue/mbx), essentially the hypervisor alone runs > > as a nested VM but my mgmt server, MySQL server and NFS storage is all on > > my workstation. > > > > > > Regards. > > > > ________________________________ > > From: Marcus <shadow...@gmail.com> > > Sent: Wednesday, November 17, 2021 03:00 > > To: dev@cloudstack.apache.org <dev@cloudstack.apache.org> > > Subject: Re: Docker images > > > > I take the silence to perhaps mean that nobody is actively using the > Docker > > image tooling, but maybe the conference was just too much of a > distraction > > last week :-) > > > > Mainly I'm just wondering if I should be trying to improve the old stuff, > > or leaving it be and adding a new Dockerfile. The marvin bit is > secondary. > > > > > > > > > > On Tue, Nov 9, 2021 at 10:15 AM Marcus <shadow...@gmail.com> wrote: > > > > > Hi all, I've been familiarizing myself with the Docker image tooling in > > > CloudStack, and I have a few questions. I've been playing with a > > > multi-stage build that shrinks the image from ~4Gi to ~800Mi, packages > > just > > > the jar, some UI, and a JDK thinking that it might be more usable. > > > > > > 1) Is there anyone actively using these Dockerfiles? It might be > > > interesting to know what workflows they're a part of and whether they > can > > > be changed or if new files should be created. > > > > > > 2) I see the Dockerfile.marvin points to a 'builds.cloudstack.org' to > > > pull a Marvin bundle, which seems to be down. Do these artifacts need > to > > > be moved to 'download.cloudstack.org' or is this just a temporary > > > outage, or is it only reachable from CI? I do see the 'latest' tag > > > pulls (which is three years old). > > > > > >