-
Notifications
You must be signed in to change notification settings - Fork 4
/
Dockerfile-s2i-oc
33 lines (30 loc) · 1.01 KB
/
Dockerfile-s2i-oc
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
FROM ubuntu:18.04
RUN apt-get update && apt-get install -y \
cmake \
curl \
g++ \
pkg-config \
git \
vim-common \
libwebsockets-dev \
libjson-c-dev \
libssl-dev \
sudo \
systemd \
&& rm -rf /var/lib/apt/lists/*
RUN curl -sL https://deb.nodesource.com/setup_10.x | bash
RUN apt-get install -y nodejs
RUN curl -sL https://ibm.biz/idt-installer | bash
RUN curl -L -O https://github.com/openshift/source-to-image/releases/download/v1.3.0/source-to-image-v1.3.0-eed2850f-linux-amd64.tar.gz && \
tar -xvf source-to-image-v1.3.0-eed2850f-linux-amd64.tar.gz && \
mv s2i /usr/local/bin && \
rm source-to-image-v1.3.0-eed2850f-linux-amd64.tar.gz
RUN curl -L -O https://mirror.openshift.com/pub/openshift-v4/clients/oc/latest/linux/oc.tar.gz && \
tar -xvf oc.tar.gz && \
mv oc /usr/local/bin && \
rm oc.tar.gz
RUN git clone https://github.com/tsl0922/ttyd.git
RUN cd ttyd && mkdir build && cd build && cmake .. && make && make install
RUN npm install -g loopback-cli
EXPOSE 7681
CMD ["ttyd", "-p", "7681", "bash"]