-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
32 lines (32 loc) · 1.67 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
FROM docker.io/rockylinux:8.9.20231119
RUN yum check-update; \
yum install -y gcc libffi-devel python3 epel-release; \
yum install -y python3-pip; \
yum install -y bash wget curl tar openssh-clients sshpass; \
yum install -y python3-dateutil python3-jinja2 python3-pyyaml; \
yum install -y python3-wheel ca-certificates openssl-devel; \
yum install -y mariadb; \
yum install -y python3-devel libffi-devel; \
yum install -y mariadb-devel; \
yum install -y python3-pycurl; \
yum install -y libxml2-devel; \
yum install -y libxml2; \
yum install -y git aggregate6; \
yum clean all
COPY ./requirements.yml /tmp/requirements.yml
COPY ./requirements-pip.txt /tmp/requirements-pip.txt
COPY ./.ansible.cfg ~/.ansible.cfg
RUN echo "Installing Python, Ansible and a bunch of related tools"; \
python3 -m pip install --upgrade pip; \
python3 -m pip install --upgrade virtualenv; \
dnf install ansible -y; \
ansible-galaxy install -r /tmp/requirements.yml; \
python3 -m pip install -r /tmp/requirements-pip.txt;
RUN echo "Downloading Kube Tools"; \
curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"; \
curl -LO "https://dl.k8s.io/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl.sha256"; \
curl -LO "https://github.com/NetApp/trident/releases/download/v24.02.0/trident-installer-24.02.0.tar.gz";\
curl -sS https://webinstall.dev/k9s | bash; \
tar xfz trident-installer-24.02.0.tar.gz;\
install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl;\
install -o root -g root -m 0755 trident-installer/tridentctl /usr/local/bin/tridentctl;