blob: d837b4065afb73ca8d0bad327cdbe9676c1a8124 [file] [log] [blame]
Mohammed Nasercc6868b2025-01-18 15:49:44 -05001# SPDX-FileCopyrightText: © 2025 VEXXHOST, Inc.
2# SPDX-License-Identifier: GPL-3.0-or-later
Mohammed Naser735efe22024-06-26 23:46:25 -04003# Atmosphere-Rebuild-Time: 2024-06-26T17:38:39Z
Mohammed Naserda994232024-04-13 12:34:01 -04004
Mohammed Naserd4ae9be2025-01-15 16:49:44 -05005ARG REGISTRY
Mohammed Naserd30f18d2024-04-17 01:20:43 -04006ARG RELEASE
7
Mohammed Nasercc6868b2025-01-18 15:49:44 -05008FROM ubuntu-cloud-archive AS requirements
Mohammed Naserfe5b7352025-03-19 23:37:52 -04009# renovate: name=openstack/requirements repo=https://opendev.org/openstack/requirements.git branch=stable/2024.1
Mohammed Naser05795e52024-06-26 07:52:19 -040010ARG REQUIREMENTS_GIT_REF=275c45971da8970a8e01bf9618f4419dee5f8710
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 Nasercc6868b2025-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