blob: 19fb9943dc3128fb9a036f7d5b495ed575ad4633 [file] [log] [blame]
Mohammed Naser564caa82025-01-18 15:49:44 -05001# SPDX-FileCopyrightText: © 2025 VEXXHOST, Inc.
2# SPDX-License-Identifier: GPL-3.0-or-later
Mohammed Naser30004232025-02-20 16:43:21 -05003# Atmosphere-Rebuild-Time: 2025-02-20T21:42:46Z
Mohammed Naserda994232024-04-13 12:34:01 -04004
Mohammed Naser564caa82025-01-18 15:49:44 -05005FROM ubuntu-cloud-archive AS requirements
Mohammed Naser8ed5c8e2025-03-19 23:37:52 -04006# renovate: name=openstack/requirements repo=https://opendev.org/openstack/requirements.git branch=stable/2024.2
Mohammed Naser49aa2332025-02-17 16:53:31 -05007ARG REQUIREMENTS_GIT_REF=d620ff557c22c4b8c1398b6dc84772c341fb4d5a
Mohammed Naser645ead22024-05-31 19:50:44 -04008ADD --keep-git-dir=true https://opendev.org/openstack/requirements.git#${REQUIREMENTS_GIT_REF} /src/requirements
9RUN cp /src/requirements/upper-constraints.txt /upper-constraints.txt
Mohammed Naserda994232024-04-13 12:34:01 -040010RUN <<EOF sh -xe
11sed -i '/glance-store/d' /upper-constraints.txt
12sed -i '/horizon/d' /upper-constraints.txt
13EOF
14
Mohammed Naser564caa82025-01-18 15:49:44 -050015FROM python-base
Mohammed Naserda994232024-04-13 12:34:01 -040016RUN <<EOF bash -xe
17apt-get update -qq
18apt-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 Naserafc8c8c2025-02-21 15:02:33 -050028 python3-dev
Mohammed Naserda994232024-04-13 12:34:01 -040029apt-get clean
30rm -rf /var/lib/apt/lists/*
31EOF
Mohammed Naserafc8c8c2025-02-21 15:02:33 -050032COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/
Mohammed Naserda994232024-04-13 12:34:01 -040033COPY --from=requirements --link /upper-constraints.txt /upper-constraints.txt
Mohammed Naserafc8c8c2025-02-21 15:02:33 -050034RUN --mount=type=cache,target=/root/.cache/uv <<EOF bash -xe
35uv venv --system-site-packages /var/lib/openstack
36uv pip install \
Mohammed Naserda994232024-04-13 12:34:01 -040037 --constraint /upper-constraints.txt \
38 cryptography \
39 pymysql \
40 python-binary-memcached \
41 python-memcached \
42 uwsgi
Mohammed Naserafc8c8c2025-02-21 15:02:33 -050043EOF