blob: 8525cb545faa4fdebc557f37e10cc942bf27e564 [file] [log] [blame]
Eduardo Sousa3c761742019-02-05 16:19:31 +00001# Copyright 2018 Whitestack, LLC
2#
3# Licensed under the Apache License, Version 2.0 (the "License"); you may
4# not use this file except in compliance with the License. You may obtain
5# a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
11# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
12# License for the specific language governing permissions and limitations
13# under the License.
14#
15# For those usages not covered by the Apache License, Version 2.0 please
16# contact: esousa@whitestack.com or glavado@whitestack.com
17##
18
Eduardo Sousa09a1e972018-09-21 11:06:32 +010019FROM ubuntu:16.04
20
21LABEL Maintainer="esousa@whitestack.com" \
22 Description="Openstack Keystone Instance" \
23 Version="1.0" \
24 Author="Eduardo Sousa"
25
26EXPOSE 5000
27
28WORKDIR /keystone
29
30COPY scripts/start.sh /keystone/start.sh
31
32RUN apt-get update && \
33 apt-get upgrade -y && \
34 apt-get autoremove -y && \
35 apt-get install -y software-properties-common && \
Eduardo Sousa20a8ee62019-03-29 18:37:59 +000036 add-apt-repository -y cloud-archive:pike && \
Eduardo Sousa09a1e972018-09-21 11:06:32 +010037 apt-get update && apt dist-upgrade -y && \
David Garcia58b0e322020-03-02 14:17:26 +010038 apt-get install -y python-openstackclient keystone apache2 libapache2-mod-wsgi net-tools mysql-client dnsutils && \
David Garcia6fff9af2020-03-23 15:32:43 +010039 apt-get install -y python-pip build-essential python-dev libldap2-dev libsasl2-dev libssl-dev libffi-dev libxml2-dev libxslt1-dev zlib1g-dev ldap-utils && \
40 pip install python-ldap ldappool && \
Eduardo Sousa09a1e972018-09-21 11:06:32 +010041 rm -rf /var/lib/apt/lists/* && \
42 chmod +x start.sh
43
Eduardo Sousae8d792a2018-10-24 00:26:58 +010044# database
45ENV DB_HOST keystone-db
46ENV DB_PORT 3306
47ENV ROOT_DB_USER root
48ENV ROOT_DB_PASSWORD admin
Eduardo Sousae8d792a2018-10-24 00:26:58 +010049ENV KEYSTONE_DB_PASSWORD admin
Eduardo Sousac50ed8f2019-04-08 17:17:54 +010050# keystone
51ENV REGION_ID RegionOne
52ENV KEYSTONE_HOST keystone
53# admin user
54ENV ADMIN_USERNAME admin
Eduardo Sousae8d792a2018-10-24 00:26:58 +010055ENV ADMIN_PASSWORD admin
Eduardo Sousac50ed8f2019-04-08 17:17:54 +010056ENV ADMIN_PROJECT admin
57# nbi service user
58ENV SERVICE_USERNAME nbi
59ENV SERVICE_PASSWORD nbi
60ENV SERVICE_PROJECT service
David Garcia6fff9af2020-03-23 15:32:43 +010061# ldap
62# ENV LDAP_AUTHENTICATION_DOMAIN_NAME no default
63# ENV LDAP_URL ldap://localhost
sousaedu126a4432020-09-23 13:28:25 +010064# ENV LDAP_BIND_USER no default
David Garcia6fff9af2020-03-23 15:32:43 +010065# ENV LDAP_BIND_PASSWORD no default
66# ENV LDAP_USER_TREE_DN no default
67# ENV LDAP_USER_OBJECTCLASS inetOrgPerson
68# ENV LDAP_USER_ID_ATTRIBUTE cn
69# ENV LDAP_USER_NAME_ATTRIBUTE sn
70# ENV LDAP_USER_PASS_ATTRIBUTE userPassword
71# ENV LDAP_USER_FILTER no default
72# ENV LDAP_USER_ENABLED_ATTRIBUTE enabled
73# ENV LDAP_USER_ENABLED_MASK 0
74# ENV LDAP_USER_ENABLED_DEFAULT true
75# ENV LDAP_USER_ENABLED_INVERT false
76# ENV LDAP_USE_STARTTLS false
77# ENV LDAP_TLS_CACERT_BASE64 no default
78# ENV LDAP_TLS_REQ_CERT demand
Eduardo Sousa09a1e972018-09-21 11:06:32 +010079
Eduardo Sousa07e8a242018-10-08 12:49:14 +010080ENTRYPOINT ./start.sh