Re: Tomcat app within docker container

2020-01-12 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Peter, On 1/10/20 8:06 AM, logo wrote: > Alex, > > Am 2020-01-10 12:47, schrieb Alex K: >> Just to follow-up on this in case it will be useful to anyone, I >> managed to use also the official tomcat image. I had to amend my >> .war files and use

Re: Tomcat app within docker container

2020-01-10 Thread Alex K
Thanx Logo, On Fri, Jan 10, 2020 at 3:06 PM logo wrote: > Alex, > > Am 2020-01-10 12:47, schrieb Alex K: > > Just to follow-up on this in case it will be useful to anyone, I > > managed to > > use also the official tomcat image. I had to amend my .war files and > > use > > the openjdk:8-jdk

Re: Tomcat app within docker container

2020-01-10 Thread logo
Alex, Am 2020-01-10 12:47, schrieb Alex K: Just to follow-up on this in case it will be useful to anyone, I managed to use also the official tomcat image. I had to amend my .war files and use the openjdk:8-jdk version instead of openjdk:11-jdk. I have used the following Docker files to

Re: Tomcat app within docker container

2020-01-10 Thread Martynas Jusevičius
Why build the webapp outside Docker? It means that docker build is not enough to give you an image, it needs some extra steps beforehand. On Fri, Jan 10, 2020 at 12:47 PM Alex K wrote: > > Just to follow-up on this in case it will be useful to anyone, I managed to > use also the official tomcat

Re: Tomcat app within docker container

2020-01-10 Thread Alex K
Just to follow-up on this in case it will be useful to anyone, I managed to use also the official tomcat image. I had to amend my .war files and use the openjdk:8-jdk version instead of openjdk:11-jdk. I have used the following Docker files to prepare my custom tomcat image (so as to have tomcat

Re: Tomcat app within docker container

2020-01-10 Thread Alex K
Hi, On Thu, Jan 9, 2020 at 7:50 PM Mark Eggers wrote: > Alex, > > On 1/9/2020 8:51 AM, Alex K wrote: > > Hi all, > > > > I have two .war files that when deployed at a plain Debian 9 VM are > working > > fine. > > I have prepared a docker file so as to deploy the same apps within a > docker > >

Re: Tomcat app within docker container

2020-01-10 Thread Alex K
Hi Logo, On Thu, Jan 9, 2020 at 7:40 PM logo wrote: > Hi Alex, > > > > > Am 09.01.2020 um 17:51 schrieb Alex K : > > > > Hi all, > > > > I have two .war files that when deployed at a plain Debian 9 VM are > working > > fine. > > I have prepared a docker file so as to deploy the same apps within

Re: [OT] Tomcat app within docker container

2020-01-09 Thread logo
Martynas, > Am 09.01.2020 um 23:12 schrieb Martynas Jusevičius : > > Forget Kubernetes for now :) > > My recipe is using a multi-stage build. Very crudely: > > FROM maven as maven > # build your webapp into a .war > mvn clean install > > FROM tomcat > COPY --from=maven /webapp/target/ROOT

Re: [OT] Tomcat app within docker container

2020-01-09 Thread Martynas Jusevičius
Forget Kubernetes for now :) My recipe is using a multi-stage build. Very crudely: FROM maven as maven # build your webapp into a .war mvn clean install FROM tomcat COPY --from=maven /webapp/target/ROOT webapps/ROOT/ It copies the whole folder from the build directory rather than the .war

Re: [OT] Tomcat app within docker container

2020-01-09 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Pater, On 1/9/20 12:39 PM, logo wrote: >> Am 09.01.2020 um 17:51 schrieb Alex K : >> >> Hi all, >> >> I have two .war files that when deployed at a plain Debian 9 VM >> are working fine. I have prepared a docker file so as to deploy >> the same

Re: Tomcat app within docker container

2020-01-09 Thread Mark Eggers
Alex, On 1/9/2020 8:51 AM, Alex K wrote: > Hi all, > > I have two .war files that when deployed at a plain Debian 9 VM are working > fine. > I have prepared a docker file so as to deploy the same apps within a docker > container and for some reason one of the apps is not loading due to some >

Re: Tomcat app within docker container

2020-01-09 Thread logo
Hi Alex, > Am 09.01.2020 um 17:51 schrieb Alex K : > > Hi all, > > I have two .war files that when deployed at a plain Debian 9 VM are working > fine. > I have prepared a docker file so as to deploy the same apps within a docker > container and for some reason one of the apps is not loading

Tomcat app within docker container

2020-01-09 Thread Alex K
Hi all, I have two .war files that when deployed at a plain Debian 9 VM are working fine. I have prepared a docker file so as to deploy the same apps within a docker container and for some reason one of the apps is not loading due to some error. Dockerfile: FROM debian:latest USER root ENV