Skip to content

[IMP] Install testing requirements into separate image. #409

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions 16.0/test.Dockerfile
Original file line number Diff line number Diff line change
@@ -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 changes: 14 additions & 0 deletions 17.0/test.Dockerfile
Original file line number Diff line number Diff line change
@@ -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 changes: 14 additions & 0 deletions 18.0/test.Dockerfile
Original file line number Diff line number Diff line change
@@ -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