Replies: 2 comments 3 replies
-
This already exists. Instead of the environment variable ODOO_VERSION, put the commit sha. |
Beta Was this translation helpful? Give feedback.
2 replies
-
I think that there are 2 proper solutions for your problem:
We use option 1, which I think is better, and besides it already exists. If you want option 2 (that's what you're asking here, actually), then the place to implement it and to ask for feedback is git-aggregator itself, because it isn't specific to doodba. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Good morning,
I was talking with a friend yesterday about the usage of
git-aggregator
instead of git submodules to manage the addons of a project, because he says that with withgit-aggregator
the state of the modules are automatically updated to the latest commit if you aggregate.For example if you want to clone a project the addons are not going to have the same state due to
gitaggregator
and basically each time you rebuild the image are going to update to the latest version. I am not judging if this is god or bad approach, but I think that can be a functionality of doodba (or of git-aggregator) to be able to point a certain state/commits.I made 2 script that does this functionality( the first approach, probably is a better or simpler way.)
save_last_commit.py
➡️ this save the commits state in a project when you run the script.checkout_status.py
➡️ thit checkout the repo to the commit insave_last_commit.py
I would like to know if this is an interesting feature to be added to doodba. this status should be saved in de filestore or somewhere in a permanent volume to be able to backup. And later on be able to recover passing this file via the
docker-compose.yaml
and a VARIABLE to runcheckout_status.py
or not.Maybe some concepts are wrong because I am relatively new to doodba and git-aggregater, maybe is a way to do that and I do not know...
Regards and thanks again for this project!
save_last_commit.py
checkout_status.py
Beta Was this translation helpful? Give feedback.
All reactions