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