blob: 21603369d78f3ece52527db8080ed7b009e19d22 [file] [log] [blame]
Mohammed Naser19d63122024-01-08 17:10:05 -05001VERSION 0.7
2
Mohammed Naser12207172024-02-05 18:49:35 -05003ARG --global REGISTRY=ghcr.io/vexxhost/atmosphere
Mohammed Naser403c0422024-01-16 14:36:28 -05004ARG --global PROJECT=tempest
5ARG --global RELEASE=master
6ARG --global PROJECT_REF=699749ec27897efe9bd7824664237c16c3339c03
7
Mohammed Naser12207172024-02-05 18:49:35 -05008build.plugin:
9 ARG PLUGIN
10 FROM ../openstack-service+builder --RELEASE=${RELEASE}
11 DO ../openstack-service+GIT_CHECKOUT \
12 --PROJECT=${PLUGIN} \
13 --PROJECT_REF=${RELEASE}
14 SAVE ARTIFACT /src
15
16octavia-test-server:
17 FROM golang:1.18
18 COPY (+build.plugin/src --PLUGIN=octavia-tempest-plugin) /src
19 ENV GO111MODULE=off
20 ENV CGO_ENABLED=0
21 ENV GOOS=linux
22 RUN go build \
23 -a -ldflags '-s -w -extldflags -static' \
24 -o /build/test_server.bin \
25 /src/octavia_tempest_plugin/contrib/test_server/test_server.go
26 SAVE ARTIFACT /build/test_server.bin
27
Mohammed Naser403c0422024-01-16 14:36:28 -050028build:
29 FROM ../openstack-service+builder --RELEASE=${RELEASE}
Mohammed Naser12207172024-02-05 18:49:35 -050030 COPY (+build.plugin/src --PLUGIN=barbican-tempest-plugin) /barbican-tempest-plugin
31 COPY (+build.plugin/src --PLUGIN=cinder-tempest-plugin) /cinder-tempest-plugin
32 COPY (+build.plugin/src --PLUGIN=heat-tempest-plugin) /heat-tempest-plugin
33 COPY (+build.plugin/src --PLUGIN=keystone-tempest-plugin) /keystone-tempest-plugin
34 COPY (+build.plugin/src --PLUGIN=neutron-tempest-plugin) /neutron-tempest-plugin
35 COPY (+build.plugin/src --PLUGIN=octavia-tempest-plugin) /octavia-tempest-plugin
Mohammed Naser403c0422024-01-16 14:36:28 -050036 DO ../openstack-service+BUILD_VENV \
37 --PROJECT=${PROJECT} \
38 --PROJECT_REF=${PROJECT_REF} \
Mohammed Naser12207172024-02-05 18:49:35 -050039 --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 -050040
Mohammed Naser19d63122024-01-08 17:10:05 -050041image:
Mohammed Naser403c0422024-01-16 14:36:28 -050042 FROM ../openstack-service+image --RELEASE ${RELEASE} --PROJECT ${PROJECT}
Mohammed Naser12207172024-02-05 18:49:35 -050043 COPY +octavia-test-server/test_server.bin /opt/octavia-tempest-plugin/test_server.bin
Mohammed Naser403c0422024-01-16 14:36:28 -050044 COPY +build/venv /var/lib/openstack
45 DO ../+APT_INSTALL \
Mohammed Naser12207172024-02-05 18:49:35 -050046 --PACKAGES "iputils-ping openssh-client"
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}