Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- FROM python:2.7.11-alpine
- MAINTAINER Sa Phi <saphi070@gmail.com>
- # Install package dependencies
- RUN apk add --no-cache python py-pip python-dev python3-dev git musl-dev libxml2-dev \
- libxslt-dev libffi-dev openssl-dev libldap libsasl build-base linux-headers\
- && rm -rf /var/cache/apk/*
- #clone source code
- WORKDIR /home
- RUN git clone https://github.com/openstack/keystone.git -b stable/mitaka
- #install python library
- WORKDIR /home/keystone
- RUN pip install -r requirements.txt
- #install
- RUN mkdir /etc/keystone && cp -R etc/logging.conf.sample /etc/keystone/logging.conf && \
- cp etc/keystone-paste.ini etc/policy.json etc/default_catalog.templates /etc/keystone/
- RUN python setup.py install
- COPY keystone.conf /etc/keystone/
- #install apache2
- RUN apk add --no-cache apache2 apache2-mod-wsgi apache2-utils
- RUN cp httpd/wsgi-keystone.conf /etc/apache2/conf.d/
- RUN pip install pymysql
- COPY config.sh entrypoint.sh /home/
- RUN chmod a+x /home/*
- RUN rm -r /home/keystone
- EXPOSE 5000
- EXPOSE 35357
- #ENTRYPOINT ["/home/entrypoint.sh"]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement