blob: cc065923119363b98ed43d52ab98c9cd3b42d554 [file] [log] [blame]
vexxhost-bota62d9312024-06-01 21:13:59 +02001# SPDX-License-Identifier: Apache-2.0
vexxhost-bot4a8f0912024-06-28 22:34:23 +02002# Atmosphere-Rebuild-Time: 2024-06-28T12:14:26Z
Mohammed Naserd28fbaf2024-04-08 17:15:00 -04003
Mohammed Naser19c6c8a2024-04-18 01:47:10 -04004ARG RELEASE
5
Yaguang Tangae1f4102024-12-13 22:27:22 +08006FROM harbor.atmosphere.dev/docker.io/library/golang:1.18 AS octavia-test-server
Mohammed Naserd28fbaf2024-04-08 17:15:00 -04007ADD --keep-git-dir=true https://opendev.org/openstack/octavia-tempest-plugin.git#master /src
8RUN GO111MODULE=off CGO_ENABLED=0 GOOS=linux go build \
9 -a -ldflags '-s -w -extldflags -static' \
10 -o /build/test_server.bin \
11 /src/octavia_tempest_plugin/contrib/test_server/test_server.go
12
Yaguang Tangae1f4102024-12-13 22:27:22 +080013FROM harbor.atmosphere.dev/library/openstack-venv-builder:${RELEASE} AS build
Mohammed Naserd28fbaf2024-04-08 17:15:00 -040014ARG TEMPEST_GIT_REF=aeb9b13e930841c87b826d3ba917b224095f1d81
15ADD --keep-git-dir=true https://opendev.org/openstack/tempest.git#${TEMPEST_GIT_REF} /src/tempest
16RUN git -C /src/tempest fetch --unshallow
17ADD --keep-git-dir=true https://opendev.org/openstack/barbican-tempest-plugin.git#master /src/barbican-tempest-plugin
18RUN git -C /src/barbican-tempest-plugin fetch --unshallow
19ADD --keep-git-dir=true https://opendev.org/openstack/cinder-tempest-plugin.git#master /src/cinder-tempest-plugin
20RUN git -C /src/cinder-tempest-plugin fetch --unshallow
21ADD --keep-git-dir=true https://opendev.org/openstack/heat-tempest-plugin.git#master /src/heat-tempest-plugin
22RUN git -C /src/heat-tempest-plugin fetch --unshallow
23ADD --keep-git-dir=true https://opendev.org/openstack/keystone-tempest-plugin.git#master /src/keystone-tempest-plugin
24RUN git -C /src/keystone-tempest-plugin fetch --unshallow
25ADD --keep-git-dir=true https://opendev.org/openstack/neutron-tempest-plugin.git#master /src/neutron-tempest-plugin
26RUN git -C /src/neutron-tempest-plugin fetch --unshallow
27ADD --keep-git-dir=true https://opendev.org/openstack/octavia-tempest-plugin.git#master /src/octavia-tempest-plugin
28RUN git -C /src/octavia-tempest-plugin fetch --unshallow
29ADD https://releases.openstack.org/constraints/upper/master /upper-constraints.txt
30RUN --mount=type=cache,mode=0755,target=/root/.cache/pip,sharing=private <<EOF bash -xe
31pip3 install \
32 --constraint /upper-constraints.txt \
33 /src/tempest \
34 /src/barbican-tempest-plugin \
35 /src/cinder-tempest-plugin \
36 /src/heat-tempest-plugin \
37 /src/keystone-tempest-plugin \
38 /src/neutron-tempest-plugin \
39 /src/octavia-tempest-plugin
40EOF
41
Yaguang Tangae1f4102024-12-13 22:27:22 +080042FROM harbor.atmosphere.dev/library/openstack-python-runtime:${RELEASE}
Mohammed Naserd28fbaf2024-04-08 17:15:00 -040043RUN <<EOF bash -xe
44apt-get update -qq
45apt-get install -qq -y --no-install-recommends \
46 iputils-ping openssh-client
47apt-get clean
48rm -rf /var/lib/apt/lists/*
49EOF
50COPY --from=octavia-test-server --link /build/test_server.bin /opt/octavia-tempest-plugin/test_server.bin
51COPY --from=build --link /var/lib/openstack /var/lib/openstack