This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| docker build -t pulp/pulp-fixtures . | |
| docker run -d -p 8000:80 pulp/pulp-fixtures | |
| curl localhost:8000/fixtures/file/PULP_MANIFEST |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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