-
Notifications
You must be signed in to change notification settings - Fork 68
/
Copy pathbuild-image.Dockerfile
30 lines (25 loc) · 1010 Bytes
/
build-image.Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Dockerfile to bootstrap build and test in openshift-ci
FROM registry.ci.openshift.org/openshift/release:rhel-8-release-golang-__GOLANG_VERSION__-openshift-4.17
# Add kubernetes repository
ADD openshift/ci-operator/build-image/kubernetes.repo /etc/yum.repos.d/
RUN yum install -y kubectl httpd-tools
RUN GOFLAGS='' go install github.com/mikefarah/yq/v3@latest
RUN GOFLAGS='' go install knative.dev/test-infra/tools/kntest/cmd/kntest@latest
RUN GOFLAGS='' go install -tags="exclude_graphdriver_btrfs containers_image_openpgp" github.com/containers/skopeo/cmd/[email protected]
RUN rm -rf $GOPATH/.cache
# Allow runtime users to add entries to /etc/passwd
RUN chmod g+rw /etc/passwd
RUN yum install -y https://rpm.nodesource.com/pub___NODEJS_VERSION__/el/8/x86_64/nodesource-release-el8-1.noarch.rpm
RUN yum module disable -y nodejs
RUN yum install -y \
gcc-c++ \
make \
nodejs \
xorg-x11-server-Xvfb \
gtk2-devel \
gtk3-devel \
libnotify-devel \
GConf2 \
nss \
libXScrnSaver \
alsa-lib