From 51e695066a87eb74e709e0ff6baf728a34a79b4e Mon Sep 17 00:00:00 2001 From: Antoine Legrand <2t.antoine@gmail.com> Date: Mon, 12 Feb 2018 13:39:41 +0100 Subject: [PATCH] Add dockerfile for the ci --- Dockerfile | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 000000000..f7703e5f2 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,17 @@ +FROM python:2.7.14-stretch + +RUN mkdir /kubespray +WORKDIR /kubespray +RUN apt update -y && \ + apt install -y \ + libssl-dev python-dev sshpass apt-transport-https \ + ca-certificates curl gnupg2 software-properties-common +RUN curl -fsSL https://download.docker.com/linux/$(. /etc/os-release; echo "$ID")/gpg | apt-key add - && \ + add-apt-repository \ + "deb [arch=amd64] https://download.docker.com/linux/$(. /etc/os-release; echo "$ID") \ + $(lsb_release -cs) \ + stable" \ + && apt update -y && apt-get install docker-ce -y + +COPY . . +RUN pip install -r tests/requirements.txt && pip install -r requirements.txt