mirror of
https://github.com/odoocker/odoocker
synced 2025-11-04 23:29:19 +01:00
Compare commits
7 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c5b7d3a6ba | ||
|
|
da8c682701 | ||
|
|
c2708e6dd8 | ||
|
|
b905b4ef18 | ||
|
|
47f0c95a33 | ||
|
|
c926027fc2 | ||
|
|
9b589c0332 |
@@ -150,14 +150,14 @@ MINIO_PROFILES="minio"
|
|||||||
PGADMIN_PROFILES="pgadmin"
|
PGADMIN_PROFILES="pgadmin"
|
||||||
|
|
||||||
# Containers' Tags
|
# Containers' Tags
|
||||||
ODOO_TAG=17.0
|
ODOO_TAG=16.0
|
||||||
POSTGRES_TAG=16.4
|
POSTGRES_TAG=16.1
|
||||||
KEYDB_TAG=latest
|
KEYDB_TAG=latest
|
||||||
MINIO_TAG=latest
|
MINIO_TAG=latest
|
||||||
NGINX_TAG=1.25.3
|
NGINX_TAG=1.25.3
|
||||||
NGINX_PROXY_TAG=1.4.0
|
NGINX_PROXY_TAG=1.4.0
|
||||||
ACME_COMPANION_TAG=2.2.9
|
ACME_COMPANION_TAG=2.2.9
|
||||||
PGADMIN_TAG=8.11
|
PGADMIN_TAG=8.1
|
||||||
|
|
||||||
# Odoocker paths
|
# Odoocker paths
|
||||||
COMMUNITY_ADDONS=${ROOT_PATH}/addons
|
COMMUNITY_ADDONS=${ROOT_PATH}/addons
|
||||||
|
|||||||
3
.gitignore
vendored
3
.gitignore
vendored
@@ -9,6 +9,3 @@ docker-compose.override.yml
|
|||||||
|
|
||||||
# Ignores any __pycache__ folder.
|
# Ignores any __pycache__ folder.
|
||||||
__pycache__
|
__pycache__
|
||||||
|
|
||||||
# Ignores upgrade files
|
|
||||||
upgrade/
|
|
||||||
|
|||||||
@@ -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
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -1,7 +1,8 @@
|
|||||||
#------------------------#
|
#------------------------#
|
||||||
# Odoo Community #
|
# Odoo Community #
|
||||||
#------------------------#
|
#------------------------#
|
||||||
FROM odoo:17.0
|
ARG ODOO_TAG
|
||||||
|
FROM odoo:${ODOO_TAG}
|
||||||
|
|
||||||
# Switch to root user
|
# Switch to root user
|
||||||
USER root
|
USER root
|
||||||
@@ -48,12 +49,11 @@ RUN apt-get update && apt-get install -y \
|
|||||||
# `zip` and `unzip` for filestore management
|
# `zip` and `unzip` for filestore management
|
||||||
zip \
|
zip \
|
||||||
unzip \
|
unzip \
|
||||||
rsync \
|
|
||||||
# `git` required packages
|
# `git` required packages
|
||||||
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
|
||||||
|
|
||||||
#-----------------------#
|
#-----------------------#
|
||||||
|
|||||||
@@ -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
|
||||||
@@ -82,12 +82,8 @@ expand_env_vars() {
|
|||||||
done <<< "$1"
|
done <<< "$1"
|
||||||
}
|
}
|
||||||
|
|
||||||
mkdir -p ${THIRD_PARTY_ADDONS}
|
|
||||||
|
|
||||||
# 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"
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
Goes Here
|
Goes Here
|
||||||
''',
|
''',
|
||||||
'version': '1.0.0', # (X.Y.Z.W) X: Odoo Version (not present), Y: Major Upgrade, Z: Bugfix, W: Minor Upgrade
|
'version': '1.0.0', # (X.Y.Z.W) X: Odoo Version (not present), Y: Major Upgrade, Z: Bugfix, W: Minor Upgrade
|
||||||
'category': 'Uncategorized', # Possible values: [https://github.com/odoo/odoo/blob/17.0/odoo/addons/base/data/ir_module_category_data.xml]
|
'category': 'Uncategorized', # Possible values: [https://github.com/odoo/odoo/blob/16.0/odoo/addons/base/data/ir_module_category_data.xml]
|
||||||
'license': 'LGPL-3',
|
'license': 'LGPL-3',
|
||||||
'sequence': 100, # Order in which the module will be displayed
|
'sequence': 100, # Order in which the module will be displayed
|
||||||
# Author, Pricing, Licensing, and Support Info
|
# Author, Pricing, Licensing, and Support Info
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
FROM postgres:16.4
|
ARG POSTGRES_TAG
|
||||||
|
FROM postgres:${POSTGRES_TAG}
|
||||||
|
|
||||||
#------------------------#
|
#------------------------#
|
||||||
# APT Dependencies #
|
# APT Dependencies #
|
||||||
|
|||||||
Reference in New Issue
Block a user