blob: 6c3fc1e305401e4245e6ed1167f8e7e7a5f4a013 [file] [log] [blame]
Mohammed Naserfe5e63b2025-01-18 15:49:44 -05001# SPDX-FileCopyrightText: © 2025 VEXXHOST, Inc.
2# SPDX-License-Identifier: GPL-3.0-or-later
3# Atmosphere-Rebuild-Time: 2024-06-26T17:38:39Z
Mohammed Naserda994232024-04-13 12:34:01 -04004
Mohammed Naser91491332025-01-15 16:49:44 -05005ARG REGISTRY
Mohammed Naserd30f18d2024-04-17 01:20:43 -04006ARG RELEASE
7
Mohammed Naserfe5e63b2025-01-18 15:49:44 -05008FROM ubuntu-cloud-archive AS requirements
Mohammed Naserd4a365e2025-03-19 23:37:52 -04009# renovate: name=openstack/requirements repo=https://opendev.org/openstack/requirements.git branch=unmaintained/2023.1
Mohammed Naser36ab0942024-06-05 13:11:15 -040010ARG REQUIREMENTS_GIT_REF=c15ff09802a7cc4561275c9c0dbcfed9213c6e11
11ADD --keep-git-dir=true https://opendev.org/openstack/requirements.git#${REQUIREMENTS_GIT_REF} /src/requirements
12RUN cp /src/requirements/upper-constraints.txt /upper-constraints.txt
Mohammed Naserda994232024-04-13 12:34:01 -040013RUN <<EOF sh -xe
14sed -i '/glance-store/d' /upper-constraints.txt
15sed -i '/horizon/d' /upper-constraints.txt
16EOF
17
Mohammed Naserfe5e63b2025-01-18 15:49:44 -050018FROM python-base
Mohammed Naserda994232024-04-13 12:34:01 -040019RUN <<EOF bash -xe
20apt-get update -qq
21apt-get install -qq -y --no-install-recommends \
22 build-essential \
23 git \
24 libldap2-dev \
25 libpcre3-dev \
26 libsasl2-dev \
27 libssl-dev \
28 lsb-release \
29 openssh-client \
30 python3 \
31 python3-dev \
32 python3-pip \
33 python3-venv
34apt-get clean
35rm -rf /var/lib/apt/lists/*
36EOF
37RUN python3 -m venv --upgrade-deps --system-site-packages /var/lib/openstack
38COPY --from=requirements --link /upper-constraints.txt /upper-constraints.txt
39RUN pip3 install \
40 --constraint /upper-constraints.txt \
41 cryptography \
42 pymysql \
43 python-binary-memcached \
44 python-memcached \
45 uwsgi