-
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.
Merge pull request #508 from ap-wtioit/master-fix_entrypointd_python_…
…github [FIX] direxec should not try to execute directories
- Loading branch information
Showing
6 changed files
with
55 additions
and
1 deletion.
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
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 |
8 changes: 8 additions & 0 deletions
8
tests/scaffoldings/entrypoint/custom/entrypoint.d/60-customize_entrypoint.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,8 @@ | ||
#!/usr/bin/env python3 | ||
# -*- coding: utf-8 -*- | ||
import doodbalib | ||
|
||
doodbalib.logger.info("custom entrypoint running") | ||
with open("/tmp/customize_entrypoint.mark.txt", "w") as fp: | ||
fp.write("ok\n") | ||
doodbalib.logger.info("custom created /tmp/customize_entrypoint.mark.txt") |
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: | ||
# compile causes the creation of __pycache__ in entrypoint.d for this test | ||
COMPILE: "true" | ||
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: |