Skip to content

Commit c58ee25

Browse files
committed
Merge branch 'main' of [email protected]:Dolibarr/dolibarr-docker.git into main
2 parents dde7ade + 0e7fff4 commit c58ee25

File tree

18 files changed

+23
-14
lines changed

18 files changed

+23
-14
lines changed

Dockerfile.template

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ RUN apt-get update -y \
6161
default-mysql-client \
6262
postgresql-client \
6363
cron \
64-
wget \
6564
&& apt-get autoremove -y \
6665
&& docker-php-ext-configure gd --with-freetype --with-jpeg \
6766
&& docker-php-ext-install -j$(nproc) calendar intl mysqli pdo_mysql gd soap zip \

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Dolibarr is a modern software package to manage your organization's activity (co
1313
* 16.0.5-php8.1 16.0.5 16
1414
* 17.0.4-php8.1 17.0.4 17
1515
* 18.0.5-php8.1 18.0.5 18
16-
* 19.0.2-php8.2 19.0.2 19 latest
16+
* 19.0.3-php8.2 19.0.3 19 latest
1717
* develop
1818

1919
**End of support for PHP < 7.4**
@@ -193,6 +193,7 @@ Environment variables that are compatible with docker secrets:
193193

194194

195195
## Add post-deployment and before starting scripts
196+
196197
It is possible to execute `*.sh`, `*.sql` and/or `*.php` custom file at the end of deployment or before starting Apache by mounting volumes.
197198
For scripts executed during deployment mount volume in `/var/www/scripts/docker-init.d`.
198199
For scripts executed before Apache stating mount volume in `/var/www/scripts/before-starting.d`.

README.template

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ services:
6464
- /home/dolibarr_custom:/var/www/html/custom
6565
```
6666

67-
Then build and run all services (-d is to run in background)
67+
Then build and run all services (-d is to run in background)
6868

6969
`sudo docker-compose up -d`
7070

@@ -96,7 +96,7 @@ Remove the `install.lock` file. The `install.lock` file is located inside the co
9696

9797
`sudo docker exec nameofwebcontainer bash -c "rm -f /var/www/documents/install.lock"`
9898

99-
or
99+
or
100100

101101
`sudo docker exec -it nameofwebcontainer bash`
102102

@@ -116,6 +116,7 @@ You can still use the standard way to upgrade through web interface.
116116

117117

118118
## Early support for PostgreSQL
119+
119120
Setting `DOLI_DB_TYPE` to `pgsql` enable Dolibarr to run with a PostgreSQL database.
120121
When set to use `pgsql`, Dolibarr must be installed manually on it's first execution:
121122
- Browse to `http://0.0.0.0/install`;
@@ -184,7 +185,9 @@ Environment variables that are compatible with docker secrets:
184185
* `DOLI_CRON_USER` => `DOLI_CRON_USER_FILE`
185186
* `DOLI_INSTANCE_UNIQUE_ID` => `DOLI_INSTANCE_UNIQUE_ID_FILE`
186187

188+
187189
## Add post-deployment and before starting scripts
190+
188191
It is possible to execute `*.sh`, `*.sql` and/or `*.php` custom file at the end of deployment or before starting Apache by mounting volumes.
189192
For scripts executed during deployment mount volume in `/var/www/scripts/docker-init.d`.
190193
For scripts executed before Apache stating mount volume in `/var/www/scripts/before-starting.d`.

