blob: 4ba54e1cd3d247b3c7bbc7034196bc3c97441071 [file] [log] [blame]
Mohammed Naser7bda44d2025-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 Naserb0bef882024-06-05 14:52:23 -04004
Mohammed Naseraa212e62025-01-15 16:49:44 -05005ARG REGISTRY
Mohammed Naser19c6c8a2024-04-18 01:47:10 -04006ARG RELEASE
7
Mohammed Naser7bda44d2025-01-18 15:49:44 -05008FROM ubuntu-cloud-archive AS requirements
Mohammed Naser22819092025-03-19 23:37:52 -04009# renovate: name=openstack/requirements repo=https://opendev.org/openstack/requirements.git branch=unmaintained/zed
Mohammed Naserb0bef882024-06-05 14:52:23 -040010ARG REQUIREMENTS_GIT_REF=b4513973fdd1c3b43159fe0e02fa73d845a9c1ba
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 Naserd28fbaf2024-04-08 17:15:00 -040013RUN <<EOF sh -xe
Mohammed Naserd28fbaf2024-04-08 17:15:00 -040014sed -i '/glance-store/d' /upper-constraints.txt
15sed -i '/horizon/d' /upper-constraints.txt
16EOF
17
Mohammed Naser7bda44d2025-01-18 15:49:44 -050018FROM python-base
Mohammed Naserd28fbaf2024-04-08 17:15:00 -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