Browse Source

add requirements for kubespray 2.24

Vadim Surkov 1 month ago
parent
commit
d354c4c2e6

+ 12 - 0
Dockerfile.ubi9

@@ -0,0 +1,12 @@
+# syntax=docker/dockerfile:1.2
+
+FROM registry.access.redhat.com/ubi9/ubi:latest
+LABEL maintainer="surkov.v@sdsys.ru"
+
+RUN --mount=type=bind,source=./files,target=/tmp/files \
+    dnf install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm && \
+    dnf install -y python3-pip openssh-clients git openssl sshpass sudo bind-utils iputils && \
+    pip3 install -r /tmp/files/requirements.txt && \
+    adduser ansible
+
+USER ansible

+ 14 - 0
Dockerfile.ubi9.debug

@@ -0,0 +1,14 @@
+# syntax=docker/dockerfile:1.2
+
+FROM registry.access.redhat.com/ubi9/ubi:latest
+LABEL maintainer="surkov.v@sdsys.ru"
+
+RUN --mount=type=bind,source=./files,target=/tmp/files \
+    ls -lah /tmp/files | cat - > /meme.txt && \
+    cat /tmp/files/requirements.txt >> /meme.txt
+#    dnf install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm && \
+#    dnf install -y python3-pip openssh-clients git openssl sshpass sudo && \
+#    pip3 install -r /tmp/files/requirements.txt && \
+#    adduser ansible
+
+#USER ansible

+ 2 - 1
README.md

@@ -1,3 +1,4 @@
 # ansible-image
 
-$ DOCKER_BUILDKIT=1 docker build -f ./Dockerfile.alpine . -t ansible
+$ DOCKER_BUILDKIT=1 docker build -f ./Dockerfile.ubi9 . -t ansible
+$ docker run -it -v $HOME/.ssh:/home/ansible/.ssh -v $HOME/git:/home/ansible/git ansible bash

+ 10 - 0
files/requirements-2.17.txt

@@ -0,0 +1,10 @@
+ansible==3.4.0
+ansible-base==2.10.11
+cryptography==2.8
+jinja2==2.11.3
+netaddr==0.7.19
+pbr==5.4.4
+jmespath==0.9.5
+ruamel.yaml==0.16.10
+ruamel.yaml.clib==0.2.2
+MarkupSafe==1.1.1

+ 10 - 0
files/requirements-2.22.txt

@@ -0,0 +1,10 @@
+ansible==5.7.1
+ansible-core==2.12.5
+cryptography==3.4.8
+jinja2==3.1.2
+jmespath==1.0.1
+MarkupSafe==2.1.2
+netaddr==0.8.0
+pbr==5.11.1
+ruamel.yaml==0.17.21
+ruamel.yaml.clib==0.2.7

+ 9 - 0
files/requirements-2.23.txt

@@ -0,0 +1,9 @@
+ansible==7.6.0
+cryptography==41.0.1
+jinja2==3.1.2
+jmespath==1.0.1
+MarkupSafe==2.1.3
+netaddr==0.8.0
+pbr==5.11.1
+ruamel.yaml==0.17.31
+ruamel.yaml.clib==0.2.7

+ 9 - 0
files/requirements-2.24.txt

@@ -0,0 +1,9 @@
+ansible==8.5.0
+cryptography==41.0.4
+jinja2==3.1.2
+jmespath==1.0.1
+MarkupSafe==2.1.3
+netaddr==0.9.0
+pbr==5.11.1
+ruamel.yaml==0.17.35
+ruamel.yaml.clib==0.2.8

+ 0 - 10
files/requirements.txt

@@ -1,10 +0,0 @@
-ansible==3.4.0
-ansible-base==2.10.11
-cryptography==2.8
-jinja2==2.11.3
-netaddr==0.7.19
-pbr==5.4.4
-jmespath==0.9.5
-ruamel.yaml==0.16.10
-ruamel.yaml.clib==0.2.2
-MarkupSafe==1.1.1

+ 1 - 0
files/requirements.txt

@@ -0,0 +1 @@
+./requirements-2.22.txt

+ 1 - 0
git/.bash_history

@@ -0,0 +1 @@
+ls /root