docker-run.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ function initializeDatabase()
200200
mkdir -p /var/www/dev/initdemo/
201201
versiondemo=`echo "${DOLI_VERSION}" | sed "s/^\([0-9]*\.[0-9]*\).*/\1.0/"`
202202
echo "Load demo data from file https://raw.githubusercontent.com/Dolibarr/dolibarr/${DOLI_INIT_DEMO}/dev/initdemo/mysqldump_dolibarr_$versiondemo.sql ..."
203-
wget https://raw.githubusercontent.com/Dolibarr/dolibarr/${DOLI_VERSION}/dev/initdemo/mysqldump_dolibarr_$versiondemo.sql -o /var/www/dev/initdemo/initdemo.sql
203+
curl -fLSs -o /var/www/dev/initdemo/initdemo.sql https://raw.githubusercontent.com/Dolibarr/dolibarr/${DOLI_VERSION}/dev/initdemo/mysqldump_dolibarr_$versiondemo.sql
204204
for fileSQL in /var/www/dev/initdemo/*.sql; do
205205
# We exclude the old load file.
206206
if [[ $fileSQL =~ mysqldump_dolibarr_3.5 ]]; then

images/15.0.3-php7.4/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
ARG ARCH=
22

3+
# Use an image like PHP_BASE_IMAGE=x.y-apache-buster
34
FROM ${ARCH}php:7.4-apache-buster
45

56
LABEL maintainer="Garcia MICHEL <[email protected]>"

images/15.0.3-php7.4/docker-run.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ function initializeDatabase()
200200
mkdir -p /var/www/dev/initdemo/
201201
versiondemo=`echo "${DOLI_VERSION}" | sed "s/^\([0-9]*\.[0-9]*\).*/\1.0/"`
202202
echo "Load demo data from file https://raw.githubusercontent.com/Dolibarr/dolibarr/${DOLI_INIT_DEMO}/dev/initdemo/mysqldump_dolibarr_$versiondemo.sql ..."
203-
wget https://raw.githubusercontent.com/Dolibarr/dolibarr/${DOLI_INIT_DEMO}/dev/initdemo/mysqldump_dolibarr_$versiondemo.sql -o /var/www/dev/initdemo/initdemo.sql
203+
curl -fLSs -o /var/www/dev/initdemo/initdemo.sql https://raw.githubusercontent.com/Dolibarr/dolibarr/${DOLI_VERSION}/dev/initdemo/mysqldump_dolibarr_$versiondemo.sql
204204
for fileSQL in /var/www/dev/initdemo/*.sql; do
205205
# We exclude the old load file.
206206
if [[ $fileSQL =~ mysqldump_dolibarr_3.5 ]]; then

images/16.0.5-php8.1/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
ARG ARCH=
22

3+
# Use an image like PHP_BASE_IMAGE=x.y-apache-buster
34
FROM ${ARCH}php:8.1-apache-buster
45

56
LABEL maintainer="Garcia MICHEL <[email protected]>"

images/16.0.5-php8.1/docker-run.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ function initializeDatabase()
200200
mkdir -p /var/www/dev/initdemo/
201201
versiondemo=`echo "${DOLI_VERSION}" | sed "s/^\([0-9]*\.[0-9]*\).*/\1.0/"`
202202
echo "Load demo data from file https://raw.githubusercontent.com/Dolibarr/dolibarr/${DOLI_INIT_DEMO}/dev/initdemo/mysqldump_dolibarr_$versiondemo.sql ..."
203-
wget https://raw.githubusercontent.com/Dolibarr/dolibarr/${DOLI_INIT_DEMO}/dev/initdemo/mysqldump_dolibarr_$versiondemo.sql -o /var/www/dev/initdemo/initdemo.sql
203+
curl -fLSs -o /var/www/dev/initdemo/initdemo.sql https://raw.githubusercontent.com/Dolibarr/dolibarr/${DOLI_VERSION}/dev/initdemo/mysqldump_dolibarr_$versiondemo.sql
204204
for fileSQL in /var/www/dev/initdemo/*.sql; do
205205
# We exclude the old load file.
206206
if [[ $fileSQL =~ mysqldump_dolibarr_3.5 ]]; then

images/17.0.4-php8.1/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
ARG ARCH=
22

3+
# Use an image like PHP_BASE_IMAGE=x.y-apache-buster
34
FROM ${ARCH}php:8.1-apache-buster
45

56
LABEL maintainer="Garcia MICHEL <[email protected]>"

images/17.0.4-php8.1/docker-run.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ function initializeDatabase()
200200
mkdir -p /var/www/dev/initdemo/
201201
versiondemo=`echo "${DOLI_VERSION}" | sed "s/^\([0-9]*\.[0-9]*\).*/\1.0/"`
202202
echo "Load demo data from file https://raw.githubusercontent.com/Dolibarr/dolibarr/${DOLI_INIT_DEMO}/dev/initdemo/mysqldump_dolibarr_$versiondemo.sql ..."
203-
wget https://raw.githubusercontent.com/Dolibarr/dolibarr/${DOLI_INIT_DEMO}/dev/initdemo/mysqldump_dolibarr_$versiondemo.sql -o /var/www/dev/initdemo/initdemo.sql
203+
curl -fLSs -o /var/www/dev/initdemo/initdemo.sql https://raw.githubusercontent.com/Dolibarr/dolibarr/${DOLI_VERSION}/dev/initdemo/mysqldump_dolibarr_$versiondemo.sql
204204
for fileSQL in /var/www/dev/initdemo/*.sql; do
205205
# We exclude the old load file.
206206
if [[ $fileSQL =~ mysqldump_dolibarr_3.5 ]]; then

0 commit comments

Comments
 (0)