Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove wget dependency #1

Merged
merged 2 commits into from
Aug 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion Dockerfile.template
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ RUN apt-get update -y \
default-mysql-client \
postgresql-client \
cron \
wget \
&& apt-get autoremove -y \
&& docker-php-ext-configure gd --with-freetype --with-jpeg \
&& docker-php-ext-install -j$(nproc) calendar intl mysqli pdo_mysql gd soap zip \
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,7 @@ Environment variables that are compatible with docker secrets:


## Add post-deployment and before starting scripts

It is possible to execute `*.sh`, `*.sql` and/or `*.php` custom file at the end of deployment or before starting Apache by mounting volumes.
For scripts executed during deployment mount volume in `/var/www/scripts/docker-init.d`.
For scripts executed before Apache stating mount volume in `/var/www/scripts/before-starting.d`.
Expand Down
7 changes: 5 additions & 2 deletions README.template
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ services:
- /home/dolibarr_custom:/var/www/html/custom
```

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

`sudo docker-compose up -d`

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

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

or
or

`sudo docker exec -it nameofwebcontainer bash`

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


## Early support for PostgreSQL

Setting `DOLI_DB_TYPE` to `pgsql` enable Dolibarr to run with a PostgreSQL database.
When set to use `pgsql`, Dolibarr must be installed manually on it's first execution:
- Browse to `http://0.0.0.0/install`;
Expand Down Expand Up @@ -184,7 +185,9 @@ Environment variables that are compatible with docker secrets:
* `DOLI_CRON_USER` => `DOLI_CRON_USER_FILE`
* `DOLI_INSTANCE_UNIQUE_ID` => `DOLI_INSTANCE_UNIQUE_ID_FILE`


## Add post-deployment and before starting scripts

