mirror of
https://gitlab.com/hibou-io/hibou-odoo/suite.git
synced 2025-01-20 12:37:31 +02:00
[ADD] Hibou Athene, upstream builds, and runconfig for Odoo
This commit is contained in:
33
.theia/launch.json
Normal file
33
.theia/launch.json
Normal file
@@ -0,0 +1,33 @@
|
||||
{
|
||||
// Use IntelliSense to learn about possible attributes.
|
||||
// Hover to view descriptions of existing attributes.
|
||||
"version": "0.2.0",
|
||||
"configurations": [
|
||||
{
|
||||
"name": "Python: Current File",
|
||||
"type": "python",
|
||||
"request": "launch",
|
||||
"program": "${file}",
|
||||
"console": "integratedTerminal"
|
||||
},
|
||||
{
|
||||
"name": "Odoo: shell",
|
||||
"type": "python",
|
||||
"request": "launch",
|
||||
"program": "/opt/odoo/hibou-suite/odoo-run.py",
|
||||
"args": ["shell", "--no-xmlrpc"],
|
||||
"console": "integratedTerminal"
|
||||
},
|
||||
{
|
||||
"name": "Odoo: TEST 'sale'",
|
||||
"type": "python",
|
||||
"request": "launch",
|
||||
"program": "/opt/odoo/hibou-suite/odoo-run.py",
|
||||
"args": ["-i", "sale",
|
||||
"-u", "sale",
|
||||
"--test-enable", "--no-xmlrpc", "--stop-after-init"],
|
||||
"console": "integratedTerminal"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
16
Dockerfile
16
Dockerfile
@@ -1,17 +1,7 @@
|
||||
FROM hibou/hibou-odoo:15.0
|
||||
|
||||
USER 0
|
||||
COPY --from=registry.gitlab.com/hibou-io/theia-python /opt/theia /opt/theia
|
||||
RUN set -x; \
|
||||
curl -sL https://deb.nodesource.com/setup_12.x | bash - \
|
||||
&& apt-get install -y \
|
||||
nodejs \
|
||||
build-essential \
|
||||
libsecret-1-0 \
|
||||
procps \
|
||||
&& npm install --global yarn
|
||||
|
||||
USER 104
|
||||
USER odoo
|
||||
COPY --from=registry.gitlab.com/hibou-io/athene /opt/athene /opt/athene
|
||||
COPY --from=hibou/flow /flow /flow
|
||||
COPY --chown=104 entrypoint.sh /entrypoint.sh
|
||||
COPY --chown=104 . /opt/odoo/hibou-suite
|
||||
@@ -21,6 +11,6 @@ RUN rm /etc/odoo/odoo.conf \
|
||||
|
||||
EXPOSE 3000
|
||||
ENV SHELL=/bin/bash \
|
||||
THEIA_DEFAULT_PLUGINS=local-dir:/opt/theia/plugins
|
||||
THEIA_DEFAULT_PLUGINS=local-dir:/opt/athene/plugins
|
||||
ENV USE_LOCAL_GIT true
|
||||
|
||||
|
||||
@@ -1,17 +1,7 @@
|
||||
FROM registry.gitlab.com/hibou-io/hibou-odoo/odoo:RELEASE
|
||||
|
||||
USER 0
|
||||
COPY --from=registry.gitlab.com/hibou-io/theia-python /opt/theia /opt/theia
|
||||
RUN set -x; \
|
||||
curl -sL https://deb.nodesource.com/setup_12.x | bash - \
|
||||
&& apt-get install -y \
|
||||
nodejs \
|
||||
build-essential \
|
||||
libsecret-1-0 \
|
||||
procps \
|
||||
&& npm install --global yarn
|
||||
|
||||
USER 104
|
||||
USER odoo
|
||||
COPY --from=registry.gitlab.com/hibou-io/athene /opt/athene /opt/athene
|
||||
COPY --from=registry.gitlab.com/hibou-io/hibou-odoo/flow /flow /flow
|
||||
COPY --chown=104 entrypoint.sh /entrypoint.sh
|
||||
COPY --chown=104 . /opt/odoo/hibou-suite
|
||||
@@ -21,6 +11,6 @@ RUN rm /etc/odoo/odoo.conf \
|
||||
|
||||
EXPOSE 3000
|
||||
ENV SHELL=/bin/bash \
|
||||
THEIA_DEFAULT_PLUGINS=local-dir:/opt/theia/plugins
|
||||
THEIA_DEFAULT_PLUGINS=local-dir:/opt/athene/plugins
|
||||
ENV USE_LOCAL_GIT true
|
||||
|
||||
|
||||
@@ -18,21 +18,13 @@ set -e
|
||||
|
||||
if [ "$DEV_MODE_PATH" == "" ]
|
||||
then
|
||||
export DEV_MODE_PATH=/opt/odoo
|
||||
export DEV_MODE_PATH=/opt/odoo/hibou-suite
|
||||
fi
|
||||
|
||||
# setup development IDE
|
||||
if [ "$DEV_MODE" == "exclusive" ]
|
||||
if [[ -x "/opt/athene/entrypoint.sh" ]]
|
||||
then
|
||||
cd /opt/theia
|
||||
exec node /opt/theia/src-gen/backend/main.js $DEV_MODE_PATH --hostname=0.0.0.0
|
||||
elif [ "$DEV_MODE" != "" ]
|
||||
then
|
||||
cd /opt/theia
|
||||
node /opt/theia/src-gen/backend/main.js $DEV_MODE_PATH --hostname=0.0.0.0 &
|
||||
/opt/athene/entrypoint.sh
|
||||
fi
|
||||
|
||||
|
||||
# set the postgres database host, port, user and password according to the environment
|
||||
# and pass them as arguments to the odoo process if not present in the config file
|
||||
: ${HOST:=${DB_PORT_5432_TCP_ADDR:='db'}}
|
||||
|
||||
5
odoo-run.py
Executable file
5
odoo-run.py
Executable file
@@ -0,0 +1,5 @@
|
||||
__import__('os').environ['TZ'] = 'UTC'
|
||||
import odoo
|
||||
|
||||
if __name__ == "__main__":
|
||||
odoo.cli.main()
|
||||
Reference in New Issue
Block a user