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
8425cd88
Valider
8425cd88
rédigé
Il y a 11 mois
par
Théo - Le Filament
Parcourir les fichiers
Options
Téléchargements
Correctifs
Plain Diff
build: small improvements
parent
bbd1ac1b
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
Modifications
1
Pipelines
14
Afficher les modifications d'espaces
En ligne
Côte à côte
Affichage de
1 fichier modifié
16.0.Dockerfile
+35
-33
35 ajouts, 33 suppressions
16.0.Dockerfile
avec
35 ajouts
et
33 suppressions
16.0.Dockerfile
+
35
−
33
Voir le fichier @
8425cd88
FROM
python:3.11-slim-bullseye
AS
builder
FROM
python:3.11-slim-bullseye
AS
builder
RUN
set
-x
;
\
RUN
set
-x
;
\
apt-get update
&&
\
apt-get update
\
apt-get
install
-
y
--no-install-recommends
build-essential libldap2-dev libpq-dev libsasl2-dev
&&
\
&&
apt-get
install
-
-yes
--no-install-recommends
build-essential libldap2-dev libpq-dev libsasl2-dev
\
pip
install
wheel
&&
\
&&
pip
install
wheel
\
pip wheel
--wheel-dir
=
/svc/wheels
-
r
https://raw.githubusercontent.com/oca/OCB/16.0/requirements.txt
&&
\
&&
pip wheel
--wheel-dir
=
/svc/wheels
-
-requirement
'
https://raw.githubusercontent.com/oca/OCB/16.0/requirements.txt
'
\
# astor required by base_view_inheritance_extension
# astor required by base_view_inheritance_extension
# openupgradelib required for OCA module migration from one version to another
# openupgradelib required for OCA module migration from one version to another
# phonenumbers required by phone_validation
# phonenumbers required by phone_validation
# python-stdnum>=1.18 required by l10n_fr_siret and l10n_fr_siret_lookup
# python-stdnum>=1.18 required by l10n_fr_siret and l10n_fr_siret_lookup
# PyYAML required by custom scripts for adding modules (https://sources.le-filament.com/lefilament/ansible-roles/docker_odoo/-/tree/master/templates)
# PyYAML required by custom scripts for adding modules (https://sources.le-filament.com/lefilament/ansible-roles/docker_odoo/-/tree/master/templates)
# zxcvbn required by password_security
# zxcvbn required by password_security
pip wheel --wheel-dir=/svc/wheels 'astor' 'openupgradelib' 'phonenumbers' 'python-stdnum>=1.18' 'PyYAML' 'zxcvbn'
&&
pip wheel --wheel-dir=/svc/wheels 'astor' 'openupgradelib' 'phonenumbers' 'python-stdnum>=1.18' 'PyYAML' 'zxcvbn'
FROM
python:3.11-slim-bullseye
AS
final
FROM
python:3.11-slim-bullseye
AS
final
ARG
SAVE_COMMITS_DIR='/opt/odoo_commits/'
ENV
LANG=C.UTF-8 \
ENV
LANG=C.UTF-8 \
LC_ALL=C.UTF-8 \
LC_ALL=C.UTF-8 \
PGDATABASE=odoo \
PGDATABASE=odoo
SAVE_COMMITS_DIR=$SAVE_COMMITS_DIR
RUN
set
-x
;
\
RUN
set
-x
;
\
apt-get update
&&
\
apt-get update
\
apt-get
install
-
y
--no-install-recommends
\
&&
apt-get
install
-
-yes
--no-install-recommends
\
curl
\
curl
\
git
\
git
\
gnupg
\
gnupg
\
openssh-client
\
openssh-client
\
xmlsec1
&&
\
xmlsec1
\
echo
'deb http://apt.postgresql.org/pub/repos/apt/ bullseye-pgdg main'
>>
/etc/apt/sources.list.d/postgresql.list
&&
\
&&
echo
'deb http://apt.postgresql.org/pub/repos/apt/ bullseye-pgdg main'
>>
/etc/apt/sources.list.d/postgresql.list
\
curl
-SL
https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add -
&&
\
&&
curl
-SL
https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add -
\
curl
-o
wkhtmltox.deb
-SL
https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6.1-2/wkhtmltox_0.12.6.1-2.bullseye_amd64.deb
&&
\
&&
curl
-o
wkhtmltox.deb
-SL
https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6.1-2/wkhtmltox_0.12.6.1-2.bullseye_amd64.deb
\
echo
'cecbf5a6abbd68d324a7cd6c51ec843d71e98951 wkhtmltox.deb'
|
sha1sum
-c
-
&&
\
&&
echo
'cecbf5a6abbd68d324a7cd6c51ec843d71e98951 wkhtmltox.deb'
|
sha1sum
-c
-
\
apt-get update
&&
\
&&
apt-get update
\
apt-get
install
-
y
--no-install-recommends
./wkhtmltox.deb
&&
\
&&
apt-get
install
-
-yes
--no-install-recommends
./wkhtmltox.deb
\
apt-get
install
-
y
--no-install-recommends
postgresql-client
&&
\
&&
apt-get
install
-
-yes
--no-install-recommends
postgresql-client
\
apt-get
-
y
autoremove
&&
\
&&
apt-get
-
-yes
autoremove
\
rm
-rf
/var/lib/apt/lists/
*
wkhtmltox.deb
&&
rm
-rf
/var/lib/apt/lists/
*
wkhtmltox.deb
COPY
--from=builder /svc /svc
COPY
--from=builder /svc /svc
RUN
pip3
install
--no-index
--find-links
=
/svc/wheels
-r
https://raw.githubusercontent.com/oca/OCB/16.0/requirements.txt
&&
\
RUN
pip3
install
--no-index
--find-links
=
/svc/wheels
--requirement
'https://raw.githubusercontent.com/oca/OCB/16.0/requirements.txt'
\
pip3
install
-U
--no-index
--find-links
=
/svc/wheels
'astor'
'openupgradelib'
'phonenumbers'
'python-stdnum>=1.18'
'PyYAML'
'zxcvbn'
&&
pip3
install
--upgrade
--no-index
--find-links
=
/svc/wheels
'astor'
'openupgradelib'
'phonenumbers'
'python-stdnum>=1.18'
'PyYAML'
'zxcvbn'
ARG
SAVE_COMMITS_DIR='/opt/odoo_commits/'
ENV
SAVE_COMMITS_DIR=$SAVE_COMMITS_DIR
# Add Git Known Hosts
# Add Git Known Hosts
COPY
./ssh_known_git_hosts /root/.ssh/known_hosts
COPY
./ssh_known_git_hosts /root/.ssh/known_hosts
...
@@ -49,10 +50,11 @@ COPY ./ssh_known_git_hosts /root/.ssh/known_hosts
...
@@ -49,10 +50,11 @@ COPY ./ssh_known_git_hosts /root/.ssh/known_hosts
ARG
SAVE_COMMITS_FILENAME='ocb'
ARG
SAVE_COMMITS_FILENAME='ocb'
RUN
set
-x
;
\
RUN
set
-x
;
\
repo
=
'https://github.com/OCA/OCB'
\
repo
=
'https://github.com/OCA/OCB'
\
branch
=
'16.0'
\
&&
useradd
--create-home
--home-dir
/opt/odoo
--no-log-init
odoo
\
&&
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}"
\
&&
/bin/bash
-c
"mkdir -p /opt/odoo/{etc,odoo,additional_addons,private_addons,data,private}"
\
&&
mkdir
/opt/odoo_commits
\
&&
mkdir
/opt/odoo_commits
\
&&
git clone
--single-branch
--branch
'16.0'
--depth
1
"
${
repo
}
"
/tmp/repo
\
&&
git clone
--single-branch
--branch
"
${
branch
}
"
--depth
1
"
${
repo
}
"
/tmp/repo
\
&&
commit
=
"
$(
git
-C
/tmp/repo rev-parse HEAD
)
"
\
&&
commit
=
"
$(
git
-C
/tmp/repo rev-parse HEAD
)
"
\
&&
mv
/tmp/repo/
*
/opt/odoo/odoo/
\
&&
mv
/tmp/repo/
*
/opt/odoo/odoo/
\
&&
echo
"
${
repo
}
;
${
commit
}
"
>
$SAVE_COMMITS_DIR
/
$SAVE_COMMITS_FILENAME
\
&&
echo
"
${
repo
}
;
${
commit
}
"
>
$SAVE_COMMITS_DIR
/
$SAVE_COMMITS_FILENAME
\
...
...
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