7 Commits
main ... 16.0

Author SHA1 Message Date
yhaelopez
c5b7d3a6ba cleanup 2023-12-24 12:14:33 -07:00
yhaelopez
da8c682701 refactored enterprise + third party addons clonning process 2023-12-24 12:10:51 -07:00
yhaelopez
c2708e6dd8 cleanup 2023-12-20 11:17:21 -07:00
yhaelopez
b905b4ef18 auto clone third party addons and upgrade docker build 2023-12-19 20:51:01 -07:00
yhaelopez
47f0c95a33 cleanup 2023-12-15 17:20:45 -07:00
yhaelopez
c926027fc2 cleanup 2023-12-15 16:59:11 -07:00
yhaelopez
9b589c0332 upgrade 2023-12-15 16:54:24 -07:00
5 changed files with 6 additions and 8 deletions

View File

@@ -150,7 +150,7 @@ MINIO_PROFILES="minio"
PGADMIN_PROFILES="pgadmin" PGADMIN_PROFILES="pgadmin"
# Containers' Tags # Containers' Tags
ODOO_TAG=17.0 ODOO_TAG=16.0
POSTGRES_TAG=16.1 POSTGRES_TAG=16.1
KEYDB_TAG=latest KEYDB_TAG=latest
MINIO_TAG=latest MINIO_TAG=latest

View File

@@ -43,7 +43,6 @@ In essence, Odoocker isn't just another tool, it's a philosophy. So, whether you
1. **Clone and Configure**: 1. **Clone and Configure**:
``` ```
git clone git@github.com:odoocker/odoocker.git git clone git@github.com:odoocker/odoocker.git
cd odoocker
cp .env.example .env && cp docker-compose.override.local.yml docker-compose.override.yml cp .env.example .env && cp docker-compose.override.local.yml docker-compose.override.yml
``` ```
2. **Hosts & Domains**: To ensure everything runs smoothly, remember to add the necessary domains to your hosts file. 2. **Hosts & Domains**: To ensure everything runs smoothly, remember to add the necessary domains to your hosts file.
@@ -156,7 +155,6 @@ docker-compose down
``` ```
cp docker-compose.override.production.yml docker-compose.override.yml cp docker-compose.override.production.yml docker-compose.override.yml
``` ```
- Update .env `SERVICES` (add `acme`) and `ACME_CA_URI` (use production link).
- Make sure the DNS record of your `DOMAIN` is pointing to your server. - Make sure the DNS record of your `DOMAIN` is pointing to your server.
- Rebuild the containers - Rebuild the containers
``` ```

View File

@@ -53,7 +53,7 @@ RUN apt-get update && apt-get install -y \
git \ git \
git-man \ git-man \
less \ less \
libcbor0.8 \ libcbor0 \
libcurl3-gnutls \ libcurl3-gnutls \
libedit2 \ libedit2 \
liberror-perl \ liberror-perl \
@@ -78,8 +78,10 @@ RUN python3 -m pip install -r /tmp/requirements.txt && \
# Odoo Enterprise + Third Party Addons # # Odoo Enterprise + Third Party Addons #
#--------------------------------------------# #--------------------------------------------#
# Create third-party-addons directory and clone them # Create third-party-addons directory and clone them
RUN mkdir -p ${THIRD_PARTY_ADDONS}
COPY --chown=odoo:odoo ./odoo/clone-addons.sh / COPY --chown=odoo:odoo ./odoo/clone-addons.sh /
COPY --chown=odoo:odoo ./odoo/third-party-addons.txt / COPY --chown=odoo:odoo ./odoo/third-party-addons.txt /
# RUN /clone-addons.sh && chown odoo:odoo -R ${THIRD_PARTY_ADDONS}
RUN /clone-addons.sh RUN /clone-addons.sh
#-----------------------# #-----------------------#

View File

@@ -25,7 +25,7 @@ clone_and_copy_modules() {
# Clone and copy logic for enterprise repository # Clone and copy logic for enterprise repository
if [[ $repo_type == "enterprise" ]]; then if [[ $repo_type == "enterprise" ]]; then
if [ -n "$GITHUB_USER" ] && [ -n "$GITHUB_ACCESS_TOKEN" ]; then if [[ ! -d "${ENTERPRISE_ADDONS}" ]] && [ -n "$GITHUB_USER" ] && [ -n "$GITHUB_ACCESS_TOKEN" ]; then
$clone_cmd --depth 1 --branch ${ODOO_TAG} --single-branch --no-tags $clone_cmd --depth 1 --branch ${ODOO_TAG} --single-branch --no-tags
fi fi
else else
@@ -84,8 +84,6 @@ expand_env_vars() {
# Read the configuration file and process each line # Read the configuration file and process each line
while IFS= read -r line; do while IFS= read -r line; do
mkdir -p ${ENTERPRISE_ADDONS}
mkdir -p ${THIRD_PARTY_ADDONS}
[[ -z "$line" || "$line" == \#* ]] && continue [[ -z "$line" || "$line" == \#* ]] && continue
clone_and_copy_modules $(expand_env_vars "$line") clone_and_copy_modules $(expand_env_vars "$line")
done < "third-party-addons.txt" done < "third-party-addons.txt"

View File

@@ -64,7 +64,7 @@ xmlrpcs_interface = ${XMLRPCS_INTERFACE}
; --xmlrpcs-port ; --xmlrpcs-port
xmlrpcs_port = ${XMLRPCS_PORT} xmlrpcs_port = ${XMLRPCS_PORT}
; --gevent-port ; --gevent-port | --longpolling-port (deprecated)
gevent_port = ${GEVENT_PORT} gevent_port = ${GEVENT_PORT}
; --no-http | --no-xmlrpc ; --no-http | --no-xmlrpc