forked from Jimmy-Xu/learn-keystone
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
34 lines (27 loc) · 881 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
FROM ubuntu:15.04
MAINTAINER tobe tobeg3oogle@gmail.com
RUN apt-get update -y
# Install tools
RUN apt-get install -y git
RUN apt-get install -y python-dev
RUN apt-get install -y python-pip
RUN apt-get install -y libmysqlclient-dev # For MySQL-python
RUN apt-get install -y libpq-dev # For pg_config
RUN apt-get install -y libffi-dev # For ffi.h
RUN pip install python-keystoneclient
# Get Keystone
ADD . /usr/lib/keystone
WORKDIR /usr/lib/keystone
# Build Keystone
RUN easy_install -U pip # For IncompleteRead
RUN pip install -r requirements.txt
RUN python setup.py install
RUN mkdir -p /var/log/keystone/
RUN mkdir -p /etc/keystone/
RUN cp -r ./etc/* /etc/keystone/
RUN mv /etc/keystone/keystone.conf.sample /etc/keystone/keystone.conf
RUN mv /etc/keystone/logging.conf.sample /etc/keystone/logging.conf
RUN keystone-manage db_sync
EXPOSE 5000
EXPOSE 35357
CMD keystone-all