Skip to main content
Version: 7.2

Docker environment

The upgrade procedure depends on the version from which the upgrade is being performed and is only possible between two consecutive versions, such as from ASM 7.0.1 to ASM 7.1.0 or ASM 7.1.0 to ASM 7.2.0.

It is highly recommended to backup and restore your system before proceeding with an upgrade.

Important

Upgrading ASM will cause downtime for the application and consequently a temporary loss of service. As a result, the upgrade should be planned accordingly.

Backup and restore

It is recommended to backup your databases before each ASM version upgrade. In case that you encounter any issue during the upgrading you will be able to restore your previous version.

The following steps describe how to backup ASM 7.0.0 or ASM 7.0.1.

Backup

  1. Stop all services except for the databases.

    $ docker stop docker_adm_1 docker_service-aggregator_1 docker_asm_1 docker_gateway_1 docker_keycloak_1
  2. Enter the container.

    $ docker exec -it -u postgres docker_db_1 bash
  3. Dump the databases inside the container.

    $ cd /tmp
    $ pg_dump asm > asm.sql
    $ pg_dump domain_manager > domain_manager.sql
  4. Exit the container.

    $ exit
  5. Copy the SQL files to the host.

    $ docker cp docker_db_1:/tmp/asm.sql .
    $ docker cp docker_db_1:/tmp/domain_manager.sql .

Restore

  1. Stop all services except for the databases.

    $ docker stop docker_adm_1 docker_service-aggregator_1 docker_asm_1 docker_gateway_1 docker_keycloak_1
  2. Copy the SQL files to the new database container.

    $ docker cp <path_to_file>/asm.sql docker_db_1:/
    $ docker cp <path_to_file>/domain_manager.sql docker_db_1:/
  3. Enter the container.

    $ docker exec -it -u postgres docker_db_1 bash
  1. Drop the databases, create them again and run the SQL files.

    $ psql template1 -c 'drop database asm'
    $ psql template1 -c 'drop database domain_manager'
    $ psql template1 -c 'create database asm'
    $ psql template1 -c 'create database domain_manager'
    $ psql asm < asm.sql
    $ psql domain_manager < domain_manager.sql
  2. Exit the container.

    $ exit
  3. Start all the service's containers again.

    $ docker start docker_adm_1 docker_service-aggregator_1 docker_asm_1 docker_gateway_1 docker_keycloak_1

Upgrade procedure

The upgrade from ASM 6.2.x version to ASM 7.0.0 is NOT supported.