intel / intel-cmt-cat

User space software for Intel(R) Resource Director Technology
http://www.intel.com/content/www/us/en/architecture-and-technology/resource-director-technology.html
Other
692 stars 182 forks source link

Failing On build DockerFile "intel-cmt-cat/appqos/docker/Dockerfile" #224

Closed syedfarazalishah closed 1 year ago

syedfarazalishah commented 2 years ago

Before Changes at https://github.com/intel/intel-cmt-cat/blob/f16c24cf312e5ce32639d5154aa17c8c4a6c07af/appqos/docker/Dockerfile#L55

STDERR:

debconf: delaying package configuration, since apt-utils is not installed
debconf: delaying package configuration, since apt-utils is not installed
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
The Python interpreter can't be found.▉ 0/8 — 00:00:00
  🐍   ▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉ 0/8 — 00:00:00
make[1]: *** [Makefile:41: /venv/] Error 1
make: *** [Makefile:44: setup] Error 2
time="2022-08-16T03:42:59-07:00" level=error msg="error unmounting container: error unmounting build container \"\": layer not known"
Error: error building at STEP "RUN mkdir -p /python &&     PYTHONUSERBASE=/python PIP_USER=1 PIPENV_SYSTEM=1 VENV_DIR=/venv/ make -C /appqos_workspace/appqos setup": error while running runtime: exit status 2

MSG:

non-zero return code

I just made this change to file https://github.com/intel/intel-cmt-cat/blob/f16c24cf312e5ce32639d5154aa17c8c4a6c07af/appqos/docker/Dockerfile#L55

RUN mkdir -p /python 
    PYTHONUSERBASE=/python PIP_USER=1 PIPENV_SYSTEM=1 VENV_DIR=/venv/ make -C /appqos_workspace/appqos setup

After changes output:

--> 76efde6aa88
[4/4] STEP 14/15: WORKDIR /appqos_workspace/appqos
--> fa5fafd7bba
[4/4] STEP 15/15: CMD python3 ./appqos -c ${APPQOS_CONF_PATH} --port ${APPQOS_PORT}
[4/4] COMMIT appqos
--> 370a79ee8ce
Successfully tagged localhost/appqos:latest
aleksinx commented 1 year ago

We could not reproduce the issue.