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

Refactor dockerfile scripts

    XMLWordPrintable

Details

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

       

       

    • Gemini sprint 7

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: