Uploaded image for project: 'OpenShift Bugs'
  1. OpenShift Bugs
  2. OCPBUGS-43006

Error building assisted-installer-agent/Dockerfile.ocp

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • 4.18.0
    • None
    • None
    • False
    • Hide

      None

      Show
      None

      A string comparison is being done with "-eq", it should be using "="

       

      [derekh@u07 assisted-installer-agent]$ sudo podman build -f Dockerfile.ocp 
      STEP 1/3: FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.21-openshift-4.16 AS builder
      STEP 2/3: RUN if [ "$(arch)" -eq "x86_64" ]; then dnf install -y biosdevname dmidecode; fi
      /bin/sh: line 1: [: x86_64: integer expression expected
      --> cb5707d9d703
      STEP 3/3: RUN if [ "$(arch)" -eq "aarch64" ]; then dnf install -y dmidecode; fi
      /bin/sh: line 1: [: x86_64: integer expression expected
      COMMIT
      --> 0b12a705f47e
      0b12a705f47e015f43d7815743f2ad71da764b1358decc151454ec8802a827fc
      

       

            oourfali Oved Ourfali
            dhiggins@redhat.com Derek Higgins
            Michael Burman Michael Burman
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: