travis2docker 6.4.26__tar.gz → 6.4.28__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (66) hide show
  1. {travis2docker-6.4.26 → travis2docker-6.4.28}/.bumpversion.cfg +1 -1
  2. {travis2docker-6.4.26 → travis2docker-6.4.28}/PKG-INFO +43 -1
  3. {travis2docker-6.4.26 → travis2docker-6.4.28}/README.rst +42 -0
  4. {travis2docker-6.4.26 → travis2docker-6.4.28}/docs/conf.py +1 -1
  5. {travis2docker-6.4.26 → travis2docker-6.4.28}/setup.py +1 -1
  6. travis2docker-6.4.28/src/travis2docker/__init__.py +1 -0
  7. {travis2docker-6.4.26 → travis2docker-6.4.28}/src/travis2docker/templates/Dockerfile_deployv +1 -0
  8. {travis2docker-6.4.26 → travis2docker-6.4.28}/src/travis2docker/templates/build.sh +23 -1
  9. {travis2docker-6.4.26 → travis2docker-6.4.28}/src/travis2docker.egg-info/PKG-INFO +43 -1
  10. {travis2docker-6.4.26 → travis2docker-6.4.28}/tox.ini +1 -1
  11. travis2docker-6.4.26/src/travis2docker/__init__.py +0 -1
  12. {travis2docker-6.4.26 → travis2docker-6.4.28}/.coveragerc +0 -0
  13. {travis2docker-6.4.26 → travis2docker-6.4.28}/AUTHORS.rst +0 -0
  14. {travis2docker-6.4.26 → travis2docker-6.4.28}/CHANGELOG.rst +0 -0
  15. {travis2docker-6.4.26 → travis2docker-6.4.28}/CONTRIBUTING.rst +0 -0
  16. {travis2docker-6.4.26 → travis2docker-6.4.28}/LICENSE +0 -0
  17. {travis2docker-6.4.26 → travis2docker-6.4.28}/MANIFEST.in +0 -0
  18. {travis2docker-6.4.26 → travis2docker-6.4.28}/docs/authors.rst +0 -0
  19. {travis2docker-6.4.26 → travis2docker-6.4.28}/docs/changelog.rst +0 -0
  20. {travis2docker-6.4.26 → travis2docker-6.4.28}/docs/contributing.rst +0 -0
  21. {travis2docker-6.4.26 → travis2docker-6.4.28}/docs/index.rst +0 -0
  22. {travis2docker-6.4.26 → travis2docker-6.4.28}/docs/installation.rst +0 -0
  23. {travis2docker-6.4.26 → travis2docker-6.4.28}/docs/readme.rst +0 -0
  24. {travis2docker-6.4.26 → travis2docker-6.4.28}/docs/reference/index.rst +0 -0
  25. {travis2docker-6.4.26 → travis2docker-6.4.28}/docs/reference/travis2docker.rst +0 -0
  26. {travis2docker-6.4.26 → travis2docker-6.4.28}/docs/requirements.txt +0 -0
  27. {travis2docker-6.4.26 → travis2docker-6.4.28}/docs/spelling_wordlist.txt +0 -0
  28. {travis2docker-6.4.26 → travis2docker-6.4.28}/docs/usage.rst +0 -0
  29. {travis2docker-6.4.26 → travis2docker-6.4.28}/examples/example_1.yml +0 -0
  30. {travis2docker-6.4.26 → travis2docker-6.4.28}/examples/example_2.yml +0 -0
  31. {travis2docker-6.4.26 → travis2docker-6.4.28}/examples/example_3.yml +0 -0
  32. {travis2docker-6.4.26 → travis2docker-6.4.28}/examples/example_4.yml +0 -0
  33. {travis2docker-6.4.26 → travis2docker-6.4.28}/examples/example_5.yml +0 -0
  34. {travis2docker-6.4.26 → travis2docker-6.4.28}/requirements.txt +0 -0
  35. {travis2docker-6.4.26 → travis2docker-6.4.28}/setup.cfg +0 -0
  36. {travis2docker-6.4.26 → travis2docker-6.4.28}/src/travis2docker/__main__.py +0 -0
  37. {travis2docker-6.4.26 → travis2docker-6.4.28}/src/travis2docker/cli.py +0 -0
  38. {travis2docker-6.4.26 → travis2docker-6.4.28}/src/travis2docker/docker_helper/build.py +0 -0
  39. {travis2docker-6.4.26 → travis2docker-6.4.28}/src/travis2docker/exceptions.py +0 -0
  40. {travis2docker-6.4.26 → travis2docker-6.4.28}/src/travis2docker/git_run.py +0 -0
  41. {travis2docker-6.4.26 → travis2docker-6.4.28}/src/travis2docker/templates/.coveragerc +0 -0
  42. {travis2docker-6.4.26 → travis2docker-6.4.28}/src/travis2docker/templates/.vscode/extensions.json +0 -0
  43. {travis2docker-6.4.26 → travis2docker-6.4.28}/src/travis2docker/templates/.vscode/launch.json +0 -0
  44. {travis2docker-6.4.26 → travis2docker-6.4.28}/src/travis2docker/templates/.vscode/settings.json +0 -0
  45. {travis2docker-6.4.26 → travis2docker-6.4.28}/src/travis2docker/templates/10-build.sh +0 -0
  46. {travis2docker-6.4.26 → travis2docker-6.4.28}/src/travis2docker/templates/20-run.sh +0 -0
  47. {travis2docker-6.4.26 → travis2docker-6.4.28}/src/travis2docker/templates/Dockerfile +0 -0
  48. {travis2docker-6.4.26 → travis2docker-6.4.28}/src/travis2docker/templates/entrypoint.sh +0 -0
  49. {travis2docker-6.4.26 → travis2docker-6.4.28}/src/travis2docker/templates/entrypoint_deployv.sh +0 -0
  50. {travis2docker-6.4.26 → travis2docker-6.4.28}/src/travis2docker/templates/rvm_env.sh +0 -0
  51. {travis2docker-6.4.26 → travis2docker-6.4.28}/src/travis2docker/travis-ci-apt-source-whitelist/.git +0 -0
  52. {travis2docker-6.4.26 → travis2docker-6.4.28}/src/travis2docker/travis-ci-apt-source-whitelist/.gitignore +0 -0
  53. {travis2docker-6.4.26 → travis2docker-6.4.28}/src/travis2docker/travis-ci-apt-source-whitelist/.travis.yml +0 -0
  54. {travis2docker-6.4.26 → travis2docker-6.4.28}/src/travis2docker/travis-ci-apt-source-whitelist/LICENSE +0 -0
  55. {travis2docker-6.4.26 → travis2docker-6.4.28}/src/travis2docker/travis-ci-apt-source-whitelist/README.md +0 -0
  56. {travis2docker-6.4.26 → travis2docker-6.4.28}/src/travis2docker/travis-ci-apt-source-whitelist/add_all.rb +0 -0
  57. {travis2docker-6.4.26 → travis2docker-6.4.28}/src/travis2docker/travis-ci-apt-source-whitelist/bin/travis-add-source +0 -0
  58. {travis2docker-6.4.26 → travis2docker-6.4.28}/src/travis2docker/travis-ci-apt-source-whitelist/ubuntu.json +0 -0
  59. {travis2docker-6.4.26 → travis2docker-6.4.28}/src/travis2docker/travis2docker.py +0 -0
  60. {travis2docker-6.4.26 → travis2docker-6.4.28}/src/travis2docker.egg-info/SOURCES.txt +0 -0
  61. {travis2docker-6.4.26 → travis2docker-6.4.28}/src/travis2docker.egg-info/dependency_links.txt +0 -0
  62. {travis2docker-6.4.26 → travis2docker-6.4.28}/src/travis2docker.egg-info/entry_points.txt +0 -0
  63. {travis2docker-6.4.26 → travis2docker-6.4.28}/src/travis2docker.egg-info/not-zip-safe +0 -0
  64. {travis2docker-6.4.26 → travis2docker-6.4.28}/src/travis2docker.egg-info/requires.txt +0 -0
  65. {travis2docker-6.4.26 → travis2docker-6.4.28}/src/travis2docker.egg-info/top_level.txt +0 -0
  66. {travis2docker-6.4.26 → travis2docker-6.4.28}/tests/test_travis2docker.py +0 -0
