blob: 3ebfe7c61ce4e2c403f105740cee782fd4598ab3 [file] [log] [blame]
Mohammed Naser86615772024-06-01 10:02:09 -04001# SPDX-License-Identifier: Apache-2.0
Mohammed Naser735efe22024-06-26 23:46:25 -04002# Atmosphere-Rebuild-Time: 2024-06-26T17:38:39Z
Mohammed Naserda994232024-04-13 12:34:01 -04003
Mohammed Naserd30f18d2024-04-17 01:20:43 -04004ARG RELEASE
5
Yaguang Tang1d50b802024-12-13 03:35:11 +08006FROM harbor.atmosphere.dev/docker.io/library/golang:1.18 AS octavia-test-server
Mohammed Naserda994232024-04-13 12:34:01 -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 Tang1d50b802024-12-13 03:35:11 +080013FROM harbor.atmosphere.dev/library/openstack-venv-builder:${RELEASE} AS build
Mohammed Naserda994232024-04-13 12:34:01 -040014ARG TEMPEST_GIT_REF=c0da6e843a74c2392c8e87e8ff36d2fea12949c4
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 Tang1d50b802024-12-13 03:35:11 +080042FROM harbor.atmosphere.dev/library/openstack-python-runtime:${RELEASE}
Mohammed Naserda994232024-04-13 12:34:01 -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