blob: 28f233b0ce8d0f2c6c40b85adf41ef45d738b432 [file] [log] [blame]
vexxhost-bot6e0e4362024-06-01 21:24:08 +02001# SPDX-License-Identifier: Apache-2.0
vexxhost-bot65e04a22024-06-26 15:46:55 +02002# Atmosphere-Rebuild-Time: 2024-06-25T22:49:25Z
Mohammed Naserda994232024-04-13 12:34:01 -04003
Mohammed Naser91491332025-01-15 16:49:44 -05004ARG REGISTRY
Mohammed Naserd30f18d2024-04-17 01:20:43 -04005ARG RELEASE
6
Yaguang Tangba6760e2024-12-13 12:59:40 +08007FROM harbor.atmosphere.dev/docker.io/library/golang:1.18 AS octavia-test-server
Mohammed Naserda994232024-04-13 12:34:01 -04008ADD --keep-git-dir=true https://opendev.org/openstack/octavia-tempest-plugin.git#master /src
9RUN 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 Naser91491332025-01-15 16:49:44 -050014FROM ${REGISTRY}/openstack-venv-builder:${RELEASE} AS build
Mohammed Naserda994232024-04-13 12:34:01 -040015ARG TEMPEST_GIT_REF=c0da6e843a74c2392c8e87e8ff36d2fea12949c4
16ADD --keep-git-dir=true https://opendev.org/openstack/tempest.git#${TEMPEST_GIT_REF} /src/tempest
17RUN git -C /src/tempest fetch --unshallow
18ADD --keep-git-dir=true https://opendev.org/openstack/barbican-tempest-plugin.git#master /src/barbican-tempest-plugin
19RUN git -C /src/barbican-tempest-plugin fetch --unshallow
20ADD --keep-git-dir=true https://opendev.org/openstack/cinder-tempest-plugin.git#master /src/cinder-tempest-plugin
21RUN git -C /src/cinder-tempest-plugin fetch --unshallow
22ADD --keep-git-dir=true https://opendev.org/openstack/heat-tempest-plugin.git#master /src/heat-tempest-plugin
23RUN git -C /src/heat-tempest-plugin fetch --unshallow
24ADD --keep-git-dir=true https://opendev.org/openstack/keystone-tempest-plugin.git#master /src/keystone-tempest-plugin
25RUN git -C /src/keystone-tempest-plugin fetch --unshallow
26ADD --keep-git-dir=true https://opendev.org/openstack/neutron-tempest-plugin.git#master /src/neutron-tempest-plugin
27RUN git -C /src/neutron-tempest-plugin fetch --unshallow
28ADD --keep-git-dir=true https://opendev.org/openstack/octavia-tempest-plugin.git#master /src/octavia-tempest-plugin
29RUN git -C /src/octavia-tempest-plugin fetch --unshallow
Mohammed Naser5d4d4412024-05-24 19:36:35 +020030ADD https://releases.openstack.org/constraints/upper/2023.1 /upper-constraints.txt
Mohammed Naserda994232024-04-13 12:34:01 -040031RUN --mount=type=cache,mode=0755,target=/root/.cache/pip,sharing=private <<EOF bash -xe
32pip3 install \
33 --constraint /upper-constraints.txt \
34 /src/tempest \
35 /src/barbican-tempest-plugin \
36 /src/cinder-tempest-plugin \
37 /src/heat-tempest-plugin \
38 /src/keystone-tempest-plugin \
39 /src/neutron-tempest-plugin \
40 /src/octavia-tempest-plugin
41EOF
42
Mohammed Naser91491332025-01-15 16:49:44 -050043FROM ${REGISTRY}/openstack-python-runtime:${RELEASE}
Mohammed Naserda994232024-04-13 12:34:01 -040044RUN <<EOF bash -xe
45apt-get update -qq
46apt-get install -qq -y --no-install-recommends \
47 iputils-ping openssh-client
48apt-get clean
49rm -rf /var/lib/apt/lists/*
50EOF
51COPY --from=octavia-test-server --link /build/test_server.bin /opt/octavia-tempest-plugin/test_server.bin
52COPY --from=build --link /var/lib/openstack /var/lib/openstack