Skip to content

Instantly share code, notes, and snippets.

@daviddavis
Last active January 14, 2020 21:20
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save daviddavis/562569487be1622ac8e05515e8fee385 to your computer and use it in GitHub Desktop.
Save daviddavis/562569487be1622ac8e05515e8fee385 to your computer and use it in GitHub Desktop.
docker build -t pulp/pulp-fixtures .
docker run -d -p 8000:80 pulp/pulp-fixtures
curl localhost:8000/fixtures/file/PULP_MANIFEST
FROM fedora:30
RUN dnf -y install \
git \
createrepo \
docker \
fedpkg \
gpg \
jq \
make \
mock \
patch \
puppet \
python3-jinja2-cli \
rpm-build \
rpm-sign \
rsync \
nginx
RUN gpasswd --add "$(whoami)" mock
RUN newgrp -
RUN git clone --depth=1 https://github.com/pulp/pulp-fixtures.git
# for now, skip making docker fixtures
RUN echo "" > pulp-fixtures/docker/gen-fixtures.sh
# also, mock doesn't seem to work in container (calls mount)
RUN echo "" > pulp-fixtures/rpm-richnweak-deps/gen-rpms.sh
RUN make -C pulp-fixtures fixtures
RUN cp -R pulp-fixtures/fixtures /usr/share/nginx/html/
RUN echo "daemon off;" >> /etc/nginx/nginx.conf
EXPOSE 80
CMD [ "/usr/sbin/nginx" ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment