blob: 54a100d14bc16badc1803c87b4f8f16121bd332c [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 Nasere786d962024-06-26 01:08:34 -04003# Atmosphere-Rebuild-Time: 2024-06-25T22:49:25Z
Mohammed Naserda994232024-04-13 12:34:01 -04004
Mohammed Naser564caa82025-01-18 15:49:44 -05005FROM ubuntu-cloud-archive AS requirements
Mohammed Naser49aa2332025-02-17 16:53:31 -05006ARG REQUIREMENTS_GIT_REF=d620ff557c22c4b8c1398b6dc84772c341fb4d5a
Mohammed Naser645ead22024-05-31 19:50:44 -04007ADD --keep-git-dir=true https://opendev.org/openstack/requirements.git#${REQUIREMENTS_GIT_REF} /src/requirements
8RUN cp /src/requirements/upper-constraints.txt /upper-constraints.txt
Mohammed Naserda994232024-04-13 12:34:01 -04009RUN <<EOF sh -xe
10sed -i '/glance-store/d' /upper-constraints.txt
11sed -i '/horizon/d' /upper-constraints.txt
12EOF
13
Mohammed Naser564caa82025-01-18 15:49:44 -050014FROM python-base
Mohammed Naserda994232024-04-13 12:34:01 -040015RUN <<EOF bash -xe
16apt-get update -qq
17apt-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 Naser4e2d8ac2025-02-21 15:02:33 -050027 python3-dev
Mohammed Naserda994232024-04-13 12:34:01 -040028apt-get clean
29rm -rf /var/lib/apt/lists/*
30EOF
Mohammed Naser4e2d8ac2025-02-21 15:02:33 -050031COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/
Mohammed Naserda994232024-04-13 12:34:01 -040032COPY --from=requirements --link /upper-constraints.txt /upper-constraints.txt
Mohammed Naser4e2d8ac2025-02-21 15:02:33 -050033RUN --mount=type=cache,target=/root/.cache/uv <<EOF bash -xe
34uv venv --system-site-packages /var/lib/openstack
35uv pip install \
Mohammed Naserda994232024-04-13 12:34:01 -040036 --constraint /upper-constraints.txt \
37 cryptography \
38 pymysql \
39 python-binary-memcached \
40 python-memcached \
41 uwsgi
Mohammed Naser4e2d8ac2025-02-21 15:02:33 -050042EOF