diff --git a/.dockerignore b/.dockerignore deleted file mode 100644 index 72e8ffc0d..000000000 --- a/.dockerignore +++ /dev/null @@ -1 +0,0 @@ -* diff --git a/Dockerfile b/Dockerfile deleted file mode 100644 index bfc85af30..000000000 --- a/Dockerfile +++ /dev/null @@ -1,76 +0,0 @@ -# This dockerfile is only a draft, it never worked and -# the dependencies are now outdated. - -FROM ubuntu:18.04 - -ENV DEBIAN_FRONTEND=noninteractive - -# Install the basics -RUN ln -fs /usr/share/zoneinfo/Europe/Brussels /etc/localtime && \ - apt-get update && apt-get install -y curl git postgresql python3-psycopg2 python3-pip && \ - dpkg-reconfigure --frontend noninteractive tzdata - -# Install wkhtmltopdf 0.12.5 -RUN curl -L https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.5/wkhtmltox_0.12.5-1.bionic_amd64.deb \ - --output wkhtmltox_0.12.5-1.bionic_amd64.deb && \ - (dpkg -i wkhtmltox_0.12.5-1.bionic_amd64.deb || apt-get -f install -y) && \ - ln -s /usr/local/bin/wkhtmltoimage /usr/bin/wkhtmltoimage && \ - ln -s /usr/local/bin/wkhtmltopdf /usr/bin/wkhtmltopdf && \ - rm -f wkhtmltox_0.12.5-1.bionic_amd64.deb - -# Node (ubuntu 14 version of node is Old as f*) -RUN curl -sL https://deb.nodesource.com/setup_10.x | bash - && \ - apt-get install -y nodejs && \ - npm install -g less less-plugin-clean-css - - -RUN useradd -ms /bin/bash odoo -USER odoo -RUN mkdir -p /home/odoo/extra-addons -WORKDIR /home/odoo -RUN git clone https://github.com/coopiteasy/OCB.git /home/odoo/odoo -b 12.0 --depth 1 && \ - git clone https://github.com/coopiteasy/addons.git /home/odoo/addons -b 12.0 --depth 1 && \ - git clone https://github.com/beescoop/Obeesdoo.git /home/odoo/obeesdoo -b 12.0 --depth 1 && \ - git clone https://github.com/OCA/partner-contact.git /home/odoo/partner-contact -b 12.0 --depth 1 && \ - # git clone https://github.com/coopiteasy/procurement-addons.git /home/odoo/procurement-addons -b 12.0 --depth 1 && \ - git clone https://github.com/coopiteasy/vertical-cooperative.git /home/odoo/vertical-cooperative -b 12.0 --depth 1 && \ - git clone https://github.com/coopiteasy/account-financial-reporting.git /home/odoo/account-financial-reporting -b 12.0 --depth 1 && \ - git clone https://github.com/coopiteasy/account-financial-tools.git /home/odoo/account-financial-tools -b 12.0 --depth 1 && \ - git clone https://github.com/coopiteasy/bank-payment.git /home/odoo/bank-payment -b 12.0 --depth 1 && \ - git clone https://github.com/coopiteasy/l10n-belgium.git /home/odoo/l10n-belgium -b 12.0 --depth 1 && \ - git clone https://github.com/coopiteasy/mis-builder.git /home/odoo/mis-builder -b 12.0 --depth 1 && \ - git clone https://github.com/coopiteasy/pos.git /home/odoo/pos -b 12.0 --depth 1 && \ - git clone https://github.com/coopiteasy/reporting-engine.git /home/odoo/reporting-engine -b 12.0 --depth 1 && \ - git clone https://github.com/coopiteasy/server-tools.git /home/odoo/server-tools -b 12.0 --depth 1 && \ - git clone https://github.com/coopiteasy/web.git /home/odoo/web -b 12.0 --depth 1 && \ - git clone https://github.com/coopiteasy/website.git /home/odoo/website -b 12.0 --depth 1 && \ - echo "That's all folks!" - -USER root -# RUN pip4 install --upgrade pip -# adding dependencies here so that we don't have to rebuild the previous steps if it changes. -# python3 c header files -# pillow dependencies -# more pillow dependencies -# python3-lxml -# python3-ldap -RUN apt-get install -y python3-dev \ - libtiff5-dev libjpeg8-dev zlib1g-dev libfreetype6-dev liblcms2-dev \ - libwebp-dev tcl8.6-dev tk8.6-dev \ - libxml2-dev libxslt1-dev \ - libsasl2-dev libldap2-dev libssl-dev - - -USER odoo -# Installing in user space because system-libraries cannot be uninstalled and conflict. -# Simpler than creating a virtualenv -RUN sed -i '/psycopg2/d' /home/odoo/odoo/requirements.txt && \ - sed -i '/python3-ldap/d' /home/odoo/odoo/requirements.txt && \ - sed -i '/xlwt/d' /home/odoo/odoo/requirements.txt && \ - sed -i '/xlrd/d' /home/odoo/odoo/requirements.txt && \ - pip3 install --user -r /home/odoo/odoo/requirements.txt \ - -r /home/odoo/reporting-engine/requirements.txt \ - -r /home/odoo/server-tools/requirements.txt - -WORKDIR /home/odoo/odoo -CMD python3 odoo.py diff --git a/docker-compose.yml b/docker-compose.yml deleted file mode 100644 index 821df9454..000000000 --- a/docker-compose.yml +++ /dev/null @@ -1,23 +0,0 @@ -# this is only a draft, it never worked. -version: "3" -services: - odoo: - build: . - command: python3 odoo-bin -c odoo.conf - depends_on: - - db - ports: - - "8069:8069" - volumes: - - ./odoo.conf:/home/odoo/odoo/odoo.conf:Z - - ./:/home/odoo/obeesdoo:Z - db: - image: postgres:10 - environment: - - POSTGRES_DB=beescoop - - POSTGRES_PASSWORD=odoo - - POSTGRES_USER=odoo - volumes: - - ./initial-data-load:/docker-entrypoint-initdb.d:Z - ports: - - "5432:5432" diff --git a/install-odoo-docker.md b/install-odoo-docker.md deleted file mode 100644 index 8f108f11c..000000000 --- a/install-odoo-docker.md +++ /dev/null @@ -1,70 +0,0 @@ -# Create development environment using docker - -> Tested on fedora 31 - -## 1) install Docker - -Checkout the [installation guide](https://docs.docker.com/install/) from docker. TODO: -make it work with [podman](https://podman.io/). - -Be sure to start the docker daemon using `systemctl start docker` (enable if you want it -to persist on reboot). Depending on the distribution, you might need to either use sudo -or create a docker group. The following instructions assume that you can use docker -without being root, add sudo if necessary. - -## 2) Build the images (odoo - postgresql) - -~ 15 minutes - -```bash -docker-compose build -``` - -## 3) Load data in postgresql - -Copy the sql.gz dump into the `initial-data-load` folder. Prefix it with 02, so that it -is loaded after user creation and before the crons are stopped. - -```bash -docker-compose up db -``` - -This could take a while (~20 minutes) depending on the data dump you are using. In order -to reset your database, remove the container. (It will have to rebuild the database the -next time you start it). - -```bash -docker-compose rm db -``` - -## 4) Run the project - -If you are not using a pre-created db run - -```bash -docker-compose run odoo python3 odoo-bin -d beescoop -i base -c odoo.conf -``` - -All the modules need to be updated in order to be recognised. To do that run - -```bash -docker-compose run -p 8096:8096 odoo python odoo.py -c odoo.conf -d beescoop -u all -``` - -Once the update has been done, you can simply run the whole project by running - -```bash -docker-compose up -``` - -I like to start the database in the background to only have the logs of the application. - -```bash -docker-compose up -d db -docker-compose up odoo -``` - -## 5) Login - -To login you may either use your account or the admin account whose password should have -been reset to admin. diff --git a/install-odoo-linux-server.md b/install-odoo-linux-server.md index a18508859..f99e28930 100644 --- a/install-odoo-linux-server.md +++ b/install-odoo-linux-server.md @@ -49,7 +49,7 @@ ##### 10) Installer wkhtml to pdf 0.12.5 !! (pas une autre) (sur une machine 64 bit avec un ubuntu 64bit 18.04) # apt-get install fontconfig libfontconfig1 libxrender1 fontconfig-config - # wget https://downloads.wkhtmltopdf.org/0.12/0.12.5/wkhtmltox_0.12.5-1.bionic_amd64.deb + # wget https://downloads.wkhtmltopdf.org/0.12/0.12.5/wkhtmltox_0.12.5-1.bionic_amd64.deb # dpkg -i wkhtmltox-0.12.5_linux-trusty-amd64.deb # cd /usr/local/bin/ # cp wkhtmltoimage /usr/bin/wkhtmltoimage