-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 3e7a75b
Showing
9 changed files
with
406 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
ARG IMAGE=druidoo/odoo | ||
ARG BASETAG=odoo-e | ||
ARG ODOO_VERSION=12.0 | ||
|
||
FROM $IMAGE:$ODOO_VERSION.$BASETAG | ||
|
||
ARG GITHUB_USER | ||
ARG GITHUB_TOKEN | ||
ENV GITHUB_USER="$GITHUB_USER" | ||
ENV GITHUB_TOKEN="$GITHUB_TOKEN" | ||
|
||
# Default env values used by config generator | ||
ENV FILESTORE_OPERATIONS_THREADS=3 \ | ||
FILESTORE_COPY_HARD_LINK=True \ | ||
ENABLE_REDIS=False \ | ||
REDIS_HOST=localhost \ | ||
REDIS_PORT=6379 \ | ||
REDIS_DBINDEX=1 \ | ||
REDIS_PASS=False | ||
|
||
# Compatibility with adhoc directories | ||
# TODO: move to adhoc custom image | ||
RUN mkdir -p /opt/odoo && \ | ||
ln -s $SOURCES /opt/odoo/default && \ | ||
ln -s $CUSTOM /opt/odoo/custom && \ | ||
ln -s $DATA_DIR /opt/odoo/odoo_data && \ | ||
chown -R odoo.odoo /opt/odoo && sync | ||
|
||
# Add other dependencies | ||
USER root | ||
RUN apt-get update \ | ||
&& apt-get install -y \ | ||
build-essential \ | ||
libcups2-dev \ | ||
libcurl4-openssl-dev \ | ||
parallel \ | ||
python3-dev \ | ||
libevent-dev \ | ||
libjpeg-dev \ | ||
libldap2-dev \ | ||
libsasl2-dev \ | ||
libssl-dev \ | ||
libxml2-dev \ | ||
libxslt1-dev \ | ||
swig \ | ||
# pip dependencies that require build deps | ||
&& pip3 install pycurl redis==2.10.5 \ | ||
# purge | ||
&& apt-get purge -yqq build-essential '*-dev' make \ | ||
&& apt-get -yqq autoremove \ | ||
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* | ||
USER odoo | ||
|
||
# Add patched server.py. Hacked to avoid creating a new database if it doesn't exist, when sending db_name | ||
ADD server.py /home/odoo/.local/lib/python3.5/site-packages/odoo/cli/ | ||
|
||
# Add new entrypoints and configs | ||
COPY entrypoint.d/* $RESOURCES/entrypoint.d/ | ||
COPY conf.d/* $RESOURCES/conf.d/ | ||
|
||
# Aggregate new repositories of this image | ||
COPY repos.yml $RESOURCES/ | ||
RUN autoaggregate --config "$RESOURCES/repos.yml" --install --output $SOURCES/repositories |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
[options] | ||
|
||
server_mode = $SERVER_MODE | ||
disable_session_gc = $DISABLE_SESSION_GC | ||
filestore_operations_threads = $FILESTORE_OPERATIONS_THREADS | ||
filestore_copy_hard_link = $FILESTORE_COPY_HARD_LINK | ||
|
||
enable_redis = $ENABLE_REDIS | ||
redis_host = $REDIS_HOST | ||
redis_port = $REDIS_PORT | ||
redis_dbindex = $REDIS_DBINDEX | ||
redis_pass = $REDIS_PASS | ||
|
||
mail.catchall.domain = $MAIL_CATCHALL_DOMAIN |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/bin/bash | ||
set -ex | ||
|
||
for target in adhoc adhoc-e; do | ||
docker image build \ | ||
--build-arg VCS_REF="$GIT_SHA1" \ | ||
--build-arg BUILD_DATE="$(date --rfc-3339 ns)" \ | ||
--build-arg ODOO_VERSION="$DOCKER_TAG" \ | ||
--build-arg BASETAG=${target//adhoc/odoo} \ | ||
--build-arg GITHUB_USER="$GITHUB_USER" \ | ||
--build-arg GITHUB_TOKEN="$GITHUB_TOKEN" \ | ||
--tag "$DOCKER_REPO:$DOCKER_TAG.$target" \ | ||
. | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/bin/bash | ||
set -ex | ||
|
||
# Version control tags | ||
# We append BUILD_DATE to the image tag. | ||
|
||
BUILD_DATE=`date -u +%Y.%m.%d` | ||
|
||
for target in druidoo druidoo-e; do | ||
TAG="$DOCKER_REPO:$DOCKER_TAG.$target" | ||
docker tag "$TAG" "$TAG.$BUILD_DATE" | ||
docker push "$TAG.$BUILD_DATE" | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/bin/bash | ||
set -ex | ||
|
||
docker --version | ||
docker info | ||
env |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/bin/bash | ||
set -ex | ||
|
||
for target in adhoc adhoc-e; do | ||
docker push "$DOCKER_REPO:$DOCKER_TAG.$target" | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,109 @@ | ||
# OCA | ||
web: | ||
defaults: | ||
depth: 1 | ||
remotes: | ||
origin: https://github.com/OCA/web.git | ||
merges: | ||
- origin $ODOO_VERSION | ||
target: origin $ODOO_VERSION | ||
|
||
website: | ||
defaults: | ||
depth: 1 | ||
remotes: | ||
origin: https://github.com/OCA/website.git | ||
merges: | ||
- origin $ODOO_VERSION | ||
target: origin $ODOO_VERSION | ||
|
||
server-tools: | ||
defaults: | ||
depth: 1 | ||
remotes: | ||
origin: https://github.com/OCA/server-tools.git | ||
merges: | ||
- origin $ODOO_VERSION | ||
target: origin $ODOO_VERSION | ||
|
||
server-ux: | ||
defaults: | ||
depth: 1 | ||
remotes: | ||
origin: https://github.com/OCA/server-ux.git | ||
merges: | ||
- origin $ODOO_VERSION | ||
target: origin $ODOO_VERSION | ||
|
||
partner-contact: | ||
defaults: | ||
depth: 1 | ||
remotes: | ||
origin: https://github.com/OCA/partner-contact.git | ||
merges: | ||
- origin $ODOO_VERSION | ||
target: origin $ODOO_VERSION | ||
|
||
server-tools: | ||
defaults: | ||
depth: 1 | ||
remotes: | ||
origin: https://github.com/OCA/server-tools.git | ||
merges: | ||
- origin $ODOO_VERSION | ||
target: origin $ODOO_VERSION | ||
|
||
sale-workflow: | ||
defaults: | ||
depth: 1 | ||
remotes: | ||
origin: https://github.com/OCA/sale-workflow.git | ||
merges: | ||
- origin $ODOO_VERSION | ||
target: origin $ODOO_VERSION | ||
|
||
purchase-workflow: | ||
defaults: | ||
depth: 1 | ||
remotes: | ||
origin: https://github.com/OCA/purchase-workflow.git | ||
merges: | ||
- origin $ODOO_VERSION | ||
target: origin $ODOO_VERSION | ||
|
||
reporting-engine: | ||
defaults: | ||
depth: 1 | ||
remotes: | ||
origin: https://github.com/OCA/reporting-engine.git | ||
merges: | ||
- origin $ODOO_VERSION | ||
target: origin $ODOO_VERSION | ||
|
||
pos: | ||
defaults: | ||
depth: 1 | ||
remotes: | ||
origin: https://github.com/OCA/pos.git | ||
merges: | ||
- origin $ODOO_VERSION | ||
target: origin $ODOO_VERSION | ||
|
||
# Ingadhoc | ||
ingadhoc-odoo-saas: | ||
defaults: | ||
depth: 1 | ||
remotes: | ||
origin: https://$GITHUB_USER:[email protected]/ingadhoc/odoo-saas.git | ||
merges: | ||
- origin $ODOO_VERSION | ||
target: origin $ODOO_VERSION | ||
|
||
ingadhoc-odoo-support: | ||
defaults: | ||
depth: 1 | ||
remotes: | ||
origin: https://github.com/ingadhoc/odoo-support.git | ||
merges: | ||
- origin $ODOO_VERSION | ||
target: origin $ODOO_VERSION |
Oops, something went wrong.