1 # Copyright 2021 Whitestack, LLC
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
7 # http://www.apache.org/licenses/LICENSE-2.0
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
15 # For those usages not covered by the Apache License, Version 2.0 please
16 # contact: fbravo@whitestack.com or glavado@whitestack.com
25 COPY scripts/start.sh /keystone/start.sh
27 RUN DEBIAN_FRONTEND=noninteractive apt-get update && \
28 DEBIAN_FRONTEND=noninteractive apt-get upgrade -y && \
29 DEBIAN_FRONTEND=noninteractive apt-get autoremove -y && \
30 DEBIAN_FRONTEND=noninteractive apt-get install -y software-properties-common && \
31 add-apt-repository -y cloud-archive:victoria && \
32 DEBIAN_FRONTEND=noninteractive apt-get update && \
33 DEBIAN_FRONTEND=noninteractive apt-get dist-upgrade -y && \
34 DEBIAN_FRONTEND=noninteractive apt-get install -y \
37 libapache2-mod-wsgi-py3=4.6.* \
39 build-essential=12.8* \
52 dnsutils=1:9.16.* && \
53 rm -rf /var/lib/apt/lists/* && \
56 RUN pip3 install -U pip==21.3.1 && \
57 pip3 install python-ldap==3.2.0 ldappool==3.0.0 python-openstackclient==5.7.0
60 ENV DB_HOST keystone-db
63 ENV ROOT_DB_PASSWORD admin
64 ENV KEYSTONE_DB_PASSWORD admin
66 ENV REGION_ID RegionOne
67 ENV KEYSTONE_HOST keystone
69 ENV ADMIN_USERNAME admin
70 ENV ADMIN_PASSWORD admin
71 ENV ADMIN_PROJECT admin
73 ENV SERVICE_USERNAME nbi
74 ENV SERVICE_PASSWORD nbi
75 ENV SERVICE_PROJECT service
77 # ENV LDAP_AUTHENTICATION_DOMAIN_NAME no default
78 # ENV LDAP_URL ldap://localhost
79 # ENV LDAP_BIND_USER no default
80 # ENV LDAP_BIND_PASSWORD no default
81 # ENV LDAP_CHASE_REFERRALS no default
82 # ENV LDAP_PAGE_SIZE 0
83 # ENV LDAP_USER_TREE_DN no default
84 # ENV LDAP_USER_OBJECTCLASS inetOrgPerson
85 # ENV LDAP_USER_ID_ATTRIBUTE cn
86 # ENV LDAP_USER_NAME_ATTRIBUTE sn
87 # ENV LDAP_USER_PASS_ATTRIBUTE userPassword
88 # ENV LDAP_USER_FILTER no default
89 # ENV LDAP_USER_ENABLED_ATTRIBUTE enabled
90 # ENV LDAP_USER_ENABLED_MASK 0
91 # ENV LDAP_USER_ENABLED_DEFAULT true
92 # ENV LDAP_USER_ENABLED_INVERT false
93 # ENV LDAP_GROUP_OBJECTCLASS groupOfNames
94 # ENV LDAP_GROUP_TREE_DN no default
95 # ENV LDAP_USE_STARTTLS false
96 # ENV LDAP_TLS_CACERT_BASE64 no default
97 # ENV LDAP_TLS_REQ_CERT demand
99 ENTRYPOINT ["./start.sh"]