blob: 02866caba1d0b97aab66a0a8829f8e363b002760 [file] [log] [blame]
Mohammed Naser19d63122024-01-08 17:10:05 -05001VERSION 0.7
2
Mohammed Naser403c0422024-01-16 14:36:28 -05003ARG --global PROJECT=tempest
4ARG --global RELEASE=master
5ARG --global PROJECT_REF=699749ec27897efe9bd7824664237c16c3339c03
6
Mohammed Naser12207172024-02-05 18:49:35 -05007build.plugin:
8 ARG PLUGIN
9 FROM ../openstack-service+builder --RELEASE=${RELEASE}
10 DO ../openstack-service+GIT_CHECKOUT \
11 --PROJECT=${PLUGIN} \
12 --PROJECT_REF=${RELEASE}
13 SAVE ARTIFACT /src
14
15octavia-test-server:
16 FROM golang:1.18
17 COPY (+build.plugin/src --PLUGIN=octavia-tempest-plugin) /src
18 ENV GO111MODULE=off
19 ENV CGO_ENABLED=0
20 ENV GOOS=linux
21 RUN go build \
22 -a -ldflags '-s -w -extldflags -static' \
23 -o /build/test_server.bin \
24 /src/octavia_tempest_plugin/contrib/test_server/test_server.go
25 SAVE ARTIFACT /build/test_server.bin
26
Mohammed Naser403c0422024-01-16 14:36:28 -050027build:
28 FROM ../openstack-service+builder --RELEASE=${RELEASE}
Mohammed Naser12207172024-02-05 18:49:35 -050029 COPY (+build.plugin/src --PLUGIN=barbican-tempest-plugin) /barbican-tempest-plugin
30 COPY (+build.plugin/src --PLUGIN=cinder-tempest-plugin) /cinder-tempest-plugin
31 COPY (+build.plugin/src --PLUGIN=heat-tempest-plugin) /heat-tempest-plugin
32 COPY (+build.plugin/src --PLUGIN=keystone-tempest-plugin) /keystone-tempest-plugin
33 COPY (+build.plugin/src --PLUGIN=neutron-tempest-plugin) /neutron-tempest-plugin
34 COPY (+build.plugin/src --PLUGIN=octavia-tempest-plugin) /octavia-tempest-plugin
Mohammed Naser403c0422024-01-16 14:36:28 -050035 DO ../openstack-service+BUILD_VENV \
36 --PROJECT=${PROJECT} \
37 --PROJECT_REF=${PROJECT_REF} \
Mohammed Naser12207172024-02-05 18:49:35 -050038 --PIP_PACKAGES="/barbican-tempest-plugin /cinder-tempest-plugin /heat-tempest-plugin /keystone-tempest-plugin /neutron-tempest-plugin /octavia-tempest-plugin junitxml"
Mohammed Naser403c0422024-01-16 14:36:28 -050039
Mohammed Naser19d63122024-01-08 17:10:05 -050040image:
Mohammed Naser403c0422024-01-16 14:36:28 -050041 FROM ../openstack-service+image --RELEASE ${RELEASE} --PROJECT ${PROJECT}
Mohammed Naser12207172024-02-05 18:49:35 -050042 COPY +octavia-test-server/test_server.bin /opt/octavia-tempest-plugin/test_server.bin
Mohammed Naser403c0422024-01-16 14:36:28 -050043 COPY +build/venv /var/lib/openstack
44 DO ../+APT_INSTALL \
Mohammed Naser12207172024-02-05 18:49:35 -050045 --PACKAGES "iputils-ping openssh-client"
Mohammed Naser1dfea6b2024-02-09 01:04:26 -050046 ARG REGISTRY=ghcr.io/vexxhost/atmosphere
Mohammed Naser19d63122024-01-08 17:10:05 -050047 SAVE IMAGE --push \
Mohammed Naser12207172024-02-05 18:49:35 -050048 ${REGISTRY}/${PROJECT}:${RELEASE} \
49 ${REGISTRY}/${PROJECT}:${PROJECT_REF}