Update CI Docker files (#1202)
- Add `nlohmann-json-dev` (or equivalent) to CI Docker images for RHEL, SUSE, and Ubuntu. - Add `gmock-dev` and `gtest-dev` (or equivalent) to CI Docker images for RHEL, SUSE, and Ubuntu. - Add `--set solver classic` to conda config to resolve an issue setting up the conda environment - Fix Perfetto package installation on ubuntu noble image. - Add a check and log error if pip installation fail --------- Co-authored-by: jbonnell-amd <jason.bonnell@amd.com>
This commit is contained in:
@@ -28,8 +28,9 @@ RUN zypper --non-interactive update -y && \
|
||||
zypper --non-interactive dist-upgrade -y && \
|
||||
zypper --non-interactive install -y -t pattern devel_basis && \
|
||||
zypper --non-interactive install -y binutils-gold chrpath cmake curl dpkg-devel \
|
||||
gcc-c++ git iproute2 libnuma-devel ninja openmpi3-devel papi-devel python3-devel \
|
||||
python3-pip rpm-build sqlite3-devel vim wget && \
|
||||
gcc-c++ git gmock gtest iproute2 libnuma-devel ninja nlohmann_json-devel \
|
||||
openmpi3-devel papi-devel python3-devel python3-pip \
|
||||
rpm-build sqlite3-devel vim wget && \
|
||||
zypper --non-interactive clean --all && \
|
||||
python3 -m pip install 'cmake==3.21' perfetto
|
||||
|
||||
@@ -38,7 +39,7 @@ ARG PYTHON_VERSIONS="6 7 8 9 10 11 12 13"
|
||||
RUN wget https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-Linux-x86_64.sh -O miniforge.sh && \
|
||||
bash miniforge.sh -b -p /opt/conda && \
|
||||
export PATH="/opt/conda/bin:${PATH}" && \
|
||||
conda config --set always_yes yes --set changeps1 no && \
|
||||
conda config --set always_yes yes --set changeps1 no --set solver classic && \
|
||||
conda update -c conda-forge -n base conda && \
|
||||
for i in ${PYTHON_VERSIONS}; do conda create -n py3.${i} -c conda-forge python=3.${i} pip numpy; done && \
|
||||
for i in ${PYTHON_VERSIONS}; do /opt/conda/envs/py3.${i}/bin/python -m pip install numpy perfetto dataclasses; done && \
|
||||
|
||||
Reference in New Issue
Block a user