Sign inSign up

taskdata/centos-7-systemd-tomcat

By taskdata

•Updated about 9 years ago

Base image for war and rpm applications under tomcat

Image
0

272

taskdata/centos-7-systemd-tomcat repository overview

⁠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.

Tag summary

Content type

Image

Digest

Size

136.5 MB

Last updated

about 9 years ago

docker pull taskdata/centos-7-systemd-tomcat