Skip to content

Docker-based deployment instructions

Expired Links

The download links expire automatically. Before proceeding, please ask clarity@chemotargets.com to re-activate them.

  1. Create the working directory:

    mkdir -p clrt4.2-artifacts
    cd clrt4.2-artifacts
    
  2. Download and load Docker images.

    for iname in helper frontend db backend; do
      echo "Loading clrt4-${iname}"
      curl -fsSL "https://dl.chmtgt.app/clrt4-${iname}.tar.zst" | docker load
    done
    
  3. Load Docker data volumes:

    • Option A: Download and load from disk (for unstable networks)

      # 1. Download the compose file
      echo "Fetching docker-compose.yml..."
      curl -fsSL "https://dl.chmtgt.app/docker-compose.yml" -o "docker-compose.yml"
      
      # 2. Loop through volumes
      for vname in ct-license pg-data io-data; do
        echo "Downloading ${vname}.tar.zst..."
      
        if curl -fsSL "https://dl.chmtgt.app/${vname}.tar.zst" -o "${vname}.tar.zst"; then
      
          echo "Restoring ${vname} to Docker volume..."
          docker compose run --rm -v "$PWD/${vname}.tar.zst:/tmp/${vname}.tar.zst" \
            -v "${vname}:/srv/backup/${vname}" \
            helper sh -c "unzstd -c /tmp/${vname}.tar.zst | tar xf - -C /srv/backup" \
            && rm -f "${vname}.tar.zst"
      
        else
          echo "ERROR: Failed to download ${vname}. Link may be expired or invalid."
        fi
      done
      
    • Option B: Load from pipe (for stable networks)

      curl -fsSL -O "https://dl.chmtgt.app/docker-compose.yml"
      for vname in ct-license pg-data io-data; do
        echo "Streaming and restoring ${vname}..."
      
        curl -fsSL "https://dl.chmtgt.app/${vname}.tar.zst" | \
          docker compose run --rm \
          -v "${vname}:/srv/backup/${vname}" \
          helper sh -c "unzstd | tar xf - -C /srv/backup"
      
        if [ ${PIPESTATUS[0]} -eq 0 ]; then
          echo "Successfully restored ${vname}"
        else
          echo "Failed to restore ${vname}. Check the URL or network."
        fi
      done
      
  4. Start the services:

    docker compose up -d
    
  5. Wait ~15 min for the first run to populate the backend cache.