From d0aa84a8940e0d42eaa57de63346b57e45e6af2a Mon Sep 17 00:00:00 2001 From: Winterflower Date: Mon, 25 Nov 2019 19:15:37 +0100 Subject: [PATCH] First attempt at suitable Dockerfile and config for building Docker image for eland --- .ci/Dockerfile | 6 ++++++ .ci/run-tests | 4 ++++ .dockerignore | 3 +++ 3 files changed, 13 insertions(+) create mode 100644 .ci/Dockerfile create mode 100644 .dockerignore diff --git a/.ci/Dockerfile b/.ci/Dockerfile new file mode 100644 index 0000000..91c76c6 --- /dev/null +++ b/.ci/Dockerfile @@ -0,0 +1,6 @@ +ARG PYTHON_VERSION=3 +FROM python:${PYTHON_VERSION} + +WORKDIR /code/eland +COPY . . +RUN pip install requirements-dev.txt \ No newline at end of file diff --git a/.ci/run-tests b/.ci/run-tests index 48a7d09..d4ee6ac 100755 --- a/.ci/run-tests +++ b/.ci/run-tests @@ -53,3 +53,7 @@ echo -e "\033[1m>>>>> YOUR STEPS HERE >>>>>>>>>>>>>>>>>>>>>>>>>>>>>\033[0m" ## Use ${elasticsearch_url} to talk to elasticsearch ## declare your matrix variables here as well e.g DOTNET_VERSION=${DOTNET_VERSION-3.0.100} + +echo -e "\033[1m>>>>> Build [elastic/eland container] >>>>>>>>>>>>>>>>>>>>>>>>>>>>>\033[0m" + +docker build --file .ci/DockerFile --tag elastic/eland . \ No newline at end of file diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..eb6d255 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,3 @@ +docs/* +example/* +.git