2014-05-31 17:25:18 +00:00
|
|
|
# https://index.docker.io/_/fedora/
|
|
|
|
FROM fedora:rawhide
|
|
|
|
|
|
|
|
# http://jumanjiman.github.io/
|
|
|
|
MAINTAINER Paul Morgan <jumanjiman@gmail.com>
|
|
|
|
|
2017-01-06 11:01:17 -05:00
|
|
|
# Run an update to work around https://bugzilla.redhat.com/show_bug.cgi?id=1409590
|
|
|
|
# TODO: remove this once the Rawhide base image is updated
|
|
|
|
RUN dnf -y update
|
2017-04-01 15:04:11 -04:00
|
|
|
# Install build dependencies including python2 deps for testing.
|
|
|
|
RUN dnf -y install \
|
2017-01-06 11:01:17 -05:00
|
|
|
'dnf-command(builddep)' \
|
2017-04-01 15:04:11 -04:00
|
|
|
git-annex \
|
2020-01-30 12:57:28 +01:00
|
|
|
python3-devel \
|
2017-04-01 15:04:11 -04:00
|
|
|
python3-mock \
|
|
|
|
python3-nose \
|
2020-01-13 09:04:38 +01:00
|
|
|
python3-blessed \
|
2020-01-30 13:30:14 +01:00
|
|
|
python3-pycodestyle \
|
2017-12-07 11:12:11 -04:00
|
|
|
rsync \
|
2017-04-09 11:17:52 -04:00
|
|
|
createrepo_c
|
2015-05-08 15:59:35 -03:00
|
|
|
|
2014-05-31 17:25:18 +00:00
|
|
|
RUN useradd sandbox
|
2015-05-08 15:59:35 -03:00
|
|
|
RUN git config --system user.email "sandbox@example.com"
|
|
|
|
RUN git config --system user.name "sandbox"
|
2014-05-31 17:25:18 +00:00
|
|
|
|
2015-05-12 16:07:04 -03:00
|
|
|
# NOTE: runtests.sh hard-links tito.spec into this directory on-the-fly
|
|
|
|
# to work around https://github.com/dotcloud/docker/issues/1676
|
|
|
|
ADD tito.spec /tmp/tito.spec
|
|
|
|
|
2017-04-01 15:04:11 -04:00
|
|
|
RUN dnf -y builddep /tmp/tito.spec
|
2017-01-05 16:33:59 -05:00
|
|
|
RUN dnf clean all
|
2015-05-12 16:07:04 -03:00
|
|
|
|
2014-05-31 17:25:18 +00:00
|
|
|
USER sandbox
|
|
|
|
VOLUME ["/home/sandbox"]
|
|
|
|
WORKDIR /home/sandbox
|
|
|
|
|
|
|
|
ENV LANG C
|
|
|
|
CMD ["/bin/bash"]
|