Mohammed Naser | 564caa8 | 2025-01-18 15:49:44 -0500 | [diff] [blame] | 1 | # SPDX-FileCopyrightText: © 2025 VEXXHOST, Inc. |
| 2 | # SPDX-License-Identifier: GPL-3.0-or-later |
Mohammed Naser | 3000423 | 2025-02-20 16:43:21 -0500 | [diff] [blame] | 3 | # Atmosphere-Rebuild-Time: 2025-02-20T21:42:46Z |
Mohammed Naser | da99423 | 2024-04-13 12:34:01 -0400 | [diff] [blame] | 4 | |
Mohammed Naser | 564caa8 | 2025-01-18 15:49:44 -0500 | [diff] [blame] | 5 | FROM ubuntu-cloud-archive AS requirements |
Mohammed Naser | 8ed5c8e | 2025-03-19 23:37:52 -0400 | [diff] [blame] | 6 | # renovate: name=openstack/requirements repo=https://opendev.org/openstack/requirements.git branch=stable/2024.2 |
Mohammed Naser | 49aa233 | 2025-02-17 16:53:31 -0500 | [diff] [blame] | 7 | ARG REQUIREMENTS_GIT_REF=d620ff557c22c4b8c1398b6dc84772c341fb4d5a |
Mohammed Naser | 645ead2 | 2024-05-31 19:50:44 -0400 | [diff] [blame] | 8 | ADD --keep-git-dir=true https://opendev.org/openstack/requirements.git#${REQUIREMENTS_GIT_REF} /src/requirements |
| 9 | RUN cp /src/requirements/upper-constraints.txt /upper-constraints.txt |
Mohammed Naser | da99423 | 2024-04-13 12:34:01 -0400 | [diff] [blame] | 10 | RUN <<EOF sh -xe |
| 11 | sed -i '/glance-store/d' /upper-constraints.txt |
| 12 | sed -i '/horizon/d' /upper-constraints.txt |
| 13 | EOF |
| 14 | |
Mohammed Naser | 564caa8 | 2025-01-18 15:49:44 -0500 | [diff] [blame] | 15 | FROM python-base |
Mohammed Naser | da99423 | 2024-04-13 12:34:01 -0400 | [diff] [blame] | 16 | RUN <<EOF bash -xe |
| 17 | apt-get update -qq |
| 18 | apt-get install -qq -y --no-install-recommends \ |
| 19 | build-essential \ |
| 20 | git \ |
| 21 | libldap2-dev \ |
| 22 | libpcre3-dev \ |
| 23 | libsasl2-dev \ |
| 24 | libssl-dev \ |
| 25 | lsb-release \ |
| 26 | openssh-client \ |
| 27 | python3 \ |
Mohammed Naser | afc8c8c | 2025-02-21 15:02:33 -0500 | [diff] [blame] | 28 | python3-dev |
Mohammed Naser | da99423 | 2024-04-13 12:34:01 -0400 | [diff] [blame] | 29 | apt-get clean |
| 30 | rm -rf /var/lib/apt/lists/* |
| 31 | EOF |
Mohammed Naser | afc8c8c | 2025-02-21 15:02:33 -0500 | [diff] [blame] | 32 | COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/ |
Mohammed Naser | da99423 | 2024-04-13 12:34:01 -0400 | [diff] [blame] | 33 | COPY --from=requirements --link /upper-constraints.txt /upper-constraints.txt |
Mohammed Naser | afc8c8c | 2025-02-21 15:02:33 -0500 | [diff] [blame] | 34 | RUN --mount=type=cache,target=/root/.cache/uv <<EOF bash -xe |
| 35 | uv venv --system-site-packages /var/lib/openstack |
| 36 | uv pip install \ |
Mohammed Naser | da99423 | 2024-04-13 12:34:01 -0400 | [diff] [blame] | 37 | --constraint /upper-constraints.txt \ |
| 38 | cryptography \ |
| 39 | pymysql \ |
| 40 | python-binary-memcached \ |
| 41 | python-memcached \ |
| 42 | uwsgi |
Mohammed Naser | afc8c8c | 2025-02-21 15:02:33 -0500 | [diff] [blame] | 43 | EOF |