Skip to content

Commit c3a3f73

Browse files
committed
[IMP] Install testing requirements into separate image.
Fixes #277
1 parent 4cb56b3 commit c3a3f73

File tree

3 files changed

+39
-0
lines changed

3 files changed

+39
-0
lines changed

16.0/test.Dockerfile

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
ARG version=16
2+
ARG image=odoo:${version}
3+
FROM ${image}
4+
5+
# Install testing requirements
6+
USER root
7+
RUN apt-get update && \
8+
apt-get install -y --no-install-recommends chromium && \
9+
rm -rf /var/lib/apt/lists/*
10+
RUN pip3 install websocket-client
11+
USER odoo

17.0/test.Dockerfile

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
ARG version=17
2+
ARG image=odoo:${version}
3+
FROM ${image}
4+
5+
# Install testing requirements
6+
USER root
7+
RUN curl -o google-chrome-stable_current_amd64.deb -sSL https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb && \
8+
apt-get update && \
9+
DEBIAN_FRONTEND=noninteractive \
10+
apt-get install -y --no-install-recommends \
11+
./google-chrome-stable_current_amd64.deb \
12+
python3-websocket \
13+
&& rm -rf /var/lib/apt/lists/* ./google-chrome-stable_current_amd64.deb
14+
USER odoo

18.0/test.Dockerfile

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
ARG version=18
2+
ARG image=odoo:${version}
3+
FROM ${image}
4+
5+
# Install testing requirements
6+
USER root
7+
RUN curl -o google-chrome-stable_current_amd64.deb -sSL https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb && \
8+
apt-get update && \
9+
DEBIAN_FRONTEND=noninteractive \
10+
apt-get install -y --no-install-recommends \
11+
./google-chrome-stable_current_amd64.deb \
12+
python3-websocket \
13+
&& rm -rf /var/lib/apt/lists/* ./google-chrome-stable_current_amd64.deb
14+
USER odoo

0 commit comments

Comments
 (0)