@@ -1,5 +1,5 @@
1
1
  [bumpversion]
2
- current_version = 6.4.26
2
+ current_version = 6.4.28
3
3
  commit = True
4
4
  tag = True
5
5
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: travis2docker
3
- Version: 6.4.26
3
+ Version: 6.4.28
4
4
  Summary: Script to generate Dockerfile from .travis.yml file
5
5
  Home-page: https://github.com/vauxoo/travis2docker
6
6
  Author: Vauxoo
@@ -88,6 +88,48 @@ To create container:
88
88
  To run the test (into of container):
89
89
  `/entrypoint.sh`
90
90
 
91
+ Optional tools (``--build-env-args``)
92
+ =====================================
93
+
94
+ Some development tools are **not** installed by default. They are enabled with
95
+ a flag passed as a build environment variable using ``--build-env-args``, which
96
+ generates an ``ENV <FLAG>=TRUE`` line in the Dockerfile. If the flag is not
97
+ defined, the installation step is skipped.
98
+
99
+ .. list-table::
100
+ :widths: 30 70
101
+ :header-rows: 1
102
+
103
+ * - Flag
104
+ - Installs
105
+ * - ``VIM_INSTALL``
106
+ - vim + spf13-vim, vim-openerp, jedi-vim, wakatime and the pylint_odoo/eslint syntastic configuration
107
+ * - ``ZSH_INSTALL``
108
+ - zsh + oh-my-zsh with the ``odoo-shippable`` theme
109
+
110
+ Example enabling more than one::
111
+
112
+ travisfile2dockerfile --build-env-args VIM_INSTALL ZSH_INSTALL \
113
+ git@github.com:Vauxoo/forecast.git 8.0
114
+
115
+ codebase-memory-deployv
116
+ =======================
117
+
118
+ The image ships with `codebase-memory-deployv
119
+ <https://pypi.org/project/codebase-memory-deployv>`__, a wrapper that deploys
120
+ `codebase-memory-mcp <https://github.com/DeusData/codebase-memory-mcp>`__
121
+ (code knowledge graph for AI agents) for instances following this layout.
122
+
123
+ The repository is **not** indexed while building the image. Run inside the
124
+ container::
125
+
126
+ codebase-memory-deployv
127
+
128
+ It installs codebase-memory-mcp if it is missing, derives the project name from
129
+ ``${MAIN_REPO_FULL_PATH}/variables.sh`` (e.g. ``forecast_17.0``), and indexes
130
+ ``/home/odoo/instance`` in batches of modules. Indexing takes a few minutes on
131
+ a big instance, so it is left as an explicit step for the user.
132
+
91
133
  Depends
