Re: Container packaging

2018-11-26 Thread Rémy Maucherat
On Sat, Nov 24, 2018 at 12:19 AM Mark Thomas  wrote:

> On 23/11/2018 12:57, Rémy Maucherat wrote:
> > On Fri, Nov 23, 2018 at 1:22 PM Mark Thomas  wrote:
>
> 
>
> >> This is a docker image, right?
> >>
> >
> > A bit. There are standard Tomcat images already
> > https://hub.docker.com/_/tomcat/ but they are more complex.
> > So this one is a Maven pom to get an embedded "standalone" Tomcat with
> the
> > specified Tomcat components, it can be used for that (people like Maven).
> > Then there is a simple dockerfile to build a custom image with it. I'll
> > refine it, but I used it to redo the kubernetes testing.
>
> So do should we be aiming to get the POM on Maven central? What about
> the other files? In some sort of archive?
>
> Separately, do we want this git repo somewhere official as far as the
> ASF in concerned? I see no reason why not.
>

Ok, so I have a POM to build a standalone JAR, a readme and the simplest
dockerfile to use the produced packaging. Then it is useful to provide in
some way the base utility webapps (manager, maybe root as a placeholder -
host-manager is probably not super useful since this is for simple services
consisting of maybe a handful webapps) and the config files (right now, it
can use the same as Tomcat standalone). Still trying to figure out the best
options.

Rémy


Re: Container packaging

2018-11-23 Thread Mark Thomas
On 23/11/2018 12:57, Rémy Maucherat wrote:
> On Fri, Nov 23, 2018 at 1:22 PM Mark Thomas  wrote:



>> This is a docker image, right?
>>
> 
> A bit. There are standard Tomcat images already
> https://hub.docker.com/_/tomcat/ but they are more complex.
> So this one is a Maven pom to get an embedded "standalone" Tomcat with the
> specified Tomcat components, it can be used for that (people like Maven).
> Then there is a simple dockerfile to build a custom image with it. I'll
> refine it, but I used it to redo the kubernetes testing.

So do should we be aiming to get the POM on Maven central? What about
the other files? In some sort of archive?

Separately, do we want this git repo somewhere official as far as the
ASF in concerned? I see no reason why not.

Mark

-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



Re: Container packaging

2018-11-23 Thread Rémy Maucherat
On Fri, Nov 23, 2018 at 1:22 PM Mark Thomas  wrote:

> On 22/11/2018 15:45, Rémy Maucherat wrote:
> > Hi,
> >
> > After a bit of experimenting, the docker image works well, and is nicer
> > (IMO) to configure and customize with the embedded updates from 9.0.14. I
> > have verified that Kubernetes based discovery works without being too
> > difficult to configure. Custom code and components can be plugged in
> easily
> > as anything in src/main/java will get compiled and packaged in the jar.
> >
> > https://github.com/rmaucher/tomcat-maven
> >
> > Now, distributing this sort of package is "easy" but is usually done
> with a
> > standalone git repo like this one. Where could I put this packaging
> instead
> > since we probably cannot do that in Tomcat-land ?
>
> This is a docker image, right?
>

A bit. There are standard Tomcat images already
https://hub.docker.com/_/tomcat/ but they are more complex.
So this one is a Maven pom to get an embedded "standalone" Tomcat with the
specified Tomcat components, it can be used for that (people like Maven).
Then there is a simple dockerfile to build a custom image with it. I'll
refine it, but I used it to redo the kubernetes testing.

>
> It should be possible to have an ASF git repo for this. Am I missing
> some blocking issue?
>
> How about Docker Hub for the output?
>

Rémy


Re: Container packaging

2018-11-23 Thread Mark Thomas
On 22/11/2018 15:45, Rémy Maucherat wrote:
> Hi,
> 
> After a bit of experimenting, the docker image works well, and is nicer
> (IMO) to configure and customize with the embedded updates from 9.0.14. I
> have verified that Kubernetes based discovery works without being too
> difficult to configure. Custom code and components can be plugged in easily
> as anything in src/main/java will get compiled and packaged in the jar.
> 
> https://github.com/rmaucher/tomcat-maven
> 
> Now, distributing this sort of package is "easy" but is usually done with a
> standalone git repo like this one. Where could I put this packaging instead
> since we probably cannot do that in Tomcat-land ?

This is a docker image, right?

It should be possible to have an ASF git repo for this. Am I missing
some blocking issue?

How about Docker Hub for the output?

Mark

-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



Container packaging

2018-11-22 Thread Rémy Maucherat
Hi,

After a bit of experimenting, the docker image works well, and is nicer
(IMO) to configure and customize with the embedded updates from 9.0.14. I
have verified that Kubernetes based discovery works without being too
difficult to configure. Custom code and components can be plugged in easily
as anything in src/main/java will get compiled and packaged in the jar.

https://github.com/rmaucher/tomcat-maven

Now, distributing this sort of package is "easy" but is usually done with a
standalone git repo like this one. Where could I put this packaging instead
since we probably cannot do that in Tomcat-land ?

Rémy