[IMP] Install testing requirements into separate image.

Fixes #277
pull/409/head
Adam Heinz 2022-04-07 14:53:39 -04:00
parent 4cb56b39df
commit c3a3f73d48
No known key found for this signature in database
3 changed files with 39 additions and 0 deletions

11
16.0/test.Dockerfile Normal file
View File

@ -0,0 +1,11 @@
ARG version=16
ARG image=odoo:${version}
FROM ${image}
# 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

14
17.0/test.Dockerfile Normal file
View File

@ -0,0 +1,14 @@
ARG version=17
ARG image=odoo:${version}
FROM ${image}
# Install testing requirements
USER root
RUN curl -o google-chrome-stable_current_amd64.deb -sSL https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb && \
apt-get update && \
DEBIAN_FRONTEND=noninteractive \
apt-get install -y --no-install-recommends \
./google-chrome-stable_current_amd64.deb \
python3-websocket \
&& rm -rf /var/lib/apt/lists/* ./google-chrome-stable_current_amd64.deb
USER odoo

14
18.0/test.Dockerfile Normal file
View File

@ -0,0 +1,14 @@
ARG version=18
ARG image=odoo:${version}
FROM ${image}
# Install testing requirements
USER root
RUN curl -o google-chrome-stable_current_amd64.deb -sSL https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb && \
apt-get update && \
DEBIAN_FRONTEND=noninteractive \
apt-get install -y --no-install-recommends \
./google-chrome-stable_current_amd64.deb \
python3-websocket \
&& rm -rf /var/lib/apt/lists/* ./google-chrome-stable_current_amd64.deb
USER odoo