Steps:

  1. Before upgrading we recommend you take backup of the volumes mounted. For example as below:
    /home/${USER}/BrowserStackCodeQuality/gamma_data
    /home/${USER}/BrowserStackCodeQuality/gamma_psql_data
    /home/${USER}/BrowserStackCodeQuality/gamma_psql_data
  2. Stop and remove existing running docker container
  3. Login to Customer Portal and go to Releases section
  4. Download latest docker <BROWSERSTACK_CQ_VERSION>.tar.gz file
  5. Load docker container on your local machine
    docker load -i BrowserStackCodeQuality_<BROWSERSTACK_CQ_VERSION>.tar.gz
  6. Re-run docker container using below command (or use the same docker run command which you used earlier)

    docker run -m 12GB -d -p 3000:3000 --name BrowserStackCodeQuality -e ACCEPT_EULA=Y -e gamma_ui_public_host=http://:3000 -e EMB_USE_NATIVE_PYPARSER=TRUE -e RISK_XMX=-Xmx2024m -e ANALYSER_XMX=-Xmx8072m -v /home/${USER}/BrowserStackCodeQuality/gamma_data:/opt/gamma_data -v /home/${USER}/BrowserStackCodeQuality/gamma_psql_data:/var/lib/postgresql -v /home/${USER}/BrowserStackCodeQuality/logs:/opt/gamma/logs browserstack/code-quality:<BROWSERSTACK_CQ_NEW_VERSION>