chgt build odoo
This commit is contained in:
parent
382b31c182
commit
59bb14c083
7 changed files with 62 additions and 2 deletions
|
|
@ -1,6 +1,6 @@
|
|||
#cd postgresql-config
|
||||
#docker build -t postgres15-5434-image .
|
||||
docker build \
|
||||
-f ./postgresql-config/Dockerfile \
|
||||
-f ./config-postgresql/Dockerfile \
|
||||
-t postgres15-5434-image .
|
||||
#cd ..
|
||||
|
|
|
|||
|
|
@ -1 +1,46 @@
|
|||
docker build -t odoo18-20260324-image .
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
# ── Extraction des métadonnées depuis le Dockerfile ──────────────────────────
|
||||
DOCKERFILE=./config-odoo/"${1:-Dockerfile}"
|
||||
|
||||
ODOO_VERSION=$(grep -E '^\s*ENV ODOO_VERSION\s' "$DOCKERFILE" | awk '{print $3}')
|
||||
ODOO_RELEASE=$(grep -E '^\s*ARG ODOO_RELEASE=' "$DOCKERFILE" | cut -d'=' -f2)
|
||||
|
||||
if [[ -z "$ODOO_VERSION" || -z "$ODOO_RELEASE" ]]; then
|
||||
echo "ERREUR : impossible d'extraire ODOO_VERSION ou ODOO_RELEASE depuis $DOCKERFILE" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
IMAGE_NAME="odoo-${ODOO_VERSION}.${ODOO_RELEASE}-image"
|
||||
|
||||
echo "────────────────────────────────────────────"
|
||||
echo " Dockerfile : $DOCKERFILE"
|
||||
echo " Odoo version : $ODOO_VERSION"
|
||||
echo " Build release: $ODOO_RELEASE"
|
||||
echo " Image cible : $IMAGE_NAME"
|
||||
echo "────────────────────────────────────────────"
|
||||
|
||||
# ── Build ─────────────────────────────────────────────────────────────────────
|
||||
|
||||
#echo "──commande cp───────────────────────────────"
|
||||
cp ./odoo.conf ./config-odoo/
|
||||
cp ./requirements.txt ./config-odoo/
|
||||
|
||||
#echo "──commande cd ──────────────────────────────"
|
||||
cd config-odoo
|
||||
|
||||
#echo "───commande build ──────────────────────────"
|
||||
docker build \
|
||||
--build-arg ODOO_RELEASE="$ODOO_RELEASE" \
|
||||
--tag "$IMAGE_NAME" \
|
||||
.
|
||||
|
||||
#echo "─commande cd ..─────────────────────────────"
|
||||
cd ..
|
||||
|
||||
|
||||
#echo "──────fin───────────────────────────────────"
|
||||
|
||||
echo ""
|
||||
echo "✓ Image construite : $IMAGE_NAME"
|
||||
|
|
|
|||
15
config-odoo/requirements.txt
Normal file
15
config-odoo/requirements.txt
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
packaging
|
||||
regex
|
||||
dateparser
|
||||
pymupdf
|
||||
factur-x
|
||||
lxml
|
||||
num2words
|
||||
pyfrdas2>=0.10
|
||||
pypdf>=3.1.0
|
||||
python-dateutil
|
||||
python-stdnum
|
||||
requests
|
||||
requests_oauthlib
|
||||
unidecode
|
||||
|
||||
Loading…
Reference in a new issue