Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update test images for ARM and OCP 3.11 #1652

Merged
merged 21 commits into from
Dec 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
e3d0885
Pointed nginx to use their quay images (which are multiarch)
hash-d Aug 21, 2024
127671e
Skip hipstershop on non-amd64 clusters
hash-d Aug 21, 2024
31e1144
Pointing the curl image from dockerhub to quay
hash-d Aug 21, 2024
5b59639
Adapted test images makefile for multi-arch
hash-d Aug 22, 2024
182828f
Added --no-cache to generated_build
hash-d Sep 7, 2024
b7fab86
Changed all skopeo copy to --all; moved postgres and redis to reassemble
hash-d Sep 7, 2024
4db5f55
refactor checkArch into arch.Skip; skip wrk2; DumpTestInfo on errors
hash-d Sep 10, 2024
d919e25
Added key, iperf3, nghttp2, wrk into list of images
hash-d Sep 10, 2024
d1a8d75
Adding iperf3
hash-d Sep 10, 2024
b47c1b0
Added postgres
hash-d Sep 10, 2024
135f252
Fix iperf's entrypoint
hash-d Sep 10, 2024
7b28942
Skip TestPostgres for ARM. See #1650
hash-d Sep 10, 2024
95881c3
Update hey Command, inline with new image
hash-d Sep 10, 2024
6594fa2
Moved Mongo to REASSEMBLE
hash-d Sep 10, 2024
98a7d8d
Completed Makefile with external, other images; refactoring and doc
hash-d Oct 14, 2024
ab8a29e
Point nginx back to quay.io/skupper
hash-d Oct 14, 2024
f288601
Point amqp_test to use images.GetRouterImageName insted of hardcoded
hash-d Oct 17, 2024
bc013d1
Updated doc and small cosmetic change on returned error
hash-d Oct 17, 2024
6a52978
Added alias to entry point, using old name, for compatibility
hash-d Oct 18, 2024
51bb6b2
Test fix: job status check looked only at Conditions[0]
hash-d Nov 21, 2024
e7f95e3
Show job logs before assertion
hash-d Nov 18, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pkg/domain/podman/site_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,7 @@ func mockContainers() []*container.Container {
}, {
ID: strings.Replace(uuid.New().String(), "-", "", -1),
Name: "nginx",
Image: "docker.io/nginxinc/nginx-unprivileged:stable-alpine",
Image: "quay.io/skupper/nginx-unprivileged:stable-alpine",
Labels: map[string]string{},
Networks: map[string]container.ContainerNetworkInfo{
"skupper": {
Expand Down
26 changes: 26 additions & 0 deletions test/images/Containerfile.hey
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
ARG TARGETPLATFORM

FROM --platform=$TARGETPLATFORM golang:1.21 AS builder

ARG TARGETOS
ARG TARGETARCH

WORKDIR /go/src/app
RUN git clone https://github.com/rakyll/hey.git ./
RUN GOOS=$TARGETOS GOARCH=$TARGETARCH go build -o hey ./hey.go

FROM --platform=$TARGETPLATFORM registry.access.redhat.com/ubi9-minimal

# The image needs to be compatible with the older entry point used
# in the previous version
RUN ln -s /app/hey /usr/bin/hey_linux_amd64

# Create user and group and switch to user's context
RUN microdnf -y install shadow-utils \
&& microdnf clean all
RUN useradd --uid 10000 runner
USER 10000

WORKDIR /app
COPY --from=builder /go/src/app/hey .
CMD ["/app/hey"]
18 changes: 18 additions & 0 deletions test/images/Containerfile.iperf3
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
ARG TARGETPLATFORM

FROM --platform=$TARGETPLATFORM quay.io/fedora/fedora-minimal

LABEL description="A supporting test image"
LABEL maintainer="Skupper project"
LABEL origin=https://github.com/skupperproject/skupper/blob/main/test/images

EXPOSE 5201

# Create user and group and switch to user's context
RUN microdnf -y install iperf3 shadow-utils \
&& microdnf clean all
RUN useradd --uid 10000 runner
USER 10000

CMD []
ENTRYPOINT ["/usr/bin/iperf3"]
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
FROM alpine:latest
ARG TARGETPLATFORM

FROM --platform=$TARGETPLATFORM alpine:latest

LABEL description="A supporting test image containing nghttp2 (client, server and load tester), for Skupper testing. By default, this image does not start any nghttp2 project; the user needs to overwrite CMD with the command they want"
LABEL maintainer="Skupper project"
Expand Down
17 changes: 17 additions & 0 deletions test/images/Containerfile.wrk
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
ARG TARGETPLATFORM

FROM --platform=$TARGETPLATFORM registry.fedoraproject.org/fedora-minimal AS build

RUN microdnf -y install gcc git make unzip openssl-devel && microdnf -y clean all

WORKDIR /home/root
RUN git clone https://github.com/wg/wrk.git

WORKDIR /home/root/wrk
RUN make WITH_OPENSSL=/usr

FROM registry.fedoraproject.org/fedora-minimal

COPY --from=build /home/root/wrk/wrk /usr/bin/wrk

CMD ["/usr/bin/wrk"]
13 changes: 13 additions & 0 deletions test/images/Containerfile.wrk2
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
ARG TARGETPLATFORM

FROM --platform=$TARGETPLATFORM alpine:latest as builder

RUN apk add --update alpine-sdk openssl-dev zlib-dev && apk add --no-cache git && git clone https://github.com/giltene/wrk2.git && cd wrk2 && make && mv wrk /bin/


FROM alpine:latest

RUN apk add --update libgcc openssl zlib
COPY --from=builder /bin/wrk /bin/

CMD ["/bin/sh"]
Loading