Skip to content
Snippets Groups Projects
Commit 3952cd2e authored by Christophe Monniez's avatar Christophe Monniez
Browse files

[REF] packaging: use docker to build packages


Actually, docker is used to test Linux packages once they are built.
The packaging process is done on the host system where package.py is
run.

Consequences:
    * difficult to reproduce an exact same build on another host
    * changing a Debian/Ubuntu target version means some upgrade steps
      on the build host (mix that with the fact that the host also
      could build old Odoo versions)
    * Fedora rpm package is built on an Ubuntu system (which is not a
      real problem but it could be)

With this commit, the package.py utility is refactored to use Docker
containers to build the Gnu/Linux packages.

Backport of 8c4c4394

closes odoo/odoo#38940

Signed-off-by: default avatarChristophe Monniez (moc) <moc@odoo.com>
parent 79c59139
No related branches found
No related tags found
No related merge requests found
[install]
optimize=1
[bdist_rpm]
no-autoreq = yes
install-script = setup/redhat/install.sh
......
......@@ -12,12 +12,15 @@ RUN dpkg-reconfigure locales && \
locale-gen C.UTF-8 && \
/usr/sbin/update-locale LANG=C.UTF-8
ENV LC_ALL C.UTF-8
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update -qq && \
apt-get upgrade -qq -y && \
apt-get install \
adduser \
node-less \
dh-python \
packaging-dev \
postgresql \
postgresql-client \
python3 \
......
......@@ -51,11 +51,10 @@ RUN dnf update -d 0 -e 0 -y && \
postgresql-server \
postgresql-libs \
postgresql-contrib \
postgresql-devel -y && \
postgresql-devel \
rpmdevtools -y && \
dnf clean all
RUN pip3 install XlsxWriter
# Postgres configuration
RUN mkdir -p /var/lib/postgres/data
RUN chown -R postgres:postgres /var/lib/postgres/data
......
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment