From 1b9ddbdd2c8970cf1776e7c142bbd64ec35e6c15 Mon Sep 17 00:00:00 2001 From: yohan <783b8c87@scimetis.net> Date: Sun, 20 Oct 2024 22:56:57 +0200 Subject: [PATCH] Reduce image size. Add ovh_instance_playbooks dependencies. --- Dockerfile | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 2b0d888..30a3ffd 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,10 +2,18 @@ FROM debian:bullseye MAINTAINER yohan <783b8c87@scimetis.net> ENV DEBIAN_FRONTEND noninteractive RUN echo "deb http://http.debian.net/debian bullseye-backports main" >> /etc/apt/sources.list -RUN apt-get update && apt-get -y install pip openssh-client iproute2 git +RUN apt-get update && \ + apt-get -y install pip openssh-client iproute2 git && \ + apt-get clean && \ + rm -rf /var/lib/apt/lists/* ENV TZ=Europe/Paris RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone -RUN pip install ansible -RUN pip install "openstacksdk>=1.0.0" -RUN pip install docker -RUN pip install docker-compose +RUN pip install "ansible==8.5" +RUN pip install "openstacksdk==1.5.0" +RUN pip install "docker==6.1.3" +RUN pip install "docker-compose==1.29.2" +WORKDIR /root +RUN git clone https://git.scimetis.net/yohan/ovh_instance_playbooks.git +WORKDIR /root/ovh_instance_playbooks +RUN ./install_requirements.sh +WORKDIR /root