jsliacan / microshift-backend-e2e Goto Github PK
View Code? Open in Web Editor NEWA wrapper on top of MicroShift upstream e2e tests to be run mostly on non linux environments with a MicroShift cluster
A wrapper on top of MicroShift upstream e2e tests to be run mostly on non linux environments with a MicroShift cluster
Make sure that the OpenShift version passed to the container is aligned with the kubectl version that's being downloaded and that goes with it.
Assume Containerfile
uses
FROM registry.access.redhat.com/ubi9/go-toolset:1.19 as builder
Then running the test binary on RHEL8 gives
ms-backend-e2e: /lib64/libc.so.6: version `GLIBC_2.34' not found (required by ms-backend-e2e)
ms-backend-e2e: /lib64/libc.so.6: version `GLIBC_2.32' not found (required by ms-backend-e2e)
For now, using ubi8/go-toolset:1.19 as builder
.
When the functionality is available on deliverest, see issue 2, move (and remove) pull-secret to (from) the host every time the tests are run. Right now we rely on pull-secret being present on the host.
[cloud-user@rhel-crcqe ms-backend-e2e]$ ls -la ms-backend-e2e
-rwxr-xr-x. 1 cloud-user cloud-user 280798248 Apr 27 14:11 ms-backend-e2e
[cloud-user@rhel-crcqe ms-backend-e2e]$ ./ms-backend-e2e
-bash: ./ms-backend-e2e: No such file or directory
Issue with using alpine
base image and glibc
vs musl
: https://stackoverflow.com/questions/66963068/docker-alpine-executable-binary-not-found-even-if-in-path.
The way out of it is one of 2 ways:
apk add libc6-compat
and hope it helps to run alpine containers on rhel as well.FROM registry.access.redhat.com/ubi8/go-toolset:1.18 as builder
USER root
ARG OPENSHIFT_VERSION
ARG OS
ARG ARCH
ENV GOOS=${OS} \
GOARCH=${ARCH} \
UPSTREAM=https://github.com/openshift/origin.git \
BRANCH=release-${OPENSHIFT_VERSION}\
EPEL=https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
RUN rpm -ivh ${EPEL} \
&& dnf --enablerepo=epel install -y git gcc gcc-c++ kernel-headers curl \
&& git clone --depth 1 --branch ${BRANCH} ${UPSTREAM} \
&& cd origin \
&& go build -o ./build/ms-backend-e2e -mod=vendor -trimpath github.com/openshift/origin/cmd/openshift-tests
RUN if [[ "${OS}" == "windows" ]]; then curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/windows/${ARCH}/kubectl.exe"; else \
curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/${OS}/${ARCH}/kubectl"; fi
FROM quay.io/rhqp/deliverest:v0.0.1
LABEL org.opencontainers.image.authors="Adrian Riobo<[email protected]>"
ENV ASSETS_FOLDER /opt/ms-backend-e2e
COPY --from=builder /opt/app-root/src/origin/build/ms-backend-e2e /opt/app-root/src/kubectl* ${ASSETS_FOLDER}/
ARG OS
COPY /lib/${OS}/* /lib/common/* ${ASSETS_FOLDER}/
RUN chmod +x ${ASSETS_FOLDER}/run.* \
&& chmod +x ${ASSETS_FOLDER}/kubectl*
COPY /hooks /
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.