Advertisement
Guest User

Dockerfile

a guest
Jul 10th, 2016
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.05 KB | None | 0 0
  1. FROM python:2.7.11-alpine
  2. MAINTAINER Sa Phi <saphi070@gmail.com>
  3. # Install package dependencies
  4. RUN apk add --no-cache python py-pip python-dev python3-dev git musl-dev libxml2-dev \
  5. libxslt-dev libffi-dev openssl-dev libldap libsasl build-base linux-headers\
  6. && rm -rf /var/cache/apk/*
  7.  
  8.  
  9. #clone source code
  10. WORKDIR /home
  11. RUN git clone https://github.com/openstack/keystone.git -b stable/mitaka
  12.  
  13. #install python library
  14. WORKDIR /home/keystone
  15. RUN pip install -r requirements.txt
  16.  
  17. #install
  18. RUN mkdir /etc/keystone && cp -R etc/logging.conf.sample /etc/keystone/logging.conf && \
  19. cp etc/keystone-paste.ini etc/policy.json etc/default_catalog.templates /etc/keystone/
  20. RUN python setup.py install
  21. COPY keystone.conf /etc/keystone/
  22.  
  23. #install apache2
  24. RUN apk add --no-cache apache2 apache2-mod-wsgi apache2-utils
  25. RUN cp httpd/wsgi-keystone.conf /etc/apache2/conf.d/
  26. RUN pip install pymysql
  27.  
  28. COPY config.sh entrypoint.sh /home/
  29. RUN chmod a+x /home/*
  30.  
  31. RUN rm -r /home/keystone
  32. EXPOSE 5000
  33. EXPOSE 35357
  34. #ENTRYPOINT ["/home/entrypoint.sh"]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement