Skip to content

Commit aac7dcf

Browse files
committed
[IMP] Install testing requirements into separate image.
Fixes #277
1 parent f2933c5 commit aac7dcf

File tree

2 files changed

+25
-2
lines changed

2 files changed

+25
-2
lines changed

15.0/Dockerfile

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
FROM debian:bullseye-slim
2-
MAINTAINER Odoo S.A. <[email protected]>
1+
FROM debian:bullseye-slim AS web
2+
LABEL maintainer="Odoo S.A. <[email protected]>"
33

44
SHELL ["/bin/bash", "-xo", "pipefail", "-c"]
55

@@ -86,3 +86,14 @@ USER odoo
8686

8787
ENTRYPOINT ["/entrypoint.sh"]
8888
CMD ["odoo"]
89+
90+
################################################
91+
FROM web AS test
92+
93+
# Install testing requirements
94+
USER root
95+
RUN apt-get update && \
96+
apt-get install -y --no-install-recommends chromium && \
97+
rm -rf /var/lib/apt/lists/*
98+
RUN pip3 install websocket-client
99+
USER odoo

15.0/test.Dockerfile

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
ARG version=15
2+
ARG image=odoo:${version}
3+
FROM ${image}
4+
LABEL maintainer="Odoo S.A. <[email protected]>"
5+
6+
# Install testing requirements
7+
USER root
8+
RUN apt-get update && \
9+
apt-get install -y --no-install-recommends chromium && \
10+
rm -rf /var/lib/apt/lists/*
11+
RUN pip3 install websocket-client
12+
USER odoo

0 commit comments

Comments
 (0)