Skip to content

Commit

Permalink
[IMP] Install testing requirements into separate image.
Browse files Browse the repository at this point in the history
Fixes #277
  • Loading branch information
amh-mw committed Apr 7, 2022
1 parent f2933c5 commit aac7dcf
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 2 deletions.
15 changes: 13 additions & 2 deletions 15.0/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
FROM debian:bullseye-slim
MAINTAINER Odoo S.A. <[email protected]>
FROM debian:bullseye-slim AS web
LABEL maintainer="Odoo S.A. <[email protected]>"

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

Expand Down Expand Up @@ -86,3 +86,14 @@ USER odoo

ENTRYPOINT ["/entrypoint.sh"]
CMD ["odoo"]

################################################
FROM web AS test

# 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
12 changes: 12 additions & 0 deletions 15.0/test.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
ARG version=15
ARG image=odoo:${version}
FROM ${image}
LABEL maintainer="Odoo S.A. <[email protected]>"

# 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

0 comments on commit aac7dcf

Please sign in to comment.