Skip to content
GitLab
Explorer
Connexion
Navigation principale
Rechercher ou aller à…
Projet
O
odoo_docker
Gestion
Activité
Membres
Labels
Programmation
Tickets
Tableaux des tickets
Jalons
Code
Requêtes de fusion
Dépôt
Branches
Validations
Étiquettes
Graphe du dépôt
Comparer les révisions
Déploiement
Registre de conteneurs
Analyse
Données d'analyse des chaînes de valeur
Analyse des contributeurs
Données d'analyse du dépôt
Aide
Aide
Support
Documentation de GitLab
Comparer les forfaits GitLab
Forum de la communauté GitLab
Contribuer à GitLab
Donner votre avis
Raccourcis clavier
?
Extraits de code
Groupes
Projets
Afficher davantage de fils d'Ariane
Le Filament
odoo_docker
Validations
a3828bb0
Valider
a3828bb0
rédigé
Il y a 6 ans
par
remi-filament
Parcourir les fichiers
Options
Téléchargements
Correctifs
Plain Diff
Added version 12 support
parent
a29fd932
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
Modifications
4
Afficher les modifications d'espaces
En ligne
Côte à côte
Affichage de
4 fichiers modifiés
10.0.Dockerfile
+0
-1
0 ajout, 1 suppression
10.0.Dockerfile
12.0.Dockerfile
+94
-0
94 ajouts, 0 suppression
12.0.Dockerfile
hooks/build
+13
-3
13 ajouts, 3 suppressions
hooks/build
hooks/post_push
+11
-1
11 ajouts, 1 suppression
hooks/post_push
avec
118 ajouts
et
5 suppressions
Dockerfile
→
10.0.
Dockerfile
+
0
−
1
Voir le fichier @
a3828bb0
...
@@ -12,7 +12,6 @@ RUN set -x; \
...
@@ -12,7 +12,6 @@ RUN set -x; \
curl
\
curl
\
fontconfig
\
fontconfig
\
git
\
git
\
node-less
\
libjpeg62-turbo
\
libjpeg62-turbo
\
libtiff5
\
libtiff5
\
libx11-6 \
libx11-6 \
...
...
Ce diff est replié.
Cliquez pour l'agrandir.
12.0.Dockerfile
0 → 100644
+
94
−
0
Voir le fichier @
a3828bb0
FROM
debian:stretch
MAINTAINER
Le Filament <https://le-filament.com>
# Generate locale C.UTF-8 for postgres and general locale data
ENV
LANG C.UTF-8
ENV
APT_DEPS='build-essential libldap2-dev libsasl2-dev python3-dev python3-wheel'
#ENV APT_DEPS_EXTENDED='binutils build-essential bzip2 cpp cpp-6 dpkg-dev g++ g++-6 gcc gcc-6 libasan3 libatomic1 libc-dev-bin libc6-dev libcc1-0 libcilkrts5 libdpkg-perl libexpat1-dev libgcc-6-dev libgomp1 libisl15 libitm1 libldap2-dev libsasl2-dev liblsan0 libmpc3 libmpfr4 libmpx2 libpython3-dev libpython3.5 libpython3.5-dev libquadmath0 libstdc++-6-dev libtsan0 libubsan0 linux-libc-dev make patch python3-dev python3-wheel python3.5-dev'
# Install some deps, lessc and less-plugin-clean-css, and wkhtmltopdf
RUN
set
-x
;
\
apt-get update
\
&&
apt-get
install
-y
--no-install-recommends
\
ca-certificates
\
curl
\
fontconfig
\
git
\
libssl1.0-dev
\
libx11-6
\
libxcb1
\
libxext6
\
libxrender1
\
node-less
\
postgresql-client
\
python3-pip
\
python3-pyldap
\
python3-qrcode
\
python3-renderpm
\
python3-setuptools
\
python3-vobject
\
python3-watchdog
\
xfonts-75dpi
\
xfonts-base
\
xz-utils
\
&&
\
# libfontconfig1 fontconfig-config libx11-data libxau6 libxdmcp6 xfonts-utils ucf fonts-dejavu-core libfontenc1 libxfont1 x11-common xfonts-encodings
\
# python3 python3-babel python3-dateutil python3-decorator python3-docutils python3-feedparser python3-imaging python3-jinja2 python3-ldap python3-libxslt1 python3-lxml python3-mako python3-mock python3-openid python3-passlib python3-psutil python3-psycopg2 python3-pychart python3-pydot python3-pyparsing python3-pypdf python3-reportlab python3-requests python3-suds python3-tz python3-vatnumber python3-vobject python3-werkzeug python3-xlsxwriter python3-xlwt python3-yaml python3-gevent
\
curl
-o
wkhtmltox.deb
-SL
https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.5/wkhtmltox_0.12.5-1.stretch_amd64.deb
&&
\
echo
'7e35a63f9db14f93ec7feeb0fce76b30c08f2057 wkhtmltox.deb'
|
sha1sum
-c
-
&&
\
dpkg
--force-depends
-i
wkhtmltox.deb
&&
\
apt-get
install
-y
--no-install-recommends
${
APT_DEPS
}
&&
\
pip3.5
install
-I
-r
https://raw.githubusercontent.com/OCA/OCB/12.0/requirements.txt
&&
\
pip3.5
install
simplejson WTForms
&&
\
apt-get
-y
purge
${
APT_DEPS
}
&&
\
apt-get
-y
autoremove
&&
\
rm
-rf
/var/lib/apt/lists/
*
wkhtmltox.deb
# Install Odoo and remove not French translations and .git directory to limit amount of data used by container
RUN
set
-x
;
\
useradd
--create-home
--home-dir
/opt/odoo
--no-log-init
odoo
&&
\
/bin/bash
-c
"mkdir -p /opt/odoo/{etc,odoo,additional_addons,private_addons,data,private}"
&&
\
git clone
-b
12.0
--depth
1 https://github.com/OCA/OCB.git /opt/odoo/odoo
&&
\
rm
-rf
/opt/odoo/odoo/.git
&&
\
find /opt/odoo/odoo/addons/
*
/i18n/ /opt/odoo/odoo/odoo/addons/base/i18n/
-type
f
-not
-name
'fr.po'
-delete
&&
\
chown
-R
odoo:odoo /opt/odoo
# Install Odoo OCA default dependencies
RUN
set
-x
;
\
mkdir
-p
/tmp/oca-repos/
&&
\
git clone
-b
12.0
--depth
1 https://github.com/OCA/account-financial-reporting.git /tmp/oca-repos/account-financial-reporting
&&
\
mv
/tmp/oca-repos/account-financial-reporting/account_tax_balance /opt/odoo/additional_addons/
&&
\
git clone
-b
12.0
--depth
1 https://github.com/OCA/partner-contact.git /tmp/oca-repos/partner-contact
&&
\
mv
/tmp/oca-repos/partner-contact/partner_firstname /opt/odoo/additional_addons/
&&
\
rm
-rf
/tmp/oca-repos/
&&
\
find /opt/odoo/additional_addons/
*
/i18n/
-type
f
-not
-name
'fr.po'
-delete
&&
\
chown
-R
odoo:odoo /opt/odoo
# Copy entrypoint script and Odoo configuration file
COPY
./entrypoint.sh /
COPY
./odoo.conf /opt/odoo/etc/odoo.conf
RUN
chown
odoo:odoo /opt/odoo/etc/odoo.conf
# Mount /opt/odoo/data to allow restoring filestore
VOLUME
["/opt/odoo/data/"]
# Expose Odoo services
EXPOSE
8069
# Set default user when running the container
USER
odoo
# Start
ENTRYPOINT
["/entrypoint.sh"]
CMD
["odoo"]
# Metadata
ARG
VCS_REF
ARG
BUILD_DATE
ARG
VERSION
LABEL
org.label-schema.schema-version="$VERSION" \
org.label-schema.vendor=LeFilament \
org.label-schema.license=Apache-2.0 \
org.label-schema.build-date="$BUILD_DATE" \
org.label-schema.vcs-ref="$VCS_REF" \
org.label-schema.vcs-url="https://github.com/lefilament/docker-odoo"
Ce diff est replié.
Cliquez pour l'agrandir.
hooks/build
+
13
−
3
Voir le fichier @
a3828bb0
#!/bin/bash
#!/bin/bash
set
-
ex
set
-
ex
# Get Odoo version
version
=
"
$DOCKER_TAG
"
if
[
"
$version
"
==
latest
];
then
version
=
12.0
fi
if
[
-
z
"
$IMAGE_NAME
"
];
then
IMAGE_NAME
=
"
$DOCKER_REPO:$DOCKER_TAG
"
fi
time
docker
image
build
\
time
docker
image
build
\
--
build
-
arg
VCS_REF
=
"
$GIT_SHA1
"
\
--
build
-
arg
VCS_REF
=
"
$GIT_SHA1
"
\
--
build
-
arg
BUILD_DATE
=
"
$(date --rfc-3339 ns)
"
\
--
build
-
arg
BUILD_DATE
=
"
$(date --rfc-3339 ns)
"
\
--
build
-
arg
ODOO_VERSION
=
"
10.0
"
\
--
build
-
arg
ODOO_VERSION
=
"
$version
"
\
--
file
"
Dockerfile
"
\
--
file
"
$version.
Dockerfile
"
\
--
tag
"
remifilament/odoo:10.0
"
\
--
tag
"
$IMAGE_NAME
"
\
.
.
Ce diff est replié.
Cliquez pour l'agrandir.
hooks/post_push
+
11
−
1
Voir le fichier @
a3828bb0
#!/bin/bash
#!/bin/bash
set
-ex
set
-ex
docker image push
"remifilament/odoo:10.0"
# Get Odoo version
version
=
"
$DOCKER_TAG
"
if
[
"
$version
"
==
latest
]
;
then
version
=
12.0
fi
if
[
-z
"
$IMAGE_NAME
"
]
;
then
IMAGE_NAME
=
"
$DOCKER_REPO
:
$DOCKER_TAG
"
fi
docker image push
"
$IMAGE_NAME
"
Ce diff est replié.
Cliquez pour l'agrandir.
Aperçu
0%
Chargement en cours
Veuillez réessayer
ou
joindre un nouveau fichier
.
Annuler
You are about to add
0
people
to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Enregistrer le commentaire
Annuler
Veuillez vous
inscrire
ou vous
se connecter
pour commenter