Basic Odoo project template used by docky
This repo contains all the basic files needed to create an Odoo project from scratch using ak command-line tool developed by Akretion.
To start a new Odoo project, you don't need to download this repo.
For that we deeply recommand you to install them with pipx
pipx install docky
pipx install copier
pipx install git+https://github.com/akretion/ak.git@master
- Create an empty folder for your Odoo projet and run
copier copy
in it
copier copy https://github.com/akretion/docky-odoo-template-shared .
- Create the ".env" file by running copier copy again but with a different template
copier copy https://github.com/akretion/docky-odoo-template-personal .
- Download the Odoo source code and other external modules specified in the spec.yaml
ak build
from the spec.yaml's folder
cd odoo
ak clone
ak build
ak use the git-aggregator tool by Acsone. More information on the git-aggregator repo to understand how to fill the spec.yaml file.
- Once all the code is downloaded, go back to your project's root folder and launch
docky run
cd ..
docky run
On the first docky run
, docky will download the Odoo image referenced in the DockerFile and run your different docker-compose files (basically docker-compose.yml, dev.docker-compose.yml or prod.docker-compose.yml) following the environment's variables registered in your .env file.
To reload the Odoo docker image or to update your docky after changing you environment variables, run docky build
.
More information on : docky.
On gitlab, mark the branch as protected
From the gitlab pipeline, run the "publish" job to create an updated docker image