-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
53 lines (42 loc) · 1.32 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
FROM public.ecr.aws/ubuntu/ubuntu:22.04_stable
SHELL ["/bin/bash", "-c"]
RUN apt-get -y update && \
apt-get -y upgrade
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get -y install awscli
RUN apt-get -y install \
dnsutils \
build-essential \
curl \
git \
htop \
nmap \
iperf \
iputils-ping \
lynx \
postgresql \
postgresql-contrib \
postgresql-client \
procps \
rsync \
telnet \
traceroute \
unzip \
vim \
wget
# A writeable folder for OCP deployments that are non-root based runtimes
RUN mkdir /test && \
chgrp 0 /test && \
chmod 775 /test
RUN mkdir /test2 && \
chgrp 0 /test2 && \
chmod g=u /test2
RUN curl https://rclone.org/install.sh | bash
# manually run 'rclone config' to setup the environment for each remote.
# install Openshift CLI tool oc
RUN curl -sfL https://mirror.openshift.com/pub/openshift-v4/clients/ocp/stable-4.10/openshift-client-linux.tar.gz | tar -zxvf - -C /usr/local/bin/
# install Github CLI tool gh
RUN curl -sfL https://github.com/cli/cli/releases/download/v2.20.2/gh_2.20.2_linux_amd64.tar.gz | tar -zxvf - gh_2.20.2_linux_amd64/bin/gh --strip-components=1
# Set the default shell on openshift to use bash rather than sh
RUN /bin/sed -i 's/SHELL=\/bin\/sh/SHELL=\/bin\/bash/g' /etc/default/useradd
CMD tail -f /dev/null