Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
20 lines (18 sloc) 990 Bytes
# A basic Apache Tomcat server to showcase the CI/CD flow using Jenkins/Docker
# Based on to circumvent the SystemD inside Docker known issue
FROM centos
MAINTAINER Subodh Pachghare version: 0.1 <>
ENV container docker
RUN echo nameserver >> /etc/resolv.conf
RUN yum install -y systemd
RUN yum install -y java-1.8.0-openjdk-headless
RUN (cd /lib/systemd/system/; for i in *; do [ $i == systemd-tmpfiles-setup.service ] || rm -f $i; done); \
rm -f /lib/systemd/system/*;\
rm -f /etc/systemd/system/*.wants/*;\
rm -f /lib/systemd/system/*; \
rm -f /lib/systemd/system/*udev*; \
rm -f /lib/systemd/system/*initctl*; \
rm -f /lib/systemd/system/*;\
rm -f /lib/systemd/system/*
VOLUME ["/sys/fs/cgroup"]
CMD ["/usr/sbin/init"]