| Eduardo Sousa | 3c76174 | 2019-02-05 16:19:31 +0000 | [diff] [blame^] | 1 | # 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 Sousa | 09a1e97 | 2018-09-21 11:06:32 +0100 | [diff] [blame] | 19 | FROM ubuntu:16.04 |
| 20 | |
| 21 | LABEL Maintainer="esousa@whitestack.com" \ |
| 22 | Description="Openstack Keystone Instance" \ |
| 23 | Version="1.0" \ |
| 24 | Author="Eduardo Sousa" |
| 25 | |
| 26 | EXPOSE 5000 |
| 27 | |
| 28 | WORKDIR /keystone |
| 29 | |
| 30 | COPY scripts/start.sh /keystone/start.sh |
| 31 | |
| 32 | RUN apt-get update && \ |
| 33 | apt-get upgrade -y && \ |
| 34 | apt-get autoremove -y && \ |
| 35 | apt-get install -y software-properties-common && \ |
| Eduardo Sousa | 20a8ee6 | 2019-03-29 18:37:59 +0000 | [diff] [blame] | 36 | add-apt-repository -y cloud-archive:pike && \ |
| Eduardo Sousa | 09a1e97 | 2018-09-21 11:06:32 +0100 | [diff] [blame] | 37 | apt-get update && apt dist-upgrade -y && \ |
| 38 | apt-get install -y python-openstackclient keystone apache2 libapache2-mod-wsgi net-tools mysql-client && \ |
| 39 | rm -rf /var/lib/apt/lists/* && \ |
| 40 | chmod +x start.sh |
| 41 | |
| Eduardo Sousa | e8d792a | 2018-10-24 00:26:58 +0100 | [diff] [blame] | 42 | # database |
| 43 | ENV DB_HOST keystone-db |
| 44 | ENV DB_PORT 3306 |
| 45 | ENV ROOT_DB_USER root |
| 46 | ENV ROOT_DB_PASSWORD admin |
| Eduardo Sousa | e8d792a | 2018-10-24 00:26:58 +0100 | [diff] [blame] | 47 | ENV KEYSTONE_DB_PASSWORD admin |
| Eduardo Sousa | c50ed8f | 2019-04-08 17:17:54 +0100 | [diff] [blame] | 48 | # keystone |
| 49 | ENV REGION_ID RegionOne |
| 50 | ENV KEYSTONE_HOST keystone |
| 51 | # admin user |
| 52 | ENV ADMIN_USERNAME admin |
| Eduardo Sousa | e8d792a | 2018-10-24 00:26:58 +0100 | [diff] [blame] | 53 | ENV ADMIN_PASSWORD admin |
| Eduardo Sousa | c50ed8f | 2019-04-08 17:17:54 +0100 | [diff] [blame] | 54 | ENV ADMIN_PROJECT admin |
| 55 | # nbi service user |
| 56 | ENV SERVICE_USERNAME nbi |
| 57 | ENV SERVICE_PASSWORD nbi |
| 58 | ENV SERVICE_PROJECT service |
| Eduardo Sousa | 09a1e97 | 2018-09-21 11:06:32 +0100 | [diff] [blame] | 59 | |
| Eduardo Sousa | 07e8a24 | 2018-10-08 12:49:14 +0100 | [diff] [blame] | 60 | ENTRYPOINT ./start.sh |