You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Setup Odoo source repositories, with branches in worktrees.
src=~/src
repositories="odoo enterprise design-themes"
branches="7.0 8.0 9.0 10.0 11.0 12.0 13.0 14.0 15.0 16.0 17.0 18.0 saas-18.2 saas-18.3 saas-18.4 19.0 saas-19.1 saas-19.2"
upgrade_repositories="upgrade-util upgrade"
security_repositories="odoo enterprise"
security_branches="8.0 9.0 10.0 11.0 12.0 13.0 14.0 15.0"# Create the source folder
mkdir $src# Clone Odoo repositoriesforrin$repositories;do mkdir $src/$r&&cd$src/$r&& git clone git@github.com:odoo/$r.git master &&cd master && git switch master;done# Rename remote origin to odoo, add remote odoo-dev, for all repositoriesforrin$repositories;do git -C $src/$r/master remote rename origin odoo && git -C $src/$r/master remote add odoo-dev git@github.com:odoo-dev/$r.git;done# Add a worktree for all branches for all repositoriesforbin$branches;doforrin$repositories;do git -C $src/$r/master worktree add ../$b$b;done;done# Clone Odoo Upgrade repositoriesforrin$upgrade_repositories;docd$src&& git clone git@github.com:odoo/$r.git;done# Security branches (for Odoo employees having access)# Add the remote security repositoryforrin$security_repositories;do git -C $src/$r/master remote add security git@github.com:odoo/$r-security.git;done# Update the remote tracking branch of security branches to the security remote, and reset the HEADforbin$security_branches;doforrin$security_repositories;do git -C $src/$r/$b fetch security $b&& git -C $src/$r/$b branch -u security/$b&& git -C $src/$r/$b reset --hard security/$b;done;done
Setup this tool
src=~/src
# Install requirements
sudo apt install podman postgresql pipx
sudo su - postgres -c "createuser $USER --createdb"# newer version of podman-compose than the one provided by Ubuntu distribution, to include# https://github.com/containers/podman-compose/pull/916
pipx install podman-compose==1.2.0
# Setup the repository and symlink the binary in a bin folder within the PATHcd$src&& git clone git@github.com:beledouxdenis/docker-odoo-ready.git
mkdir ~/bin
source~/.profile # Apply the addition of ~/bin in the PATH
ln -s $src/docker-odoo-ready/docker-odoo ~/bin/odoo