blob: da36bdd9cfff7681d7e2c81f175e928eefb95529 [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 Naserfe5e63b2025-01-18 15:49:44 -05005FROM golang AS octavia-test-server
Mohammed Naserda994232024-04-13 12:34:01 -04006ADD --keep-git-dir=true https://opendev.org/openstack/octavia-tempest-plugin.git#master /src
7RUN 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 Naserfe5e63b2025-01-18 15:49:44 -050012FROM openstack-venv-builder AS build
Mohammed Naser414a42a2025-03-11 17:29:59 -040013ARG TEMPEST_GIT_REF=50bd5aa470db2958018513ab43696dbb2596b30f
Mohammed Naserda994232024-04-13 12:34:01 -040014ADD --keep-git-dir=true https://opendev.org/openstack/tempest.git#${TEMPEST_GIT_REF} /src/tempest
15RUN git -C /src/tempest fetch --unshallow
16ADD --keep-git-dir=true https://opendev.org/openstack/barbican-tempest-plugin.git#master /src/barbican-tempest-plugin
17RUN git -C /src/barbican-tempest-plugin fetch --unshallow
18ADD --keep-git-dir=true https://opendev.org/openstack/cinder-tempest-plugin.git#master /src/cinder-tempest-plugin
19RUN git -C /src/cinder-tempest-plugin fetch --unshallow
20ADD --keep-git-dir=true https://opendev.org/openstack/heat-tempest-plugin.git#master /src/heat-tempest-plugin
21RUN git -C /src/heat-tempest-plugin fetch --unshallow
22ADD --keep-git-dir=true https://opendev.org/openstack/keystone-tempest-plugin.git#master /src/keystone-tempest-plugin
23RUN git -C /src/keystone-tempest-plugin fetch --unshallow
24ADD --keep-git-dir=true https://opendev.org/openstack/neutron-tempest-plugin.git#master /src/neutron-tempest-plugin
25RUN git -C /src/neutron-tempest-plugin fetch --unshallow
26ADD --keep-git-dir=true https://opendev.org/openstack/octavia-tempest-plugin.git#master /src/octavia-tempest-plugin
27RUN git -C /src/octavia-tempest-plugin fetch --unshallow
Mohammed Naser414a42a2025-03-11 17:29:59 -040028ADD https://releases.openstack.org/constraints/upper/master /upper-constraints.txt
Mohammed Naserda994232024-04-13 12:34:01 -040029RUN --mount=type=cache,mode=0755,target=/root/.cache/pip,sharing=private <<EOF bash -xe
30pip3 install \
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
39EOF
40
Mohammed Naserfe5e63b2025-01-18 15:49:44 -050041FROM openstack-python-runtime
Mohammed Naserda994232024-04-13 12:34:01 -040042RUN <<EOF bash -xe
43apt-get update -qq
44apt-get install -qq -y --no-install-recommends \
45 iputils-ping openssh-client
46apt-get clean
47rm -rf /var/lib/apt/lists/*
48EOF
49COPY --from=octavia-test-server --link /build/test_server.bin /opt/octavia-tempest-plugin/test_server.bin
50COPY --from=build --link /var/lib/openstack /var/lib/openstack