Giter VIP home page Giter VIP logo

microshift-backend-e2e's Issues

ubi9 based image won't work for a RHEL8 host (with glibc-devel-2.28)

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.

Cannot find binaries even if on the PATH

[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:

  1. Maybe use apk add libc6-compat and hope it helps to run alpine containers on rhel as well.
  2. Use a different base image in the containerfile:
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 /

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.