Advertisement
Guest User

Untitled

a guest
Oct 19th, 2017
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.97 KB | None | 0 0
  1. FROM fedora:26
  2. RUN dnf -y install 'dnf-command(config-manager)'
  3. RUN dnf config-manager --add-repo http://repos.fedorapeople.org/
  4.  
  5. RUN dnf update -y --refresh && dnf install -y pulp-rpm-plugins pulp-docker-plugins \
  6. pulp-ostree-plugins pulp-puppet-plugins pulp-python-plugins \
  7. python-qpid python-qpid-qmf qpid-tools python-gofer-qpid && dnf clean all
  8.  
  9. EXPOSE 80
  10.  
  11. # delete default and link to where the secret gets mounted
  12. RUN rm /etc/pulp/server.conf
  13. RUN ln -s /var/run/secrets/pulp/pulp-config/server.conf /etc/pulp/server.conf
  14.  
  15. # delete original and link to where the secret gets mounted
  16. RUN rm /etc/pki/pulp/rsa*
  17. RUN ln -s /var/run/secrets/pulp/pulp-config/rsa.key /etc/pki/pulp/rsa.key
  18. RUN ln -s /var/run/secrets/pulp/pulp-config/rsa_pub.key /etc/pki/pulp/rsa_pub.key
  19.  
  20. # This script should be run once per deployment before anything else.
  21. ADD setup.sh /setup.sh
  22.  
  23. ADD run-apache.sh /run-apache.sh
  24. RUN chmod -v +x /run-apache.sh
  25.  
  26. CMD ["/run-apache.sh"]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement