Skip to content
Switch branches/tags
Go to file
Cannot retrieve contributors at this time
# A CentOS7 Stack image using upstream repo
FROM centos:7
MAINTAINER Brian C. Lane <>
# systemd enabled container (from
ENV container docker
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/*;
# lorax-composer depends on a couple of EPEL packages, so install the EPEL repo
RUN rpm -i
# Install Cockpit, lorax-composer, and welder-web
RUN yum -y install yum-plugin-copr && \
yum -y copr enable @weldr/lorax-composer && \
yum -y install cockpit less lorax lorax-composer && \
yum clean all && \
systemctl enable cockpit.socket && \
systemctl enable lorax-composer && \
echo "root:ChangeThisLamePassword" | chpasswd
# welder-web is not setup to build from COPR yet, install it directly
RUN rpm -i
# Include some example recipes
COPY *toml /var/lib/lorax-composer/recipes/
VOLUME [ "/sys/fs/cgroup" ]
CMD ["/usr/sbin/init"]
# Run this image with cgroups mounted:
# docker run -ti -v /sys/fs/cgroup:/sys/fs/cgroup:ro --security-opt="label:disable" -p 9090 --rm weldr/centos7-composer