Mohammed Naser | 8661577 | 2024-06-01 10:02:09 -0400 | [diff] [blame] | 1 | # SPDX-License-Identifier: Apache-2.0 |
Mohammed Naser | e786d96 | 2024-06-26 01:08:34 -0400 | [diff] [blame] | 2 | # Atmosphere-Rebuild-Time: 2024-06-25T22:49:25Z |
Mohammed Naser | da99423 | 2024-04-13 12:34:01 -0400 | [diff] [blame] | 3 | |
Mohammed Naser | d30f18d | 2024-04-17 01:20:43 -0400 | [diff] [blame] | 4 | ARG RELEASE |
| 5 | |
Mohammed Naser | da99423 | 2024-04-13 12:34:01 -0400 | [diff] [blame] | 6 | FROM golang:1.18 AS octavia-test-server |
| 7 | ADD --keep-git-dir=true https://opendev.org/openstack/octavia-tempest-plugin.git#master /src |
| 8 | RUN 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 | |
Mohammed Naser | d30f18d | 2024-04-17 01:20:43 -0400 | [diff] [blame] | 13 | FROM registry.atmosphere.dev/library/openstack-venv-builder:${RELEASE} AS build |
Mohammed Naser | da99423 | 2024-04-13 12:34:01 -0400 | [diff] [blame] | 14 | ARG TEMPEST_GIT_REF=c0da6e843a74c2392c8e87e8ff36d2fea12949c4 |
| 15 | ADD --keep-git-dir=true https://opendev.org/openstack/tempest.git#${TEMPEST_GIT_REF} /src/tempest |
| 16 | RUN git -C /src/tempest fetch --unshallow |
| 17 | ADD --keep-git-dir=true https://opendev.org/openstack/barbican-tempest-plugin.git#master /src/barbican-tempest-plugin |
| 18 | RUN git -C /src/barbican-tempest-plugin fetch --unshallow |
| 19 | ADD --keep-git-dir=true https://opendev.org/openstack/cinder-tempest-plugin.git#master /src/cinder-tempest-plugin |
| 20 | RUN git -C /src/cinder-tempest-plugin fetch --unshallow |
| 21 | ADD --keep-git-dir=true https://opendev.org/openstack/heat-tempest-plugin.git#master /src/heat-tempest-plugin |
| 22 | RUN git -C /src/heat-tempest-plugin fetch --unshallow |
| 23 | ADD --keep-git-dir=true https://opendev.org/openstack/keystone-tempest-plugin.git#master /src/keystone-tempest-plugin |
| 24 | RUN git -C /src/keystone-tempest-plugin fetch --unshallow |
| 25 | ADD --keep-git-dir=true https://opendev.org/openstack/neutron-tempest-plugin.git#master /src/neutron-tempest-plugin |
| 26 | RUN git -C /src/neutron-tempest-plugin fetch --unshallow |
| 27 | ADD --keep-git-dir=true https://opendev.org/openstack/octavia-tempest-plugin.git#master /src/octavia-tempest-plugin |
| 28 | RUN git -C /src/octavia-tempest-plugin fetch --unshallow |
| 29 | ADD https://releases.openstack.org/constraints/upper/master /upper-constraints.txt |
| 30 | RUN --mount=type=cache,mode=0755,target=/root/.cache/pip,sharing=private <<EOF bash -xe |
| 31 | pip3 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 |
| 40 | EOF |
| 41 | |
Mohammed Naser | d30f18d | 2024-04-17 01:20:43 -0400 | [diff] [blame] | 42 | FROM registry.atmosphere.dev/library/openstack-python-runtime:${RELEASE} |
Mohammed Naser | da99423 | 2024-04-13 12:34:01 -0400 | [diff] [blame] | 43 | RUN <<EOF bash -xe |
| 44 | apt-get update -qq |
| 45 | apt-get install -qq -y --no-install-recommends \ |
| 46 | iputils-ping openssh-client |
| 47 | apt-get clean |
| 48 | rm -rf /var/lib/apt/lists/* |
| 49 | EOF |
| 50 | COPY --from=octavia-test-server --link /build/test_server.bin /opt/octavia-tempest-plugin/test_server.bin |
| 51 | COPY --from=build --link /var/lib/openstack /var/lib/openstack |