-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build a better chectl build environment for use with openshift-ci
Change-Id: I4acfc99eae0a0e45804f4c2c54bfd73a4c4931e6 Signed-off-by: Nick Boldt <[email protected]>
- Loading branch information
Showing
1 changed file
with
16 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 |