mirror of
https://github.com/odoocker/odoocker
synced 2025-11-04 23:29:19 +01:00
Compare commits
27 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4f55d789c9 | ||
|
|
9a49d0a425 | ||
|
|
0b31913315 | ||
|
|
53f235a619 | ||
|
|
4f1132afef | ||
|
|
faa6cf6b4c | ||
|
|
7568dbc44f | ||
|
|
77edc03b91 | ||
|
|
6fd07e113a | ||
|
|
bf51474d47 | ||
|
|
137e653d7f | ||
|
|
f2be28ff3e | ||
|
|
f9a6d5c1ab | ||
|
|
d3e819b4b6 | ||
|
|
1a191383fa | ||
|
|
f29066cc16 | ||
|
|
649c51cc9c | ||
|
|
ecac58a89e | ||
|
|
c677cdd69e | ||
|
|
fa93ecd4f4 | ||
|
|
2076c8ddfa | ||
|
|
98b94b6f86 | ||
|
|
eaa7826e4b | ||
|
|
3127152a17 | ||
|
|
187f18440e | ||
|
|
1cb579cd36 | ||
|
|
e1dcc69b5b |
@@ -150,14 +150,14 @@ MINIO_PROFILES="minio"
|
||||
PGADMIN_PROFILES="pgadmin"
|
||||
|
||||
# Containers' Tags
|
||||
ODOO_TAG=13.0
|
||||
POSTGRES_TAG=16.1
|
||||
ODOO_TAG=17.0
|
||||
POSTGRES_TAG=16.4
|
||||
KEYDB_TAG=latest
|
||||
MINIO_TAG=latest
|
||||
NGINX_TAG=1.25.3
|
||||
NGINX_PROXY_TAG=1.4.0
|
||||
ACME_COMPANION_TAG=2.2.9
|
||||
PGADMIN_TAG=8.1
|
||||
PGADMIN_TAG=8.11
|
||||
|
||||
# Odoocker paths
|
||||
COMMUNITY_ADDONS=${ROOT_PATH}/addons
|
||||
@@ -202,7 +202,7 @@ DEBUG_INTERFACE=${HTTP_INTERFACE}
|
||||
HTTP_PORT=8069
|
||||
DEBUG_PORT=8070
|
||||
XMLRPCS_PORT=8071
|
||||
LONGPOLLING_PORT=8072
|
||||
GEVENT_PORT=8072
|
||||
HTTP_ENABLE=True
|
||||
XMLRPCS=True
|
||||
PROXY_MODE=True
|
||||
|
||||
3
.gitignore
vendored
3
.gitignore
vendored
@@ -9,3 +9,6 @@ docker-compose.override.yml
|
||||
|
||||
# Ignores any __pycache__ folder.
|
||||
__pycache__
|
||||
|
||||
# Ignores upgrade files
|
||||
upgrade/
|
||||
|
||||
@@ -43,6 +43,7 @@ In essence, Odoocker isn't just another tool, it's a philosophy. So, whether you
|
||||
1. **Clone and Configure**:
|
||||
```
|
||||
git clone git@github.com:odoocker/odoocker.git
|
||||
cd odoocker
|
||||
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.
|
||||
@@ -155,6 +156,7 @@ docker-compose down
|
||||
```
|
||||
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.
|
||||
- Rebuild the containers
|
||||
```
|
||||
|
||||
@@ -40,7 +40,7 @@ server {
|
||||
}
|
||||
}
|
||||
|
||||
location /longpolling {
|
||||
location /websocket {
|
||||
proxy_pass http://odoo:8072;
|
||||
proxy_redirect off;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
#------------------------#
|
||||
# Odoo Community #
|
||||
#------------------------#
|
||||
ARG ODOO_TAG
|
||||
FROM odoo:${ODOO_TAG}
|
||||
FROM odoo:17.0
|
||||
|
||||
# Switch to root user
|
||||
USER root
|
||||
@@ -49,11 +48,12 @@ RUN apt-get update && apt-get install -y \
|
||||
# `zip` and `unzip` for filestore management
|
||||
zip \
|
||||
unzip \
|
||||
rsync \
|
||||
# `git` required packages
|
||||
git \
|
||||
git-man \
|
||||
less \
|
||||
libcbor0 \
|
||||
libcbor0.8 \
|
||||
libcurl3-gnutls \
|
||||
libedit2 \
|
||||
liberror-perl \
|
||||
@@ -78,10 +78,8 @@ RUN python3 -m pip install -r /tmp/requirements.txt && \
|
||||
# Odoo Enterprise + Third Party Addons #
|
||||
#--------------------------------------------#
|
||||
# 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/third-party-addons.txt /
|
||||
# RUN /clone-addons.sh && chown odoo:odoo -R ${THIRD_PARTY_ADDONS}
|
||||
RUN /clone-addons.sh
|
||||
|
||||
#-----------------------#
|
||||
|
||||
@@ -25,7 +25,7 @@ clone_and_copy_modules() {
|
||||
|
||||
# Clone and copy logic for enterprise repository
|
||||
if [[ $repo_type == "enterprise" ]]; then
|
||||
if [[ ! -d "${ENTERPRISE_ADDONS}" ]] && [ -n "$GITHUB_USER" ] && [ -n "$GITHUB_ACCESS_TOKEN" ]; then
|
||||
if [ -n "$GITHUB_USER" ] && [ -n "$GITHUB_ACCESS_TOKEN" ]; then
|
||||
$clone_cmd --depth 1 --branch ${ODOO_TAG} --single-branch --no-tags
|
||||
fi
|
||||
else
|
||||
@@ -82,8 +82,12 @@ expand_env_vars() {
|
||||
done <<< "$1"
|
||||
}
|
||||
|
||||
mkdir -p ${THIRD_PARTY_ADDONS}
|
||||
|
||||
# Read the configuration file and process each line
|
||||
while IFS= read -r line; do
|
||||
mkdir -p ${ENTERPRISE_ADDONS}
|
||||
mkdir -p ${THIRD_PARTY_ADDONS}
|
||||
[[ -z "$line" || "$line" == \#* ]] && continue
|
||||
clone_and_copy_modules $(expand_env_vars "$line")
|
||||
done < "third-party-addons.txt"
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
Goes Here
|
||||
''',
|
||||
'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/16.0/odoo/addons/base/data/ir_module_category_data.xml]
|
||||
'category': 'Uncategorized', # Possible values: [https://github.com/odoo/odoo/blob/17.0/odoo/addons/base/data/ir_module_category_data.xml]
|
||||
'license': 'LGPL-3',
|
||||
'sequence': 100, # Order in which the module will be displayed
|
||||
# Author, Pricing, Licensing, and Support Info
|
||||
|
||||
@@ -64,8 +64,8 @@ xmlrpcs_interface = ${XMLRPCS_INTERFACE}
|
||||
; --xmlrpcs-port
|
||||
xmlrpcs_port = ${XMLRPCS_PORT}
|
||||
|
||||
; --longpolling-port
|
||||
longpolling_port = ${LONGPOLLING_PORT}
|
||||
; --gevent-port
|
||||
gevent_port = ${GEVENT_PORT}
|
||||
|
||||
; --no-http | --no-xmlrpc
|
||||
http_enable = ${HTTP_ENABLE}
|
||||
|
||||
@@ -1,8 +1,5 @@
|
||||
jinja2
|
||||
sortedcontainers
|
||||
debugpy
|
||||
websocket-client
|
||||
redis
|
||||
boto3
|
||||
sentry-sdk==1.9.0 # Fixed because Odoo depends on urllib3==1.26.5
|
||||
aiohttp
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
ARG POSTGRES_TAG
|
||||
FROM postgres:${POSTGRES_TAG}
|
||||
FROM postgres:16.4
|
||||
|
||||
#------------------------#
|
||||
# APT Dependencies #
|
||||
|
||||
Reference in New Issue
Block a user