From 5c78e14679b9432e961198e0b39355a1a539135a 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 | 2 +- 15.0/test.Dockerfile | 12 ++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 15.0/test.Dockerfile diff --git a/15.0/Dockerfile b/15.0/Dockerfile index 59a2fc710..d09e91e8e 100644 --- a/15.0/Dockerfile +++ b/15.0/Dockerfile @@ -1,5 +1,5 @@ FROM debian:bullseye-slim -MAINTAINER Odoo S.A. +LABEL maintainer="Odoo S.A. " SHELL ["/bin/bash", "-xo", "pipefail", "-c"] 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