rpm-ostree/tests/vmcheck/Dockerfile.builder
Jonathan Lebon be3a677125 vmcheck: create a new deployment instead
In order for vmcheck to be useful for testing, we need the machine to be
in a "clean" state. That is, sitting on a commit, ready for being
manipulated.

This is a small step towards this goal. Instead of overwriting the
files, we use rofiles-fuse to safely install and create a new
deployment.

Closes: #321
Approved by: cgwalters
2016-06-15 13:38:34 +00:00

13 lines
699 B
Ruby

FROM centos/tools
ADD atomic-centos-continuous.repo /etc/yum.repos.d/atomic-centos-continuous.repo
RUN yum -y install yum-plugin-priorities sudo && \
yum -y install bash bzip2 coreutils cpio diffutils system-release findutils gawk gcc gcc-c++ \
grep gzip info make patch redhat-rpm-config rpm-build sed shadow-utils tar unzip util-linux \
which xz python gcc \
&& yum-builddep -y rpm-ostree
RUN groupadd -g 1000 vagrant && useradd -u 1000 -g vagrant -G wheel vagrant
RUN echo "%wheel ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
LABEL RUN "/usr/bin/docker run --privileged -ti -v /var/home:/home -v /etc:/host/etc -v /usr:/host/usr \${IMAGE}"
USER vagrant
WORKDIR /home/vagrant/sync