Skip to content

Commit

Permalink
build a better chectl build environment for use with openshift-ci
Browse files Browse the repository at this point in the history
Change-Id: I4acfc99eae0a0e45804f4c2c54bfd73a4c4931e6
Signed-off-by: Nick Boldt <[email protected]>
  • Loading branch information
nickboldt committed Aug 30, 2023
1 parent 550570d commit ec8ec30
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions .ci/openshift-ci/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 [email protected] 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

0 comments on commit ec8ec30

Please sign in to comment.