-
Notifications
You must be signed in to change notification settings - Fork 3
/
Dockerfile
65 lines (33 loc) · 1.57 KB
/
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
FROM centos:7
MAINTAINER Tomas Jelinek "[email protected]"
USER root
##################### default deps #####################
RUN yum update -y && yum install -y git wget gcc
##################### nodejs #####################
RUN curl -sL https://rpm.nodesource.com/setup_14.x | bash -
RUN yum install -y nodejs
##################### yarn #####################
RUN curl --silent --location https://dl.yarnpkg.com/rpm/yarn.repo | tee /etc/yum.repos.d/yarn.repo
RUN rpm --import https://dl.yarnpkg.com/rpm/pubkey.gpg
RUN yum install -y yarn
##################### go #####################
RUN wget https://dl.google.com/go/go1.13.3.linux-amd64.tar.gz
RUN tar -xzf go1.13.3.linux-amd64.tar.gz
RUN mv go /usr/local
RUN mkdir srcs
ENV GOROOT "/usr/local/go"
ENV GOPATH "$HOME"
ENV PATH "$GOPATH/bin:$GOROOT/bin:$PATH"
#RUN git clone https://github.com/openshift/console.git
#RUN cd console && ./build.sh
#RUN source ./contrib/oc-environment.sh
##################### oc #####################
RUN wget https://github.com/openshift/origin/releases/download/v1.5.1/openshift-origin-client-tools-v1.5.1-7b451fc-linux-64bit.tar.gz
RUN tar xf openshift-origin-client-tools-v1.5.1-7b451fc-linux-64bit.tar.gz
RUN cp openshift-origin-client-tools-v1.5.1-7b451fc-linux-64bit/oc /bin
##################### jq #####################
RUN yum -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
RUN yum install jq -y
##################### clone and build #####################
RUN git clone https://github.com/openshift/console.git
RUN cd console && ./build.sh