blob: 6c4ad837a9484709fa08d6a97650d3fdd5ec15e6 [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 Naserf1ac3f82025-01-18 15:49:44 -05005FROM golang AS octavia-test-server
Mohammed Naser442a54a2025-03-19 23:37:52 -04006# renovate: name=openstack/octavia-tempest-plugin repo=https://opendev.org/openstack/octavia-tempest-plugin.git branch=master
7ARG OCTAVIA_TEMPEST_PLUGIN_GIT_REF=875c38f0355ecd31ce3a4ddf654d3adb8ea2370d
8ADD --keep-git-dir=true https://opendev.org/openstack/octavia-tempest-plugin.git#${OCTAVIA_TEMPEST_PLUGIN_GIT_REF} /src
Mohammed Naserda994232024-04-13 12:34:01 -04009RUN GO111MODULE=off CGO_ENABLED=0 GOOS=linux go build \
10 -a -ldflags '-s -w -extldflags -static' \
11 -o /build/test_server.bin \
12 /src/octavia_tempest_plugin/contrib/test_server/test_server.go
13
Mohammed Naserf1ac3f82025-01-18 15:49:44 -050014FROM openstack-venv-builder AS build
Mohammed Naser442a54a2025-03-19 23:37:52 -040015# renovate: name=openstack/requirements repo=https://opendev.org/openstack/requirements.git branch=master
16ARG REQUIREMENTS_GIT_REF=7a304c74f76991597bfe7eb0666b2b2a2bf2ffa3
17ADD --keep-git-dir=true https://opendev.org/openstack/requirements.git#${REQUIREMENTS_GIT_REF} /src/requirements
Mohammed Naser2066fbf2025-03-18 13:24:50 -040018RUN git -C /src/requirements fetch --unshallow
Mohammed Naser442a54a2025-03-19 23:37:52 -040019# renovate: name=openstack/tempest repo=https://opendev.org/openstack/tempest.git branch=master
20ARG TEMPEST_GIT_REF=50bd5aa470db2958018513ab43696dbb2596b30f
21ADD --keep-git-dir=true https://opendev.org/openstack/tempest.git#${TEMPEST_GIT_REF} /src/tempest
Mohammed Naserda994232024-04-13 12:34:01 -040022RUN git -C /src/tempest fetch --unshallow
Mohammed Naser442a54a2025-03-19 23:37:52 -040023# renovate: name=openstack/barbican-tempest-plugin repo=https://opendev.org/openstack/barbican-tempest-plugin.git branch=master
24ARG BARBICAN_TEMPEST_PLUGIN_GIT_REF=2cd185133a86242c58d721e66c2db753a369fe60
25ADD --keep-git-dir=true https://opendev.org/openstack/barbican-tempest-plugin.git#${BARBICAN_TEMPEST_PLUGIN_GIT_REF} /src/barbican-tempest-plugin
Mohammed Naserda994232024-04-13 12:34:01 -040026RUN git -C /src/barbican-tempest-plugin fetch --unshallow
Mohammed Naser442a54a2025-03-19 23:37:52 -040027# renovate: name=openstack/cinder-tempest-plugin repo=https://opendev.org/openstack/cinder-tempest-plugin.git branch=master
28ARG CINDER_TEMPEST_PLUGIN_GIT_REF=bb5594c061370316bfc881e24d11b3350fb0aef9
29ADD --keep-git-dir=true https://opendev.org/openstack/cinder-tempest-plugin.git#${CINDER_TEMPEST_PLUGIN_GIT_REF} /src/cinder-tempest-plugin
Mohammed Naserda994232024-04-13 12:34:01 -040030RUN git -C /src/cinder-tempest-plugin fetch --unshallow
Mohammed Naser442a54a2025-03-19 23:37:52 -040031# renovate: name=openstack/heat-tempest-plugin repo=https://opendev.org/openstack/heat-tempest-plugin.git branch=master
32ARG HEAT_TEMPEST_PLUGIN_GIT_REF=d2db170988fe1ad3aedda997377b768a83ba9fe9
33ADD --keep-git-dir=true https://opendev.org/openstack/heat-tempest-plugin.git#${HEAT_TEMPEST_PLUGIN_GIT_REF} /src/heat-tempest-plugin
Mohammed Naserda994232024-04-13 12:34:01 -040034RUN git -C /src/heat-tempest-plugin fetch --unshallow
Mohammed Naser442a54a2025-03-19 23:37:52 -040035# renovate: name=openstack/keystone-tempest-plugin repo=https://opendev.org/openstack/keystone-tempest-plugin.git branch=master
36ARG KEYSTONE_TEMPEST_PLUGIN_GIT_REF=f3c89425613f333a1152a7d420e5d681154f7ad1
37ADD --keep-git-dir=true https://opendev.org/openstack/keystone-tempest-plugin.git#${KEYSTONE_TEMPEST_PLUGIN_GIT_REF} /src/keystone-tempest-plugin
Mohammed Naserda994232024-04-13 12:34:01 -040038RUN git -C /src/keystone-tempest-plugin fetch --unshallow
Mohammed Naser442a54a2025-03-19 23:37:52 -040039# renovate: name=openstack/neutron-tempest-plugin repo=https://opendev.org/openstack/neutron-tempest-plugin.git branch=master
40ARG NEUTRON_TEMPEST_PLUGIN_GIT_REF=ed3744eba062bffa318f786c1370ecd2d0dae130
41ADD --keep-git-dir=true https://opendev.org/openstack/neutron-tempest-plugin.git#${NEUTRON_TEMPEST_PLUGIN_GIT_REF} /src/neutron-tempest-plugin
Mohammed Naserda994232024-04-13 12:34:01 -040042RUN git -C /src/neutron-tempest-plugin fetch --unshallow
Mohammed Naser442a54a2025-03-19 23:37:52 -040043# renovate: name=openstack/octavia-tempest-plugin repo=https://opendev.org/openstack/octavia-tempest-plugin.git branch=master
44ARG OCTAVIA_TEMPEST_PLUGIN_GIT_REF=875c38f0355ecd31ce3a4ddf654d3adb8ea2370d
45ADD --keep-git-dir=true https://opendev.org/openstack/octavia-tempest-plugin.git#${OCTAVIA_TEMPEST_PLUGIN_GIT_REF} /src/octavia-tempest-plugin
Mohammed Naserda994232024-04-13 12:34:01 -040046RUN git -C /src/octavia-tempest-plugin fetch --unshallow
Mohammed Naserda994232024-04-13 12:34:01 -040047RUN --mount=type=cache,mode=0755,target=/root/.cache/pip,sharing=private <<EOF bash -xe
48pip3 install \
Mohammed Naser2066fbf2025-03-18 13:24:50 -040049 --constraint /src/requirements/upper-constraints.txt \
Mohammed Naserda994232024-04-13 12:34:01 -040050 /src/tempest \
51 /src/barbican-tempest-plugin \
52 /src/cinder-tempest-plugin \
53 /src/heat-tempest-plugin \
54 /src/keystone-tempest-plugin \
55 /src/neutron-tempest-plugin \
56 /src/octavia-tempest-plugin
57EOF
58
Mohammed Naserf1ac3f82025-01-18 15:49:44 -050059FROM openstack-python-runtime
Mohammed Naserda994232024-04-13 12:34:01 -040060RUN <<EOF bash -xe
61apt-get update -qq
62apt-get install -qq -y --no-install-recommends \
63 iputils-ping openssh-client
64apt-get clean
65rm -rf /var/lib/apt/lists/*
66EOF
67COPY --from=octavia-test-server --link /build/test_server.bin /opt/octavia-tempest-plugin/test_server.bin
68COPY --from=build --link /var/lib/openstack /var/lib/openstack