Merge pull request #13 from ERPLibre/docker_release_documentation
Docker release documentation
This commit is contained in:
commit
dd2719d8a7
8 changed files with 24 additions and 8 deletions
|
|
@ -54,11 +54,6 @@ Run:
|
|||
./run.sh --stop-after-init -i user_test,disable_mail_server --dev all -d DATABASE
|
||||
```
|
||||
|
||||
# TODO
|
||||
```bash
|
||||
./script/git_change_remote.py
|
||||
```
|
||||
|
||||
## Change git url https to git
|
||||
This will update all urls in git format:
|
||||
```bash
|
||||
|
|
@ -102,7 +97,7 @@ To regenerate only manifest.xml.
|
|||
./script/fork_project_ERPLibre.py --skip_fork
|
||||
```
|
||||
|
||||
Check if manifest contains "auto_install" and change the value to False.
|
||||
Check if manifest contains "auto_install" and change the value to False.
|
||||
```bash
|
||||
./script/repo_remove_auto_install.py
|
||||
```
|
||||
|
|
|
|||
|
|
@ -30,6 +30,9 @@ git push --tags
|
|||
./.venv/repo forall -pc "git diff ERPLibre/v#.#.#..HEAD"
|
||||
```
|
||||
|
||||
## Push docker
|
||||
[Build and push guide](../docker/README.md) at section `# Update docker`.
|
||||
|
||||
# TIPS
|
||||
## Compare repo differences with another ERPLibre project
|
||||
To generate a list of differences between repo git commit
|
||||
|
|
|
|||
|
|
@ -21,6 +21,7 @@ services:
|
|||
# See the volume section at the end of the file
|
||||
- erplibre_data_dir:/home/odoo/.local/share/Odoo/
|
||||
- erplibre_conf:/etc/odoo
|
||||
restart: always
|
||||
|
||||
db:
|
||||
image: postgres:12.3
|
||||
|
|
@ -31,8 +32,9 @@ services:
|
|||
PGDATA: /var/lib/postgresql/data/pgdata
|
||||
volumes:
|
||||
- erplibre-db-data:/var/lib/postgresql/data/pgdata
|
||||
restart: always
|
||||
|
||||
# We configure volume without specific destination to let docket manage it. To configure it through docker use (read related documentation before continuing) :
|
||||
# We configure volume without specific destination to let docker manage it. To configure it through docker use (read related documentation before continuing) :
|
||||
# - docker volume --help
|
||||
# - docker-compose down --help
|
||||
volumes:
|
||||
|
|
|
|||
|
|
@ -77,9 +77,15 @@ docker stats erplibre_ERPLibre_1
|
|||
|
||||
### Cleaning
|
||||
|
||||
Delete all system
|
||||
```bash
|
||||
docker system prune -a
|
||||
```
|
||||
|
||||
Delete docker image
|
||||
```bash
|
||||
docker image prune
|
||||
docker rmi $(docker images -q)
|
||||
```
|
||||
|
||||
Delete volumes
|
||||
|
|
@ -110,5 +116,8 @@ And restart docker service. You can delete or move all older locations of docker
|
|||
When building your docker with script
|
||||
> ./script/docker_build.sh
|
||||
|
||||
List your docker version
|
||||
> docker image
|
||||
|
||||
You need to push your docker image and update your tag, like 1.0.1:
|
||||
> docker push technolibre/erplibre:1.0.1
|
||||
> docker push technolibre/erplibre:VERSION
|
||||
|
|
|
|||
|
|
@ -94,6 +94,7 @@
|
|||
<project name="odoo-entertainment-addons.git" path="addons/Numigi_odoo-entertainment-addons" remote="Numigi" revision="12.0_dev" groups="addons"/>
|
||||
<project name="odoo-git-addons.git" path="addons/Numigi_odoo-git-addons" remote="Numigi" revision="12.0_dev" groups="addons"/>
|
||||
<project name="odoo-hr-addons.git" path="addons/Numigi_odoo-hr-addons" remote="Numigi" groups="addons"/>
|
||||
<project name="odoo-module-migrator.git" path="script/OCA_odoo-module-migrator" remote="OCA" revision="master" groups="odoo"/>
|
||||
<project name="odoo-partner-addons.git" path="addons/Numigi_odoo-partner-addons" remote="Numigi" revision="12.0_dev" groups="addons"/>
|
||||
<project name="odoo-product-addons.git" path="addons/Numigi_odoo-product-addons" remote="Numigi" revision="12.0_dev" groups="addons"/>
|
||||
<project name="odoo-port-docs.git" path="doc/itpp-labs_odoo-port-docs" remote="itpp-labs" revision="master" groups="odoo"/>
|
||||
|
|
|
|||
|
|
@ -39,6 +39,8 @@ def get_config():
|
|||
help="Ignore fork to generate only manifest.")
|
||||
parser.add_argument('-f', "--force", action="store_true",
|
||||
help="Force rewrite remote.")
|
||||
parser.add_argument("--fast", action="store_true",
|
||||
help="Ignore if repo already exist.")
|
||||
parser.add_argument('--github_token', dest="github_token",
|
||||
default=config.get(CST_EL_GITHUB_TOKEN),
|
||||
help="GitHub token generated by user")
|
||||
|
|
@ -69,6 +71,8 @@ def main():
|
|||
for repo in lst_repo:
|
||||
i += 1
|
||||
print(f"Nb element {i}/{total} - {repo.get('project_name')}")
|
||||
if config.fast and repo.get("is_submodule") and os.path.isdir(repo.get("path")):
|
||||
continue
|
||||
url = repo.get("url")
|
||||
|
||||
try:
|
||||
|
|
|
|||
|
|
@ -153,6 +153,7 @@ if [[ ${EL_MINIMAL_ADDONS} = "False" ]]; then
|
|||
printf "${EL_HOME}/doc/itpp-labs_odoo-port-docs," >> ${EL_CONFIG_FILE}
|
||||
printf "${EL_HOME}/doc/itpp-labs_odoo-test-docs," >> ${EL_CONFIG_FILE}
|
||||
printf "${EL_HOME}/doc/odoo_documentation-user," >> ${EL_CONFIG_FILE}
|
||||
printf "${EL_HOME}/script/OCA_odoo-module-migrator," >> ${EL_CONFIG_FILE}
|
||||
fi
|
||||
printf "\n" >> ${EL_CONFIG_FILE}
|
||||
|
||||
|
|
|
|||
|
|
@ -124,3 +124,4 @@ https://github.com/itpp-labs/odoo-development.git,doc,master,
|
|||
https://github.com/itpp-labs/odoo-port-docs.git,doc,master,
|
||||
https://github.com/itpp-labs/odoo-test-docs.git,doc,master,
|
||||
https://github.com/odoo/documentation-user.git,doc,,
|
||||
https://github.com/OCA/odoo-module-migrator.git,script,master,
|
||||
|
|
|
|||
|
Loading…
Reference in a new issue