92
134
  =======
93
135
 
@@ -95,6 +95,48 @@ To create container:
95
95
  To run the test (into of container):
96
96
  `/entrypoint.sh`
97
97
 
98
+ Optional tools (``--build-env-args``)
99
+ =====================================
100
+
101
+ Some development tools are **not** installed by default. They are enabled with
102
+ a flag passed as a build environment variable using ``--build-env-args``, which
103
+ generates an ``ENV <FLAG>=TRUE`` line in the Dockerfile. If the flag is not
104
+ defined, the installation step is skipped.
105
+
106
+ .. list-table::
107
+ :widths: 30 70
108
+ :header-rows: 1
109
+
110
+ * - Flag
111
+ - Installs
112
+ * - ``VIM_INSTALL``
113
+ - vim + spf13-vim, vim-openerp, jedi-vim, wakatime and the pylint_odoo/eslint syntastic configuration
114
+ * - ``ZSH_INSTALL``
115
+ - zsh + oh-my-zsh with the ``odoo-shippable`` theme
116
+
117
+ Example enabling more than one::
118
+
119
+ travisfile2dockerfile --build-env-args VIM_INSTALL ZSH_INSTALL \
120
+ git@github.com:Vauxoo/forecast.git 8.0
121
+
122
+ codebase-memory-deployv
123
+ =======================
124
+
125
+ The image ships with `codebase-memory-deployv
126
+ <https://pypi.org/project/codebase-memory-deployv>`__, a wrapper that deploys
127
+ `codebase-memory-mcp <https://github.com/DeusData/codebase-memory-mcp>`__
128
+ (code knowledge graph for AI agents) for instances following this layout.
129
+
130
+ The repository is **not** indexed while building the image. Run inside the
131
+ container::
132
+
133
+ codebase-memory-deployv
134
+
135
+ It installs codebase-memory-mcp if it is missing, derives the project name from
136
+ ``${MAIN_REPO_FULL_PATH}/variables.sh`` (e.g. ``forecast_17.0``), and indexes
137
+ ``/home/odoo/instance`` in batches of modules. Indexing takes a few minutes on
138
+ a big instance, so it is left as an explicit step for the user.
139
+
98
140
  Depends
