Skip to content

Tomcat runned as systemd service on CentOs 7. To speedup create Apps from WAR and RPM artifacts

Notifications You must be signed in to change notification settings

Hubbitus/Docker-centos-7-systemd-tomcat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Docker-centos-7-systemd-tomcat

Base image for fast create app-containers

Automated images available on docker hub

https://hub.docker.com/r/taskdata/docker-centos-7-systemd-tomcat/

Built nesting dockerized apps

Example of Dockerfile for raw war files:

FROM taskdata/docker-centos-7-systemd-tomcat
MAINTAINER Pavel Alexeev
COPY *.war /var/lib/tomcat/webapps/

If you are using rpm (recommended):

FROM taskdata/docker-centos-7-systemd-tomcat
MAINTAINER Pavel Alexeev
COPY *.rpm /
RUN yum install -y /*.rpm \
    && yum clean all

Run and use built app

Unfortunately to run it in un-privileged mode you must provide volume /sys/fs/cgroup from host. F.e.:

docker run -v /sys/fs/cgroup:/sys/fs/cgroup:ro --name lesegais docreg.some.host/lesegais:latest

Then you may access you application.

About

Tomcat runned as systemd service on CentOs 7. To speedup create Apps from WAR and RPM artifacts

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages