tuxgasy/docker-dolibarr

Upgrade Dolibarr 9.0.0 to 10.0.3

rajasekhar-gundala opened this issue · 9 comments

Thanks for the image. I just installed it without any issue. Just wanted to check, how can i upgrade the version from 9.0.0 to 10.0.3?

Thanks in advance.

Hi rajaseg,

Where did you find the image ?
The image is not available on tuxgasy/dolibarr

I used https://hub.docker.com/r/tuxgasy/dolibarr

I deployed using docker compose,
web:
image: tuxgasy/dolibarr

Are you sure about the version ?
The tag "latest" is a 9.0.4, see this Dockerfile à line 33.

Can you verify your installation ? i'm confused

I have re-deployed it again just now. Please find images below for reference.

image

image

Yes, the current version is 9.0.4 and latest version is 10.0.5. is there a way to upgrade from 9.0.4 to 10.0.5?

image

You can reproduce the steps that you see in the Upgrade instructions directly inside your container:
docker exec -it CONTAINER_NAME /bin/bash.

Don't forget to persist your volume, otherwise you will loose your upgrade

I complete my instructions for an update of Dolibarr:

Open a temrinal into docker server where your dolibarr container is running

# execute a shell inside the container
docker exec -it [CONTAINER_NAME] /bin/bash
# Your target version (for me, the 10.0.6)
export DOLI_VERSION=10.0.6
rm -rf /tmp/dolibarr /tmp/dolibarr.zip
wget https://github.com/Dolibarr/dolibarr/archive/${DOLI_VERSION}.zip -P /tmp
unzip -q /tmp/${DOLI_VERSION}.zip -d /tmp/dolibarr && ls -la /tmp/dolibarr
cp -r /tmp/dolibarr/dolibarr-${DOLI_VERSION}/htdocs/* /var/www/html/
cp -r /tmp/dolibarr/dolibarr-${DOLI_VERSION}/scripts /var/www/
rm -rf /tmp/dolibarr
chown -R www-data:www-data /var/www

# remove the previous lock
rm /var/www/documents/install.lock
# Go to your Dolibarr installation in your webbrowser and follow the instructions for update 

# Once the installation is finished, go back to your shell console
touch /var/www/documents/install.lock && \
chown www-data:www-data /var/www/documents/install.lock && \
chmod 400 /var/www/documents/install.lock

# And close the ssh connection
exit

Where to run the above code?

Where to run the above code?

I've updated my previous response :)