From aac7dcf50f3e199f1afc70c57d77cca7394c4676 Mon Sep 17 00:00:00 2001 From: Adam Heinz Date: Thu, 7 Apr 2022 14:53:39 -0400 Subject: [PATCH] [IMP] Install testing requirements into separate image. Fixes #277 --- 15.0/Dockerfile | 15 +++++++++++++-- 15.0/test.Dockerfile | 12 ++++++++++++ 2 files changed, 25 insertions(+), 2 deletions(-) create mode 100644 15.0/test.Dockerfile diff --git a/15.0/Dockerfile b/15.0/Dockerfile index 59a2fc710..82d12a8a3 100644 --- a/15.0/Dockerfile +++ b/15.0/Dockerfile @@ -1,5 +1,5 @@ -FROM debian:bullseye-slim -MAINTAINER Odoo S.A. +FROM debian:bullseye-slim AS web +LABEL maintainer="Odoo S.A. " SHELL ["/bin/bash", "-xo", "pipefail", "-c"] @@ -86,3 +86,14 @@ USER odoo ENTRYPOINT ["/entrypoint.sh"] CMD ["odoo"] + +################################################ +FROM web AS test + +# Install testing requirements +USER root +RUN apt-get update && \ + apt-get install -y --no-install-recommends chromium && \ + rm -rf /var/lib/apt/lists/* +RUN pip3 install websocket-client +USER odoo diff --git a/15.0/test.Dockerfile b/15.0/test.Dockerfile new file mode 100644 index 000000000..f1d354f38 --- /dev/null +++ b/15.0/test.Dockerfile @@ -0,0 +1,12 @@ +ARG version=15 +ARG image=odoo:${version} +FROM ${image} +LABEL maintainer="Odoo S.A. " + +# Install testing requirements +USER root +RUN apt-get update && \ + apt-get install -y --no-install-recommends chromium && \ + rm -rf /var/lib/apt/lists/* +RUN pip3 install websocket-client +USER odoo