Mohammed Naser | 564caa8 | 2025-01-18 15:49:44 -0500 | [diff] [blame] | 1 | # SPDX-FileCopyrightText: © 2025 VEXXHOST, Inc. |
| 2 | # SPDX-License-Identifier: GPL-3.0-or-later |
Mohammed Naser | e786d96 | 2024-06-26 01:08:34 -0400 | [diff] [blame] | 3 | # Atmosphere-Rebuild-Time: 2024-06-25T22:49:25Z |
Mohammed Naser | da99423 | 2024-04-13 12:34:01 -0400 | [diff] [blame] | 4 | |
Mohammed Naser | 564caa8 | 2025-01-18 15:49:44 -0500 | [diff] [blame] | 5 | FROM golang AS octavia-test-server |
Mohammed Naser | da99423 | 2024-04-13 12:34:01 -0400 | [diff] [blame] | 6 | ADD --keep-git-dir=true https://opendev.org/openstack/octavia-tempest-plugin.git#master /src |
| 7 | RUN GO111MODULE=off CGO_ENABLED=0 GOOS=linux go build \ |
| 8 | -a -ldflags '-s -w -extldflags -static' \ |
| 9 | -o /build/test_server.bin \ |
| 10 | /src/octavia_tempest_plugin/contrib/test_server/test_server.go |
| 11 | |
Mohammed Naser | 564caa8 | 2025-01-18 15:49:44 -0500 | [diff] [blame] | 12 | FROM openstack-venv-builder AS build |
Mohammed Naser | e2e5955 | 2025-03-11 17:29:59 -0400 | [diff] [blame] | 13 | ARG TEMPEST_GIT_REF=50bd5aa470db2958018513ab43696dbb2596b30f |
Mohammed Naser | da99423 | 2024-04-13 12:34:01 -0400 | [diff] [blame] | 14 | ADD --keep-git-dir=true https://opendev.org/openstack/tempest.git#${TEMPEST_GIT_REF} /src/tempest |
| 15 | RUN git -C /src/tempest fetch --unshallow |
| 16 | ADD --keep-git-dir=true https://opendev.org/openstack/barbican-tempest-plugin.git#master /src/barbican-tempest-plugin |
| 17 | RUN git -C /src/barbican-tempest-plugin fetch --unshallow |
| 18 | ADD --keep-git-dir=true https://opendev.org/openstack/cinder-tempest-plugin.git#master /src/cinder-tempest-plugin |
| 19 | RUN git -C /src/cinder-tempest-plugin fetch --unshallow |
| 20 | ADD --keep-git-dir=true https://opendev.org/openstack/heat-tempest-plugin.git#master /src/heat-tempest-plugin |
| 21 | RUN git -C /src/heat-tempest-plugin fetch --unshallow |
| 22 | ADD --keep-git-dir=true https://opendev.org/openstack/keystone-tempest-plugin.git#master /src/keystone-tempest-plugin |
| 23 | RUN git -C /src/keystone-tempest-plugin fetch --unshallow |
| 24 | ADD --keep-git-dir=true https://opendev.org/openstack/neutron-tempest-plugin.git#master /src/neutron-tempest-plugin |
| 25 | RUN git -C /src/neutron-tempest-plugin fetch --unshallow |
| 26 | ADD --keep-git-dir=true https://opendev.org/openstack/octavia-tempest-plugin.git#master /src/octavia-tempest-plugin |
| 27 | RUN git -C /src/octavia-tempest-plugin fetch --unshallow |
| 28 | ADD https://releases.openstack.org/constraints/upper/master /upper-constraints.txt |
Mohammed Naser | 4e2d8ac | 2025-02-21 15:02:33 -0500 | [diff] [blame] | 29 | RUN --mount=type=cache,target=/root/.cache/uv <<EOF bash -xe |
| 30 | uv pip install \ |
Mohammed Naser | da99423 | 2024-04-13 12:34:01 -0400 | [diff] [blame] | 31 | --constraint /upper-constraints.txt \ |
| 32 | /src/tempest \ |
| 33 | /src/barbican-tempest-plugin \ |
| 34 | /src/cinder-tempest-plugin \ |
| 35 | /src/heat-tempest-plugin \ |
| 36 | /src/keystone-tempest-plugin \ |
| 37 | /src/neutron-tempest-plugin \ |
| 38 | /src/octavia-tempest-plugin |
| 39 | EOF |
| 40 | |
Mohammed Naser | 564caa8 | 2025-01-18 15:49:44 -0500 | [diff] [blame] | 41 | FROM openstack-python-runtime |
Mohammed Naser | da99423 | 2024-04-13 12:34:01 -0400 | [diff] [blame] | 42 | RUN <<EOF bash -xe |
| 43 | apt-get update -qq |
| 44 | apt-get install -qq -y --no-install-recommends \ |
| 45 | iputils-ping openssh-client |
| 46 | apt-get clean |
| 47 | rm -rf /var/lib/apt/lists/* |
| 48 | EOF |
| 49 | COPY --from=octavia-test-server --link /build/test_server.bin /opt/octavia-tempest-plugin/test_server.bin |
| 50 | COPY --from=build --link /var/lib/openstack /var/lib/openstack |