Uploaded image for project: 'MicroShift'
  1. MicroShift
  2. USHIFT-5098

Make verify containers does not exit when errors are encountered

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Normal Normal
    • None
    • None
    • None
    • 1
    • False
    • Hide

      None

      Show
      None
    • False
    • uShift Sprint 263

      Description of problem:

      Make verify containers does not exit when errors are encountered

      Version-Release number of selected component (if applicable):

      main and below where container-based hadolint is used

      How reproducible:

      100%

      Steps to Reproduce:

      make verify-containers
      

      Actual results:

      ./test/image-blueprints-bootc/layer1-base/group2/rhel95-bootc-crel-optionals.containerfile
      /dev/stdin:1:1 unexpected '{' expecting '#', ADD, ARG, CMD, COPY, ENTRYPOINT, ENV, EXPOSE, FROM, HEALTHCHECK, LABEL, MAINTAINER, ONBUILD, RUN, SHELL, STOPSIGNAL, USER, VOLUME, WORKDIR, a pragma, end of input, or whitespaces 
      ./test/image-blueprints-bootc/layer1-base/group2/rhel95-bootc-crel.containerfile
      /dev/stdin:1:1 unexpected '{' expecting '#', ADD, ARG, CMD, COPY, ENTRYPOINT, ENV, EXPOSE, FROM, HEALTHCHECK, LABEL, MAINTAINER, ONBUILD, RUN, SHELL, STOPSIGNAL, USER, VOLUME, WORKDIR, a pragma, end of input, or whitespaces 
      
      $ echo $?
      0

      Expected results:

      $ echo $?
      1

              ggiguash@redhat.com Gregory Giguashvili
              ggiguash@redhat.com Gregory Giguashvili
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: