diff --git a/.ci/openshift-ci/Dockerfile b/.ci/openshift-ci/Dockerfile index abcfdd0f7..c7f9e2f3e 100644 --- a/.ci/openshift-ci/Dockerfile +++ b/.ci/openshift-ci/Dockerfile @@ -11,9 +11,21 @@ # # Dockerfile to bootstrap build and test in openshift-ci +FROM registry.access.redhat.com/ubi9/nodejs-18:1 +# hadolint ignore=DL3002 +USER 0 -FROM registry.ci.openshift.org/openshift/release:golang-1.18 +# hadolint ignore=DL3041 +RUN dnf install -y -q --allowerasing --nobest nodejs-devel nodejs-libs \ + # already installed or installed as deps: + openssl openssl-devel ca-certificates make cmake cpp gcc gcc-c++ zlib zlib-devel brotli brotli-devel python3 nodejs-packaging && \ + dnf update -y && dnf clean all && \ + npm install -g yarn@1.22 npm@9 && \ + echo -n "node version: "; node -v; \ + echo -n "npm version: "; npm -v; \ + echo -n "yarn version: "; yarn -v -RUN curl -sL https://rpm.nodesource.com/setup_18.x | bash - && \ - yum-config-manager --add-repo https://dl.yarnpkg.com/rpm/yarn.repo && \ - yum install -y yarn +# to build chectl in this container, uncomment these lines +# resulting tarball will be in /opt/app-root/src/chectl*.tgz +# COPY . /opt/app-root/src +# RUN yarn && yarn pack && yarn test