forked from redhat-cop/containers-quickstarts
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
45 lines (32 loc) · 1.51 KB
/
Copy pathDockerfile
File metadata and controls
45 lines (32 loc) · 1.51 KB
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
FROM registry.access.redhat.com/ubi8
ENV OC_VERSION=4.9.5 \
ODO_VERSION=v2.3.1 \
ANSIBLE_VERSION=2.9 \
JQ_VERSION=1.6 \
HELM_VERSION=v3.2.3 \
TEKTON_VERSION=0.21.0 \
HOME=/home/tool-box \
INSTALL_PKGS="git vim zip unzip python36"
RUN yum -y update && \
yum -y install $INSTALL_PKGS && \
yum clean all
RUN curl -o jq --fail -sL https://github.com/stedolan/jq/releases/download/jq-${JQ_VERSION}/jq-linux64 && \
chmod +x jq && \
mv jq /usr/local/bin
RUN mkdir -m 775 $HOME && \
chmod 775 /etc/passwd && \
pip3 install --upgrade pip && \
pip3 install git+https://github.com/ansible/ansible.git@stable-${ANSIBLE_VERSION}
RUN curl --fail -s https://get.helm.sh/helm-${HELM_VERSION}-linux-amd64.tar.gz | tar -xvz && \
chmod u+x linux-amd64/helm && mv linux-amd64/helm /usr/local/bin/ && rm -rf linux-amd64
RUN curl --fail -sL https://github.com/tektoncd/cli/releases/download/v${TEKTON_VERSION}/tkn_${TEKTON_VERSION}_Linux_x86_64.tar.gz | tar --no-same-owner -xvz -C /usr/local/bin/ tkn
RUN curl --fail -sL https://mirror.openshift.com/pub/openshift-v4/clients/ocp/${OC_VERSION}/openshift-client-linux-${OC_VERSION}.tar.gz | tar -C /usr/local/bin/ -xzf -
RUN curl --fail -sL https://mirror.openshift.com/pub/openshift-v4/clients/odo/${ODO_VERSION}/odo-linux-amd64 -o /usr/local/bin/odo && \
chmod +x /usr/local/bin/odo
WORKDIR $HOME
ADD ./root /
RUN chmod u+x /usr/local/bin/run && \
rm -rf $HOME/.cache
USER 1001
ENTRYPOINT ["/usr/local/bin/run"]
CMD ["sleep", "infinity"]