-
Notifications
You must be signed in to change notification settings - Fork 304
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FIX] Not use python-dev on v17, and v16
-This is because it is incompatible with debian bookworm
- Loading branch information
1 parent
e749153
commit af0ead9
Showing
42 changed files
with
267 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
ARG ODOO_VERSION | ||
FROM tecnativa/doodba:${ODOO_VERSION}-onbuild |
14 changes: 14 additions & 0 deletions
14
tests/scaffoldings/dependencies_ge_16/custom/build.d/150-conditional-ruby
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/usr/bin/env python | ||
# -*- coding: utf-8 -*- | ||
"""Add ruby as a conditional dependency.""" | ||
|
||
import os | ||
|
||
from doodbalib import ODOO_VERSION | ||
|
||
if float(ODOO_VERSION) >= 13: | ||
# These Doodba versions still can use the ruby gem autoinstaller, but | ||
# need ruby to be manually installed because it is not in the base image | ||
# by default (it was until Odoo 12.0) | ||
with open("/opt/odoo/custom/dependencies/000-apt-ruby.txt", "w") as fd: | ||
fd.writelines(["ruby"]) |
2 changes: 2 additions & 0 deletions
2
tests/scaffoldings/dependencies_ge_16/custom/dependencies/070-apt-bc.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# This line should be ignored | ||
bc |
2 changes: 2 additions & 0 deletions
2
tests/scaffoldings/dependencies_ge_16/custom/dependencies/150-npm-aloha_world-install.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# This line should be ignored | ||
test-npm-install |
2 changes: 2 additions & 0 deletions
2
tests/scaffoldings/dependencies_ge_16/custom/dependencies/200-pip-without-ext
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# Compiled locally, which would fail if `apt_build.txt` fails | ||
pycrypto==2.6.1 --no-binary :all: |
2 changes: 2 additions & 0 deletions
2
tests/scaffoldings/dependencies_ge_16/custom/dependencies/270-gem.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# This line should be ignored | ||
hello-world |
2 changes: 2 additions & 0 deletions
2
tests/scaffoldings/dependencies_ge_16/custom/dependencies/apt-without-sequence.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# This package WON'T be installed | ||
busybox |
6 changes: 6 additions & 0 deletions
6
tests/scaffoldings/dependencies_ge_16/custom/dependencies/apt_build.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# This installs gcc among other things | ||
build-essential | ||
# This is the basic need to build any python extensions in v11- | ||
python3-dev | ||
# Just to test it is removed later | ||
openssh-server |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
version: "2.1" | ||
services: | ||
odoo: | ||
build: | ||
context: ./ | ||
args: | ||
COMPILE: "false" | ||
ODOO_VERSION: $ODOO_MINOR | ||
WITHOUT_DEMO: "false" | ||
tty: true | ||
depends_on: | ||
- db | ||
environment: | ||
PYTHONOPTIMIZE: "" | ||
UNACCENT: "false" | ||
volumes: | ||
- filestore:/var/lib/odoo:z | ||
|
||
db: | ||
image: postgres:${DB_VERSION}-alpine | ||
environment: | ||
POSTGRES_USER: odoo | ||
POSTGRES_PASSWORD: odoopassword | ||
volumes: | ||
- db:/var/lib/postgresql/data:z | ||
|
||
volumes: | ||
db: | ||
filestore: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
ARG ODOO_VERSION | ||
FROM tecnativa/doodba:${ODOO_VERSION}-onbuild |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/bin/bash | ||
set -ex | ||
touch /home/odoo/created-at-build |
3 changes: 3 additions & 0 deletions
3
tests/scaffoldings/dotd_ge_16/custom/build.d/100-assert-touched
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/bin/bash | ||
set -ex | ||
test -f /home/odoo/created-at-build |
4 changes: 4 additions & 0 deletions
4
tests/scaffoldings/dotd_ge_16/custom/build.d/101-assert-aggregation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/bash | ||
# Git aggregation is performed at step 100 | ||
set -ex | ||
test -d /opt/odoo/custom/src/odoo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/bin/bash | ||
set -ex | ||
ln -s brokenpath auto/addons/dummy_addon |
7 changes: 7 additions & 0 deletions
7
tests/scaffoldings/dotd_ge_16/custom/build.d/201-assert-dependencies
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/usr/bin/env bash | ||
# Dependencies are processed at step 200 | ||
set -ex | ||
which busybox | ||
hello-world | ||
node -e "require('test-npm-install')" | ||
python -c "import numpy, Crypto" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
[test-conf] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# This line should be ignored | ||
busybox | ||
ruby | ||
ninja-build | ||
patchelf |
6 changes: 6 additions & 0 deletions
6
tests/scaffoldings/dotd_ge_16/custom/dependencies/apt_build.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# This installs gcc among other things | ||
build-essential | ||
# This is the basic need to build any python extensions on v11- | ||
python3-dev | ||
# Just to test it is removed after building | ||
openssh-server |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# This line should be ignored | ||
hello-world |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# This line should be ignored | ||
test-npm-install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# Compiled locally, which would fail if `apt_build.txt` fails | ||
pycrypto==2.6.1 --no-binary :all: | ||
# External dependency files can be included too; example: numpy | ||
-r https://raw.githubusercontent.com/Tecnativa/doodba/6cec8ea6eefa9d8de8cff103cfca6e373f8fe910/tests/scaffoldings/dotd/custom/src/dummy_repo/requirements.txt |
3 changes: 3 additions & 0 deletions
3
tests/scaffoldings/dotd_ge_16/custom/entrypoint.d/check-requirements
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/usr/bin/env python | ||
# -*- coding: utf-8 -*- | ||
import numpy |
8 changes: 8 additions & 0 deletions
8
tests/scaffoldings/dotd_ge_16/custom/entrypoint.d/pip-install-user
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/bin/bash | ||
set -ex | ||
|
||
# Check that --user installations work | ||
pip install --user pg_activity | ||
|
||
# Binary must be in $PATH | ||
pg_activity --version |
3 changes: 3 additions & 0 deletions
3
tests/scaffoldings/dotd_ge_16/custom/entrypoint.d/touch-entrypoint
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/bin/bash | ||
set -ex | ||
touch /home/odoo/created-at-entrypoint |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
other-doodba/odoo/src/private: | ||
- absent_addon | ||
- dummy_addon | ||
- product | ||
enterprise: | ||
- make_odoo_rich | ||
--- | ||
ONLY: | ||
PGDATABASE: | ||
- limited_core | ||
odoo/addons: | ||
- crm | ||
- sale | ||
|
||
--- | ||
ONLY: | ||
PGDATABASE: | ||
- limited_private | ||
- limited_core | ||
private: [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
dummy_addon |
1 change: 1 addition & 0 deletions
1
tests/scaffoldings/dotd_ge_16/custom/src/dummy_repo/requirements.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
numpy |
2 changes: 2 additions & 0 deletions
2
tests/scaffoldings/dotd_ge_16/custom/src/enterprise/make_odoo_rich/__openerp__.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# -*- coding: utf-8 -*- | ||
{"name": "make_odoo_rich", "depends": ["iap"]} |
Empty file.
2 changes: 2 additions & 0 deletions
2
...ffoldings/dotd_ge_16/custom/src/other-doodba/odoo/src/private/dummy_addon/__manifest__.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# -*- coding: utf-8 -*- | ||
{"name": "dummy_addon", "depends": ["web"], "installable": True} |
Empty file.
2 changes: 2 additions & 0 deletions
2
.../scaffoldings/dotd_ge_16/custom/src/other-doodba/odoo/src/private/product/__manifest__.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# -*- coding: utf-8 -*- | ||
{"name": "other-doodba/product"} |
Empty file.
Empty file.
Empty file.
2 changes: 2 additions & 0 deletions
2
tests/scaffoldings/dotd_ge_16/custom/src/private/disabled_addon/__openerp__.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# -*- coding: utf-8 -*- | ||
{"name": "disabled_addon", "installable": False} |
Empty file.
2 changes: 2 additions & 0 deletions
2
tests/scaffoldings/dotd_ge_16/custom/src/private/private_addon/__openerp__.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# -*- coding: utf-8 -*- | ||
{"name": "private_addon", "depends": ["dummy_addon", "website"]} |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
version: "2.1" | ||
services: | ||
odoo: | ||
build: | ||
context: ./ | ||
args: | ||
LOG_LEVEL: DEBUG | ||
ODOO_VERSION: $ODOO_MINOR | ||
tty: true | ||
environment: | ||
PGUSER: another_odoo | ||
PGPASSWORD: anotherodoopassword | ||
PGHOST: postgresql | ||
PGDATABASE: ${DBNAME:-prod} | ||
depends_on: | ||
- postgresql | ||
volumes: | ||
- filestore:/var/lib/odoo:z | ||
|
||
postgresql: | ||
image: tecnativa/postgres-autoconf:${DB_VERSION}-alpine | ||
environment: | ||
POSTGRES_USER: another_odoo | ||
POSTGRES_PASSWORD: anotherodoopassword | ||
volumes: | ||
- db:/var/lib/postgresql/data:z | ||
|
||
volumes: | ||
db: | ||
filestore: |