Skip to content
Permalink
Branch: master
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
42 lines (33 sloc) 1.59 KB
# A CentOS7 Stack image using upstream repo
FROM centos:7
MAINTAINER Brian C. Lane <bcl@redhat.com>
# systemd enabled container (from https://hub.docker.com/_/centos/)
ENV container docker
RUN (cd /lib/systemd/system/sysinit.target.wants/; for i in *; do [ $i == \
systemd-tmpfiles-setup.service ] || rm -f $i; done); \
rm -f /lib/systemd/system/multi-user.target.wants/*;\
rm -f /etc/systemd/system/*.wants/*;\
rm -f /lib/systemd/system/local-fs.target.wants/*; \
rm -f /lib/systemd/system/sockets.target.wants/*udev*; \
rm -f /lib/systemd/system/sockets.target.wants/*initctl*; \
rm -f /lib/systemd/system/basic.target.wants/*;\
rm -f /lib/systemd/system/anaconda.target.wants/*;
# lorax-composer depends on a couple of EPEL packages, so install the EPEL repo
RUN rpm -i https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
# 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 https://bcl.fedorapeople.org/welder-web/welder-web-0-0.noarch.rpm
# Include some example recipes
COPY *toml /var/lib/lorax-composer/recipes/
EXPOSE 9090
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
You can’t perform that action at this time.