blob: 26d23658f4208f7732df2dc9a22dfbfed4284018 [file] [log] [blame]
Mohammed Naserf1ac3f82025-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 Nasere5b6ff72025-01-15 16:49:44 -05005ARG REGISTRY
Mohammed Naserd30f18d2024-04-17 01:20:43 -04006ARG RELEASE
7
Mohammed Naserf1ac3f82025-01-18 15:49:44 -05008FROM ubuntu-cloud-archive AS requirements
Mohammed Naser442a54a2025-03-19 23:37:52 -04009# renovate: name=openstack/requirements repo=https://opendev.org/openstack/requirements.git branch=stable/2023.2
Mohammed Naser142dc922024-06-20 21:19:25 -040010ARG REQUIREMENTS_GIT_REF=b14cdf8aeba6b7fba4ed85ae4e140d1f52a4038c
Mohammed Naser645ead22024-05-31 19:50:44 -040011ADD --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 Naserf1ac3f82025-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