lmihaiescu

Untitled

Sep 7th, 2017
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. # Download base image ubuntu 16.04
  2. FROM ubuntu:16.04
  3. # Add the Ocata repo
  4. RUN apt-get update && apt-get install -y software-properties-common \
  5. apt-transport-https \
  6. ca-certificates \
  7. curl \
  8. software-properties-common
  9. RUN add-apt-repository cloud-archive:ocata
  10.  
  11. # Update Ubuntu Software repository RUN apt-get update && apt-get -y dist-upgrade
  12. RUN apt-get -y install openstack-dashboard apache2 libapache2-mod-wsgi python-memcache
  13. RUN apt-get -y purge openstack-dashboard-ubuntu-theme
  14.  
  15. EXPOSE 80
  16.  
  17. # Run apache in the foreground
  18. RUN sed -i '1a APACHE_ARGUMENTS=-DFOREGROUND' /usr/sbin/apache2ctl
  19.  
  20. # add bootstrap script and make it executable
  21.  
  22. COPY bootstrap.sh /etc/bootstrap.sh
  23. RUN chown root.root /etc/bootstrap.sh
  24. RUN chmod 744 /etc/bootstrap.sh
  25. ENTRYPOINT ["/etc/bootstrap.sh"]
Advertisement
Add Comment
Please, Sign In to add comment