Mohammed Naser | 8661577 | 2024-06-01 10:02:09 -0400 | [diff] [blame] | 1 | # SPDX-License-Identifier: Apache-2.0 |
Mohammed Naser | 735efe2 | 2024-06-26 23:46:25 -0400 | [diff] [blame] | 2 | # Atmosphere-Rebuild-Time: 2024-06-26T17:38:39Z |
Mohammed Naser | da99423 | 2024-04-13 12:34:01 -0400 | [diff] [blame] | 3 | |
Mohammed Naser | d4ae9be | 2025-01-15 16:49:44 -0500 | [diff] [blame] | 4 | ARG REGISTRY |
Mohammed Naser | d30f18d | 2024-04-17 01:20:43 -0400 | [diff] [blame] | 5 | ARG RELEASE |
| 6 | |
Mohammed Naser | d4ae9be | 2025-01-15 16:49:44 -0500 | [diff] [blame] | 7 | FROM ${REGISTRY}/openstack-venv-builder:${RELEASE} AS build |
Mohammed Naser | 05795e5 | 2024-06-26 07:52:19 -0400 | [diff] [blame] | 8 | ARG KEYSTONE_GIT_REF=f8f451455fb11fb177148cfb88bed29caf18d38a |
Mohammed Naser | da99423 | 2024-04-13 12:34:01 -0400 | [diff] [blame] | 9 | ADD --keep-git-dir=true https://opendev.org/openstack/keystone.git#${KEYSTONE_GIT_REF} /src/keystone |
| 10 | RUN git -C /src/keystone fetch --unshallow |
| 11 | RUN --mount=type=cache,mode=0755,target=/root/.cache/pip,sharing=private <<EOF bash -xe |
| 12 | pip3 install \ |
| 13 | --constraint /upper-constraints.txt \ |
| 14 | /src/keystone[ldap] \ |
| 15 | keystone-keycloak-backend==0.1.8 |
| 16 | EOF |
| 17 | |
Mohammed Naser | d4ae9be | 2025-01-15 16:49:44 -0500 | [diff] [blame] | 18 | FROM ${REGISTRY}/openstack-python-runtime:${RELEASE} |
Mohammed Naser | da99423 | 2024-04-13 12:34:01 -0400 | [diff] [blame] | 19 | RUN <<EOF bash -xe |
| 20 | apt-get update -qq |
| 21 | apt-get install -qq -y --no-install-recommends \ |
| 22 | apache2 libapache2-mod-wsgi-py3 |
| 23 | apt-get clean |
| 24 | rm -rf /var/lib/apt/lists/* |
| 25 | EOF |
| 26 | ARG MOD_AUTH_OPENIDC_VERSION=2.4.12.1 |
| 27 | ARG TARGETARCH |
| 28 | RUN <<EOF bash -xe |
| 29 | apt-get update -qq |
| 30 | apt-get install -qq -y --no-install-recommends \ |
| 31 | curl |
| 32 | curl -LO https://github.com/OpenIDC/mod_auth_openidc/releases/download/v${MOD_AUTH_OPENIDC_VERSION}/libapache2-mod-auth-openidc_${MOD_AUTH_OPENIDC_VERSION}-1.$(lsb_release -sc)_${TARGETARCH}.deb |
| 33 | apt-get install -y --no-install-recommends ./libapache2-mod-auth-openidc_${MOD_AUTH_OPENIDC_VERSION}-1.$(lsb_release -sc)_${TARGETARCH}.deb |
| 34 | a2enmod auth_openidc |
| 35 | apt-get purge -y --auto-remove curl |
| 36 | apt-get clean |
| 37 | rm -rfv /var/lib/apt/lists/* libapache2-mod-auth-openidc_${MOD_AUTH_OPENIDC_VERSION}-1.$(lsb_release -sc)_${TARGETARCH}.deb |
| 38 | EOF |
| 39 | COPY --from=build --link /var/lib/openstack /var/lib/openstack |