99
141
  =======
100
142
 
@@ -26,7 +26,7 @@ project = u'travis2docker'
26
26
  year = '2016'
27
27
  author = u'Vauxoo'
28
28
  copyright = '{0}, {1}'.format(year, author)
29
- version = release = u'6.4.26'
29
+ version = release = u'6.4.28'
30
30
 
31
31
  pygments_style = 'trac'
32
32
  templates_path = ['.']
@@ -13,7 +13,7 @@ def read(*names, **kwargs):
13
13
 
14
14
  setup(
15
15
  name="travis2docker",
16
- version="6.4.26",
16
+ version="6.4.28",
17
17
  license="BSD-3-Clause",
18
18
  description="Script to generate Dockerfile from .travis.yml file",
19
19
  long_description="%s\n%s"
@@ -0,0 +1 @@
1
+ __version__ = "6.4.28"
@@ -23,6 +23,7 @@ ENV {{ build_env_arg }}=TRUE
23
23
 
24
24
  # Create cluster with odoo as owner and use environment variables instead of odoo cfg to connect
25
25
  RUN . /home/odoo/build.sh && \
26
+ set_odoo_ids && \
26
27
  install_dev_tools && \
27
28
  service_postgres_without_sudo odoo odoo && \
28
29
  install_pgcli_venv && \
@@ -102,7 +102,8 @@ install_dev_tools(){
102
102
  pre-commit-vauxoo \
103
103
  pg-activity \
104
104
  nodeenv \
105
- pdbpp
105
+ pdbpp \
106
+ codebase-memory-deployv
106
107
 
107
108
  # Symlinks used by vscode and possibly other tools.
108
109
  PCV_DIR="$(python3 -c "import pre_commit_vauxoo as pcv; print(pcv.__path__[0])")/cfg"
@@ -216,6 +217,27 @@ chown_all(){
216
217
  chown -R odoo:odoo /etc/postgresql-common/common-vauxoo.conf
217
218
  }
218
219
 
220
+ set_odoo_ids(){
221
+ # OrchestSH images (ORCHESTSH=True) use UID/GID 5410 for the odoo user;
222
+ # older images use 1000/1001. A mismatch causes permission issues when
223
+ # sharing files across containers, so align both to 5410 when they differ.
224
+ CURRENT_UID=$(id -u odoo)
225
+ CURRENT_GID=$(id -g odoo)
226
+ NEW_ID=5410
227
+ if [ "${CURRENT_GID}" != "${NEW_ID}" ]; then
228
+ echo "Changing odoo GID from ${CURRENT_GID} to ${NEW_ID}"
229
+ groupmod -g "${NEW_ID}" odoo
230
+ # groupmod does not re-chown any file
231
+ find / -xdev -gid "${CURRENT_GID}" -exec chown -h ":${NEW_ID}" {} + 2>/dev/null || true
232
+ fi
233
+ if [ "${CURRENT_UID}" != "${NEW_ID}" ]; then
234
+ echo "Changing odoo UID from ${CURRENT_UID} to ${NEW_ID}"
235
+ usermod -u "${NEW_ID}" odoo
236
+ # usermod only re-chowns files inside the home directory
237
+ find / -xdev -uid "${CURRENT_UID}" -exec chown -h "${NEW_ID}" {} + 2>/dev/null || true
238
+ fi
239
+ }
240
+
219
241
  configure_vim(){
220
242
  git_clone_copy(){
221
243
  URL="${1}"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: travis2docker
3
- Version: 6.4.26
3
+ Version: 6.4.28
4
4
  Summary: Script to generate Dockerfile from .travis.yml file
5
5
  Home-page: https://github.com/vauxoo/travis2docker
6
6
  Author: Vauxoo
@@ -88,6 +88,48 @@ To create container:
88
88
  To run the test (into of container):
89
89
  `/entrypoint.sh`
90
90
 
91
+ Optional tools (``--build-env-args``)
92
+ =====================================
93
+
94
+ Some development tools are **not** installed by default. They are enabled with
95
+ a flag passed as a build environment variable using ``--build-env-args``, which
96
+ generates an ``ENV <FLAG>=TRUE`` line in the Dockerfile. If the flag is not
97
+ defined, the installation step is skipped.
98
+
99
+ .. list-table::
100
+ :widths: 30 70
101
+ :header-rows: 1
102
+
103
+ * - Flag
104
+ - Installs
105
+ * - ``VIM_INSTALL``
106
+ - vim + spf13-vim, vim-openerp, jedi-vim, wakatime and the pylint_odoo/eslint syntastic configuration
107
+ * - ``ZSH_INSTALL``
108
+ - zsh + oh-my-zsh with the ``odoo-shippable`` theme
109
+
110
+ Example enabling more than one::
111
+
112
+ travisfile2dockerfile --build-env-args VIM_INSTALL ZSH_INSTALL \
113
+ git@github.com:Vauxoo/forecast.git 8.0
114
+
115
+ codebase-memory-deployv
116
+ =======================
117
+
118
+ The image ships with `codebase-memory-deployv
119
+ <https://pypi.org/project/codebase-memory-deployv>`__, a wrapper that deploys
120
+ `codebase-memory-mcp <https://github.com/DeusData/codebase-memory-mcp>`__
121
+ (code knowledge graph for AI agents) for instances following this layout.
122
+
123
+ The repository is **not** indexed while building the image. Run inside the
124
+ container::
125
+
126
+ codebase-memory-deployv
127
+
128
+ It installs codebase-memory-mcp if it is missing, derives the project name from
129
+ ``${MAIN_REPO_FULL_PATH}/variables.sh`` (e.g. ``forecast_17.0``), and indexes
130
+ ``/home/odoo/instance`` in batches of modules. Indexing takes a few minutes on
131
+ a big instance, so it is left as an explicit step for the user.
132
+
91
133
  Depends
92
134
  =======
93
135
 
@@ -70,7 +70,7 @@ commands =
70
70
  python setup.py check --strict --metadata --restructuredtext
71
71
  ; We are using git submodule in the package
72
72
  ; check-manifest {toxinidir}
73
- pre-commit-vauxoo --compatibility-version=900.900.900.900.900.900.900.900.900.900 -t all -p src/ -p tests/ -p setup.py
73
+ pre-commit-vauxoo --compatibility-version=20.20.20.20.20.20.20.20.20.20 -t all -p src/ -p tests/ -p setup.py
74
74
 
75
75
  [testenv:build]
76
76
  skip_install = true
@@ -1 +0,0 @@
1
- __version__ = "6.4.26"
File without changes
File without changes