-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
30 lines (23 loc) · 998 Bytes
/
Dockerfile
File metadata and controls
30 lines (23 loc) · 998 Bytes
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
FROM alpine:latest
ARG depends="py-pip mariadb-client-libs"
ARG make_depends="build-base git libffi-dev linux-headers mariadb-dev openssl-dev python-dev"
ARG repository="https://git.openstack.org/openstack/keystone.git"
ARG tag="10.0.0"
WORKDIR /opt/keystone
RUN apk add --no-cache $depends\
&& apk add --no-cache $make_depends\
&& git clone $repository .\
&& git checkout -b $tag refs/tags/$tag\
&& pip install --no-cache-dir --upgrade pip\
&& pip install --no-cache-dir .\
&& pip install --no-cache-dir MySQL-python crudini python-memcached uwsgi "kombu<4.0.0"\
&& mkdir -p /etc/keystone\
&& mv etc/* /etc/keystone/\
&& mv /etc/keystone/keystone.conf.sample /etc/keystone/keystone.conf\
&& sed -i "s/ admin_token_auth / /" /etc/keystone/keystone-paste.ini\
&& apk del --no-cache $make_depends\
&& rm -rf /opt/keystone
ADD docker-entrypoint.sh /usr/local/bin
ENTRYPOINT ["docker-entrypoint.sh"]
CMD uwsgi --http :5000 --wsgi-file $(which keystone-wsgi-public)
EXPOSE 5000 35357