compatible with Debian
This commit is contained in:
parent
244d5c0ded
commit
29a2626bcd
54
.env_oneteam
54
.env_oneteam
|
@ -1,38 +1,38 @@
|
||||||
#version Trytond server example 6.0
|
#version Trytond server example 6.0
|
||||||
TRYTOND_VERSION="6.2"
|
TRYTOND_VERSION=6.6
|
||||||
#python version that will run the docker example 3.7 or 3.9 is mandatory in case you use tryton6.2
|
#python version that will run the docker example 3.7 or 3.9 is mandatory in case you use tryton6.2
|
||||||
PYTHON_VERSION="3.9"
|
PYTHON_VERSION=3.9
|
||||||
#if the module repository is private
|
#if the module repository is private
|
||||||
GITEA_USER=""
|
GITEA_USER=
|
||||||
GITEA_PASSWORD=""
|
GITEA_PASSWORD=
|
||||||
GITEA_ACCESS_TOKEN="123"
|
GITEA_ACCESS_TOKEN=
|
||||||
#domain server gitea
|
#domain server gitea
|
||||||
GITEA_DOMAIN="git.disroot.org"
|
GITEA_DOMAIN=git.disroot.org
|
||||||
URL_MULTI_MIGRATE="https://${GITEA_USER}:${GITEA_PASSWORD}@git.disroot.org/OneTeam/oc-multi_migrate_to_gitea.git"
|
URL_MULTI_MIGRATE=https://${GITEA_USER}:${GITEA_PASSWORD}@git.disroot.org/OneTeam/oc-multi_migrate_to_gitea.git
|
||||||
#By default all organizations are set to false, activate only one.
|
#By default all organizations are set to false, activate only one.
|
||||||
#GnuHealth, Etrivial, tryton-ar, OneTeam, OneTeam_Pos, Presik, Datalife, NaNtic, Kalenis
|
#GnuHealth, Etrivial, tryton-ar, OneTeam, OneTeam_Pos, Presik, Datalife, NaNtic, Kalenis
|
||||||
Provider="OneTeam"
|
Provider=OneTeam
|
||||||
DIR_MODULES="/usr/local/lib/python${PYTHON_VERSION}/dist-packages/trytond/modules"
|
DIR_MODULES=/usr/local/lib/python${PYTHON_VERSION}/dist-packages/trytond/modules
|
||||||
DB_PASSWORD="SUp3r-pass*DB"
|
DB_PASSWORD=SUp3r-pass*DB
|
||||||
POSTGRES_DB="tryton"
|
POSTGRES_DB=tryton
|
||||||
DB_HOSTNAME="db"
|
DB_HOSTNAME=db
|
||||||
POSTGRES_PASSWORD="SUp3r-pass*DB"
|
POSTGRES_PASSWORD=SUp3r-pass*DB
|
||||||
TRYTON_PORT="8000"
|
TRYTON_PORT=8000
|
||||||
DEVELOP="True"
|
DEVELOP=True
|
||||||
WORKER="True"
|
WORKER=True
|
||||||
TRYTONPASSFILE="/etc/trytond_admin_pass.conf"
|
TRYTONPASSFILE=/etc/trytond_admin_pass.conf
|
||||||
#Password user admin
|
#Password user admin
|
||||||
TRYTONADMINPASS="admin"
|
TRYTONADMINPASS=admin
|
||||||
#Email user admin
|
#Email user admin
|
||||||
EMAIL="admin@admin.com"
|
EMAIL=admin@admin.com
|
||||||
SLEEP_TRYTOND_ADMIN=15
|
SLEEP_TRYTOND_ADMIN=15
|
||||||
#SMTP
|
#SMTP
|
||||||
#This value is True or False
|
#This value is True or False
|
||||||
SMTP=""
|
SMTP=False
|
||||||
SMTP_TYPE="smtps+ssl"
|
SMTP_TYPE=smtps+ssl
|
||||||
SMTP_USER=""
|
SMTP_USER=
|
||||||
SMTP_PASSWORD=""
|
SMTP_PASSWORD=
|
||||||
SMTP_DOMAIN=""
|
SMTP_DOMAIN=
|
||||||
SMTP_PORT=""
|
SMTP_PORT=465
|
||||||
SMTP_FROM=""
|
SMTP_FROM=NAME_FROM <mail>
|
||||||
SMTP_EMAIL=""
|
SMTP_EMAIL=
|
||||||
|
|
|
@ -9,6 +9,7 @@ ARG TRYTOND_VERSION
|
||||||
ARG PYTHON_VERSION
|
ARG PYTHON_VERSION
|
||||||
ARG Provider
|
ARG Provider
|
||||||
ARG URL_MULTI_MIGRATE
|
ARG URL_MULTI_MIGRATE
|
||||||
|
ARG REPO_MULTI_MIGRATE
|
||||||
ARG GITEA_DOMAIN
|
ARG GITEA_DOMAIN
|
||||||
ARG GITEA_USER
|
ARG GITEA_USER
|
||||||
ARG GITEA_PASSWORD
|
ARG GITEA_PASSWORD
|
||||||
|
@ -60,4 +61,4 @@ RUN touch /etc/trytond_populate.conf \
|
||||||
|
|
||||||
USER trytond
|
USER trytond
|
||||||
|
|
||||||
CMD ["/bin/bash", "/opt/start.sh"]
|
CMD ["/bin/bash", "/opt/start.sh"]
|
||||||
|
|
|
@ -18,6 +18,7 @@ services:
|
||||||
PYTHON_VERSION: ${PYTHON_VERSION}
|
PYTHON_VERSION: ${PYTHON_VERSION}
|
||||||
Provider: ${Provider}
|
Provider: ${Provider}
|
||||||
URL_MULTI_MIGRATE: ${URL_MULTI_MIGRATE}
|
URL_MULTI_MIGRATE: ${URL_MULTI_MIGRATE}
|
||||||
|
REPO_MULTI_MIGRATE: ${REPO_MULTI_MIGRATE}
|
||||||
GITEA_DOMAIN: ${GITEA_DOMAIN}
|
GITEA_DOMAIN: ${GITEA_DOMAIN}
|
||||||
GITEA_USER: ${GITEA_USER}
|
GITEA_USER: ${GITEA_USER}
|
||||||
GITEA_PASSWORD: ${GITEA_PASSWORD}
|
GITEA_PASSWORD: ${GITEA_PASSWORD}
|
||||||
|
@ -47,4 +48,4 @@ volumes:
|
||||||
modules:
|
modules:
|
||||||
var:
|
var:
|
||||||
postgres:
|
postgres:
|
||||||
attachment:
|
attachment:
|
||||||
|
|
|
@ -1,17 +1,18 @@
|
||||||
#!/usr/bin/bash
|
#!/usr/bin/bash
|
||||||
gitea_url="https://${GITEA_USER}:${GITEA_PASSWORD}@${GITEA_DOMAIN}/"
|
gitea_url="https://$GITEA_USER:$GITEA_PASSWORD@${GITEA_DOMAIN}/"
|
||||||
|
|
||||||
cd /tmp
|
cd /tmp
|
||||||
git clone ${URL_MULTI_MIGRATE}
|
git clone "${gitea_url}${REPO_MULTI_MIGRATE}"
|
||||||
multi_migrate="/tmp/oc-multi_migrate_to_gitea/migrate_to_gitea.py"
|
multi_migrate="/tmp/oc-multi_migrate_to_gitea/migrate_to_gitea.py"
|
||||||
|
DIR_USR=/usr/local/lib/python
|
||||||
|
DIR_PACKAGES=/dist-packages/trytond/modules
|
||||||
|
DIR_MODULES="${DIR_USR}${PYTHON_VERSION}${DIR_PACKAGES}"
|
||||||
cd ${DIR_MODULES}
|
cd ${DIR_MODULES}
|
||||||
PYTHON_VERSION="python"${PYTHON_VERSION}
|
PYTHON_VERSION="python${PYTHON_VERSION}"
|
||||||
|
|
||||||
|
|
||||||
if [ "$WORKER" == "True" ]; then
|
if [ "$WORKER" == "True" ]; then
|
||||||
cat <<EOF >>/etc/trytond.conf
|
cat <<EOF >>/etc/trytond.conf
|
||||||
|
|
||||||
|
|
||||||
[queue]
|
[queue]
|
||||||
worker = True
|
worker = True
|
||||||
EOF
|
EOF
|
||||||
|
@ -110,6 +111,7 @@ if [ "$Provider" == "OneTeam" ]; then
|
||||||
purchase_coffee
|
purchase_coffee
|
||||||
sale_payment_form
|
sale_payment_form
|
||||||
sale_pos_extras
|
sale_pos_extras
|
||||||
|
optical_equipment
|
||||||
)
|
)
|
||||||
|
|
||||||
inactive_module "trytond-" $pip "${inactive_modules_trytondo[@]}"
|
inactive_module "trytond-" $pip "${inactive_modules_trytondo[@]}"
|
||||||
|
@ -143,6 +145,7 @@ if [ "$Provider" == "OneTeam_Pos" ]; then
|
||||||
inactive_modules_trytondo=(
|
inactive_modules_trytondo=(
|
||||||
purchase_coffee
|
purchase_coffee
|
||||||
sale_payment
|
sale_payment
|
||||||
|
optical_equipment
|
||||||
)
|
)
|
||||||
|
|
||||||
inactive_module "trytond-" $pip "${inactive_modules_trytondo[@]}"
|
inactive_module "trytond-" $pip "${inactive_modules_trytondo[@]}"
|
||||||
|
|
Loading…
Reference in New Issue