Uploaded image for project: 'Qt Cloud'
  1. Qt Cloud
  2. CLOUD-200

Refactor dockerfile scripts

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Done
    • Icon: P2: Important P2: Important
    • None
    • None
    • General
    • None
    •  

       

       

    • Gemini sprint 7

      Currently we're using following way to catch failed commands in dockerfile scripts:

       

      set -e
      update-alternatives --install /usr/bin/python python /usr/bin/python3 1 || \
          { echo "Unable to set python3 as the default python"; exit 1; }
      set +e

      At this point set -e is redundant. We're losing original error code as every failure is shown ar error code 1. Removing "exit 1;" will not work, because then the last command would be "echo" which would return error code 0, so docker build will go further. We need to find the way to maintain original error code and error message as painless as possible.

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            as33ms Aseem Shakuntal
            kgorecki Krzysztof Gorecki
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes