Repository: mlcommons/inference
Issue: cm command not found when building docker container Ubuntu 22.04 with gateoverflow@cm4mlops 
Root cause: Environment Incompatibility

When running "cm run script --tags=run-mlperf,inference,_find-performance,_full    --model=llama2-70b-99    --implementation=reference    --framework=pytorch    --category=datacenter    --scenario=Offline    --execution_mode=test    --device=cpu     --docker --quiet    --test_query_count=50  --docker_cache=no --docker_os=ubuntu --docker_os_version=22.04"

During the docker container build the cm is not found on the container. The RUN python3 -m pip install --user cmind requests giturlparse tabulate ran with no errors.

_=> CACHED [ 1/12] FROM docker.io/library/ubuntu:22.04                                                                                                                                         0.0s
 => [ 2/12] RUN apt-get update -y                                                                                                                                                                        17.6s
 => [ 3/12] RUN apt-get install -y python3 python3-pip git sudo wget python3-venv                                                                                                                       126.5s 
 => [ 4/12] RUN ln -snf /usr/share/zoneinfo/US/Pacific /etc/localtime && echo US/Pacific >/etc/timezone                                                                                                   0.5s 
 => [ 5/12] RUN groupadd -g  0  -o cm                                                                                                                                                                     0.5s 
 => [ 6/12] RUN useradd -m -u  0  -g  0  -o --create-home --shell /bin/bash cmuser                                                                                                                        0.6s 
 => [ 7/12] RUN echo "cmuser ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers                                                                                                                                     0.6s 
 => [ 8/12] WORKDIR /home/cmuser                                                                                                                                                                          0.0s 
 => [ 9/12] RUN python3 -m pip install --user cmind requests giturlparse tabulate                                                                                                                         5.5s 
 => ERROR [10/12] RUN cm pull repo gateoverflow@cm4mlops                                                                                                                                                  0.5s 
------_                                                                                                                                                                                                         
 > [10/12] RUN cm pull repo gateoverflow@cm4mlops:                                                                                                                                                             
0.502 /bin/bash: line 1: cm: command not found                                                                                                                                                                 
_------                                                                                                                                                                                                         
ubuntu_22.04.Dockerfile:39                                                                                                                                                                                     
--------------------
  _37 |     
  38 |     # Download CM repo for scripts
  39 | >>> RUN cm pull repo gateoverflow@cm4mlops
  40 |     
  41 |     # Install all system dependencies
--------------------_
ERROR: failed to solve: process "/bin/bash -c cm pull repo gateoverflow@cm4mlops" did not complete successfully: exit code: 127

CM error: Portable CM script failed (name = build-docker-image, return code = 256)_

This is latest gateoverflow@cm4mlops repo.

Did some digging and found that the cmind pip install needs the -U option.  When this is add to the install cm will be found and run.