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 | d30f18d | 2024-04-17 01:20:43 -0400 | [diff] [blame] | 4 | ARG RELEASE |
| 5 | |
| 6 | FROM registry.atmosphere.dev/library/openstack-venv-builder:${RELEASE} AS build |
Mohammed Naser | 05795e5 | 2024-06-26 07:52:19 -0400 | [diff] [blame] | 7 | ARG KEYSTONE_GIT_REF=f8f451455fb11fb177148cfb88bed29caf18d38a |
Mohammed Naser | da99423 | 2024-04-13 12:34:01 -0400 | [diff] [blame] | 8 | ADD --keep-git-dir=true https://opendev.org/openstack/keystone.git#${KEYSTONE_GIT_REF} /src/keystone |
| 9 | RUN git -C /src/keystone fetch --unshallow |
| 10 | RUN --mount=type=cache,mode=0755,target=/root/.cache/pip,sharing=private <<EOF bash -xe |
| 11 | pip3 install \ |
| 12 | --constraint /upper-constraints.txt \ |
| 13 | /src/keystone[ldap] \ |
| 14 | keystone-keycloak-backend==0.1.8 |
| 15 | EOF |
| 16 | |
Mohammed Naser | d30f18d | 2024-04-17 01:20:43 -0400 | [diff] [blame] | 17 | FROM registry.atmosphere.dev/library/openstack-python-runtime:${RELEASE} |
Mohammed Naser | da99423 | 2024-04-13 12:34:01 -0400 | [diff] [blame] | 18 | RUN <<EOF bash -xe |
| 19 | apt-get update -qq |
| 20 | apt-get install -qq -y --no-install-recommends \ |
| 21 | apache2 libapache2-mod-wsgi-py3 |
| 22 | apt-get clean |
| 23 | rm -rf /var/lib/apt/lists/* |
| 24 | EOF |
| 25 | ARG MOD_AUTH_OPENIDC_VERSION=2.4.12.1 |
| 26 | ARG TARGETARCH |
| 27 | RUN <<EOF bash -xe |
| 28 | apt-get update -qq |
| 29 | apt-get install -qq -y --no-install-recommends \ |
| 30 | curl |
| 31 | 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 |
| 32 | apt-get install -y --no-install-recommends ./libapache2-mod-auth-openidc_${MOD_AUTH_OPENIDC_VERSION}-1.$(lsb_release -sc)_${TARGETARCH}.deb |
| 33 | a2enmod auth_openidc |
| 34 | apt-get purge -y --auto-remove curl |
| 35 | apt-get clean |
| 36 | rm -rfv /var/lib/apt/lists/* libapache2-mod-auth-openidc_${MOD_AUTH_OPENIDC_VERSION}-1.$(lsb_release -sc)_${TARGETARCH}.deb |
| 37 | EOF |
| 38 | COPY --from=build --link /var/lib/openstack /var/lib/openstack |