-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathDockerfile
38 lines (29 loc) · 1.17 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
FROM quay.io/redhatgov/workshop-dashboard:latest
USER root
# install aws2
RUN wget https://awscli.amazonaws.com/awscli-exe-linux-x86_64-2.0.30.zip --no-verbose && \
unzip ./awscli-exe-linux-x86_64-2.0.30.zip && \
rm ./awscli-exe-linux-x86_64-2.0.30.zip && \
./aws/install && \
rm -rf ./aws
# install stern
RUN wget https://github.com/stern/stern/releases/download/v1.25.0/stern_1.25.0_linux_amd64.tar.gz --no-verbose && \
tar -xf ./stern_1.25.0_linux_amd64.tar.gz --no-same-owner && \
mv ./stern /usr/local/bin && \
rm ./stern_1.25.0_linux_amd64.tar.gz && \
chown root:root /usr/local/bin/stern && \
chmod 755 /usr/local/bin/stern
# install kn
RUN wget https://mirror.openshift.com/pub/openshift-v4/x86_64/clients/serverless/1.8.1/kn-linux-amd64.tar.gz --no-verbose && \
tar -xf ./kn-linux-amd64.tar.gz --no-same-owner && \
mv ./kn-linux-amd64 /usr/local/bin/kn && \
rm kn-linux-amd64.tar.gz && \
chown root:root /usr/local/bin/kn && \
chmod 755 /usr/local/bin/kn
COPY . /tmp/src
RUN chown -R 1001 /tmp/src && \
chgrp -R 0 /tmp/src && \
chmod -R g+w /tmp/src
ENV TERMINAL_TAB=split
USER 1001
RUN /usr/libexec/s2i/assemble