It is possible to execute `*.sh`, `*.sql` and/or `*.php` custom file at the end of deployment or before starting Apache by mounting volumes.
For scripts executed during deployment mount volume in `/var/www/scripts/docker-init.d`.
For scripts executed before Apache stating mount volume in `/var/www/scripts/before-starting.d`.
Expand Down
2 changes: 1 addition & 1 deletion docker-run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ function initializeDatabase()
mkdir -p /var/www/dev/initdemo/
versiondemo=`echo "${DOLI_VERSION}" | sed "s/^\([0-9]*\.[0-9]*\).*/\1.0/"`
echo "Load demo data from file https://raw.githubusercontent.com/Dolibarr/dolibarr/${DOLI_INIT_DEMO}/dev/initdemo/mysqldump_dolibarr_$versiondemo.sql ..."
wget https://raw.githubusercontent.com/Dolibarr/dolibarr/${DOLI_VERSION}/dev/initdemo/mysqldump_dolibarr_$versiondemo.sql -o /var/www/dev/initdemo/initdemo.sql
curl -fLSs -o /var/www/dev/initdemo/initdemo.sql https://raw.githubusercontent.com/Dolibarr/dolibarr/${DOLI_VERSION}/dev/initdemo/mysqldump_dolibarr_$versiondemo.sql
for fileSQL in /var/www/dev/initdemo/*.sql; do
# We exclude the old load file.
if [[ $fileSQL =~ mysqldump_dolibarr_3.5 ]]; then
Expand Down
1 change: 1 addition & 0 deletions images/15.0.3-php7.4/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
ARG ARCH=

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

LABEL maintainer="Garcia MICHEL <[email protected]>"
Expand Down
2 changes: 1 addition & 1 deletion images/15.0.3-php7.4/docker-run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ function initializeDatabase()
mkdir -p /var/www/dev/initdemo/
versiondemo=`echo "${DOLI_VERSION}" | sed "s/^\([0-9]*\.[0-9]*\).*/\1.0/"`
echo "Load demo data from file https://raw.githubusercontent.com/Dolibarr/dolibarr/${DOLI_INIT_DEMO}/dev/initdemo/mysqldump_dolibarr_$versiondemo.sql ..."
wget https://raw.githubusercontent.com/Dolibarr/dolibarr/${DOLI_INIT_DEMO}/dev/initdemo/mysqldump_dolibarr_$versiondemo.sql -o /var/www/dev/initdemo/initdemo.sql
curl -fLSs -o /var/www/dev/initdemo/initdemo.sql https://raw.githubusercontent.com/Dolibarr/dolibarr/${DOLI_VERSION}/dev/initdemo/mysqldump_dolibarr_$versiondemo.sql
for fileSQL in /var/www/dev/initdemo/*.sql; do
# We exclude the old load file.
if [[ $fileSQL =~ mysqldump_dolibarr_3.5 ]]; then
Expand Down
1 change: 1 addition & 0 deletions images/16.0.5-php8.1/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
ARG ARCH=

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

LABEL maintainer="Garcia MICHEL <[email protected]>"
Expand Down
2 changes: 1 addition & 1 deletion images/16.0.5-php8.1/docker-run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ function initializeDatabase()
mkdir -p /var/www/dev/initdemo/
versiondemo=`echo "${DOLI_VERSION}" | sed "s/^\([0-9]*\.[0-9]*\).*/\1.0/"`
echo "Load demo data from file https://raw.githubusercontent.com/Dolibarr/dolibarr/${DOLI_INIT_DEMO}/dev/initdemo/mysqldump_dolibarr_$versiondemo.sql ..."
wget https://raw.githubusercontent.com/Dolibarr/dolibarr/${DOLI_INIT_DEMO}/dev/initdemo/mysqldump_dolibarr_$versiondemo.sql -o /var/www/dev/initdemo/initdemo.sql
curl -fLSs -o /var/www/dev/initdemo/initdemo.sql https://raw.githubusercontent.com/Dolibarr/dolibarr/${DOLI_VERSION}/dev/initdemo/mysqldump_dolibarr_$versiondemo.sql
for fileSQL in /var/www/dev/initdemo/*.sql; do
# We exclude the old load file.
if [[ $fileSQL =~ mysqldump_dolibarr_3.5 ]]; then
Expand Down
1 change: 1 addition & 0 deletions images/17.0.4-php8.1/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
ARG ARCH=

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

LABEL maintainer="Garcia MICHEL <[email protected]>"
Expand Down
2 changes: 1 addition & 1 deletion images/17.0.4-php8.1/docker-run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ function initializeDatabase()
mkdir -p /var/www/dev/initdemo/
versiondemo=`echo "${DOLI_VERSION}" | sed "s/^\([0-9]*\.[0-9]*\).*/\1.0/"`
echo "Load demo data from file https://raw.githubusercontent.com/Dolibarr/dolibarr/${DOLI_INIT_DEMO}/dev/initdemo/mysqldump_dolibarr_$versiondemo.sql ..."
wget https://raw.githubusercontent.com/Dolibarr/dolibarr/${DOLI_INIT_DEMO}/dev/initdemo/mysqldump_dolibarr_$versiondemo.sql -o /var/www/dev/initdemo/initdemo.sql
curl -fLSs -o /var/www/dev/initdemo/initdemo.sql https://raw.githubusercontent.com/Dolibarr/dolibarr/${DOLI_VERSION}/dev/initdemo/mysqldump_dolibarr_$versiondemo.sql
for fileSQL in /var/www/dev/initdemo/*.sql; do
# We exclude the old load file.
if [[ $fileSQL =~ mysqldump_dolibarr_3.5 ]]; then
Expand Down
1 change: 1 addition & 0 deletions images/18.0.5-php8.1/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
ARG ARCH=

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

LABEL maintainer="Garcia MICHEL <[email protected]>"
Expand Down
2 changes: 1 addition & 1 deletion images/18.0.5-php8.1/docker-run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ function initializeDatabase()
mkdir -p /var/www/dev/initdemo/
versiondemo=`echo "${DOLI_VERSION}" | sed "s/^\([0-9]*\.[0-9]*\).*/\1.0/"`
echo "Load demo data from file https://raw.githubusercontent.com/Dolibarr/dolibarr/${DOLI_INIT_DEMO}/dev/initdemo/mysqldump_dolibarr_$versiondemo.sql ..."
wget https://raw.githubusercontent.com/Dolibarr/dolibarr/${DOLI_INIT_DEMO}/dev/initdemo/mysqldump_dolibarr_$versiondemo.sql -o /var/www/dev/initdemo/initdemo.sql
curl -fLSs -o /var/www/dev/initdemo/initdemo.sql https://raw.githubusercontent.com/Dolibarr/dolibarr/${DOLI_VERSION}/dev/initdemo/mysqldump_dolibarr_$versiondemo.sql
for fileSQL in /var/www/dev/initdemo/*.sql; do
# We exclude the old load file.
if [[ $fileSQL =~ mysqldump_dolibarr_3.5 ]]; then
Expand Down
1 change: 1 addition & 0 deletions images/19.0.3-php8.2/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
ARG ARCH=

# Use an image like PHP_BASE_IMAGE=x.y-apache-buster
FROM ${ARCH}php:8.2-apache-buster

LABEL maintainer="Garcia MICHEL <[email protected]>"
Expand Down
2 changes: 1 addition & 1 deletion images/19.0.3-php8.2/docker-run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ function initializeDatabase()
mkdir -p /var/www/dev/initdemo/
versiondemo=`echo "${DOLI_VERSION}" | sed "s/^\([0-9]*\.[0-9]*\).*/\1.0/"`
echo "Load demo data from file https://raw.githubusercontent.com/Dolibarr/dolibarr/${DOLI_INIT_DEMO}/dev/initdemo/mysqldump_dolibarr_$versiondemo.sql ..."
wget https://raw.githubusercontent.com/Dolibarr/dolibarr/${DOLI_INIT_DEMO}/dev/initdemo/mysqldump_dolibarr_$versiondemo.sql -o /var/www/dev/initdemo/initdemo.sql
curl -fLSs -o /var/www/dev/initdemo/initdemo.sql https://raw.githubusercontent.com/Dolibarr/dolibarr/${DOLI_VERSION}/dev/initdemo/mysqldump_dolibarr_$versiondemo.sql
for fileSQL in /var/www/dev/initdemo/*.sql; do
# We exclude the old load file.
if [[ $fileSQL =~ mysqldump_dolibarr_3.5 ]]; then
Expand Down
1 change: 1 addition & 0 deletions images/develop/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
ARG ARCH=

# Use an image like PHP_BASE_IMAGE=x.y-apache-buster
FROM ${ARCH}php:8.2-apache-buster

LABEL maintainer="Garcia MICHEL <[email protected]>"
Expand Down
2 changes: 1 addition & 1 deletion images/develop/docker-run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ function initializeDatabase()
mkdir -p /var/www/dev/initdemo/
versiondemo=`echo "${DOLI_VERSION}" | sed "s/^\([0-9]*\.[0-9]*\).*/\1.0/"`
echo "Load demo data from file https://raw.githubusercontent.com/Dolibarr/dolibarr/${DOLI_INIT_DEMO}/dev/initdemo/mysqldump_dolibarr_$versiondemo.sql ..."
wget https://raw.githubusercontent.com/Dolibarr/dolibarr/${DOLI_INIT_DEMO}/dev/initdemo/mysqldump_dolibarr_$versiondemo.sql -o /var/www/dev/initdemo/initdemo.sql
curl -fLSs -o /var/www/dev/initdemo/initdemo.sql https://raw.githubusercontent.com/Dolibarr/dolibarr/${DOLI_VERSION}/dev/initdemo/mysqldump_dolibarr_$versiondemo.sql
for fileSQL in /var/www/dev/initdemo/*.sql; do
# We exclude the old load file.
if [[ $fileSQL =~ mysqldump_dolibarr_3.5 ]]; then
Expand Down
Loading