Difference between revisions of "Upgrade Docker container"

From LogicalDOC Community Wiki
Jump to navigationJump to search
Line 1: Line 1:
 +
== Initial Situation ==
 +
 
Here is how you usually start a Docker container with LogicalDOC connected to a MySQL 8.0 container for DB engine
 
Here is how you usually start a Docker container with LogicalDOC connected to a MySQL 8.0 container for DB engine
  
Line 15: Line 17:
 
docker run -p 8080:8080 -e LDOC_USERNO=543645 -e DB_HOST=mysqlld861 --link mysqlld861 logicaldoc/logicaldoc:8.6.1
 
docker run -p 8080:8080 -e LDOC_USERNO=543645 -e DB_HOST=mysqlld861 --link mysqlld861 logicaldoc/logicaldoc:8.6.1
 
</pre>
 
</pre>
 +
 +
== Start the upgra process ==
 +
Download the upgrade package for LD 8.6.1 from http://network.logicaldoc.com/ and copy it from the host to the container instance.
 +
Note that the file will be copied to the directory prepared to contain the update packages
 +
docker cp ldoc_upd-00000086.zip <Logicaldoc-container-name>:/LogicalDOC/updates/
 +
 +
The upgrade package ldoc_upd-00000086.zip will upgrade the system from version 8.6.1 to version 8.7

Revision as of 10:37, 10 December 2021

Initial Situation

Here is how you usually start a Docker container with LogicalDOC connected to a MySQL 8.0 container for DB engine

Get the LogicalDOC 8.6.1 image

docker pull logicaldoc/logicaldoc:8.6.1

Run the MySQL container

docker run --name=mysqlld861 -e MYSQL_ROOT_PASSWORD=mypassword -e MYSQL_DATABASE=logicaldoc -e MYSQL_USER=ldoc -e MYSQL_PASSWORD=changeme mysql:latest --default-authentication-plugin=mysql_native_password

Run the LogicalDOC container connected to the MySQL one

docker run -p 8080:8080 -e LDOC_USERNO=543645 -e DB_HOST=mysqlld861 --link mysqlld861 logicaldoc/logicaldoc:8.6.1

Start the upgra process

Download the upgrade package for LD 8.6.1 from http://network.logicaldoc.com/ and copy it from the host to the container instance. Note that the file will be copied to the directory prepared to contain the update packages docker cp ldoc_upd-00000086.zip <Logicaldoc-container-name>:/LogicalDOC/updates/

The upgrade package ldoc_upd-00000086.zip will upgrade the system from version 8.6.1 to version 8.7