irods / irods_testing_environment

BSD 3-Clause "New" or "Revised" License
8 stars 15 forks source link

Encountered error while building Almalinux 8 docker image for plugin testing #184

Closed korydraughn closed 8 months ago

korydraughn commented 9 months ago

Bug Report

Seems the Docker image for Almalinux 8 needs to install libxml2 and libxslt dev packages.

This happened after deleting the testing environment image (> 9 months old) and pulling an up-to-date almalinux:8 image from docker hub.

(irods_testing_environment) $ python run_plugin_tests.py --project-directory projects/almalinux-8/almalinux-8-postgres-10.12/ --plugin-package-directory /mnt/hdd_500gb/development_environment_output/plugin_packages/4.3 -vv irods_capability_indexing --discard-logs
The dockerfile variable is not set. Defaulting to a blank string.
The irods_package_version variable is not set. Defaulting to a blank string.
2024-02-21 17:28:25,883 - catalog uses an image, skipping
2024-02-21 17:28:25,884 - Building irods-catalog-provider
Step 1/10 : FROM almalinux:8
 ---> f8e12007b665
Step 2/10 : RUN yum check-update -q >/dev/null || { [ "$?" -eq 100 ] && yum update -y; } &&     yum install -y         ca-certificates         epel-release         gnupg         wget         dnf-plugins-core     &&     yum config-manager --set-enabled powertools &&     yum clean all &&     rm -rf /var/cache/yum /tmp/*
 ---> Using cache
 ---> 92cf3aa5be67
Step 3/10 : RUN rpm --import https://packages.irods.org/irods-signing-key.asc &&     wget -qO - https://packages.irods.org/renci-irods.yum.repo | tee /etc/yum.repos.d/renci-irods.yum.repo
 ---> Using cache
 ---> 28f56ca913d4
Step 4/10 : RUN rpm --import https://core-dev.irods.org/irods-core-dev-signing-key.asc &&     wget -qO - https://core-dev.irods.org/renci-irods-core-dev.yum.repo | tee /etc/yum.repos.d/renci-irods-core-dev.yum.repo
 ---> Using cache
 ---> 0bf4931a55eb
Step 5/10 : RUN yum update -y &&     yum install -y         authd         diffutils         gcc-c++         make         rsyslog         sudo         unixODBC-devel         which     &&     yum clean all &&     rm -rf /var/cache/yum /tmp/*
 ---> Using cache
 ---> 2e94165d218f
Step 6/10 : RUN yum update -y &&     yum install -y         python3         python3-devel         python3-pip     &&     yum clean all &&     rm -rf /var/cache/yum /tmp/*
 ---> Using cache
 ---> 6bfc83b6b71b
Step 7/10 : RUN python3 -m pip install unittest-xml-reporting distro psutil pyodbc jsonschema requests
 ---> Running in 4a3626c0620a
WARNING: Running pip install with root privileges is generally not a good idea. Try `__main__.py install --user` instead.
Collecting unittest-xml-reporting
  Downloading https://files.pythonhosted.org/packages/8c/28/f3d33f5725f4b84673ffe420bfa313f6f422d379a7d725bc7d898db45f3c/unittest_xml_reporting-3.1.0-py2.py3-none-any.whl
Collecting distro
  Downloading https://files.pythonhosted.org/packages/12/b3/231ffd4ab1fc9d679809f356cebee130ac7daa00d6d6f3206dd4fd137e9e/distro-1.9.0-py3-none-any.whl
Collecting psutil
  Downloading https://files.pythonhosted.org/packages/90/c7/6dc0a455d111f68ee43f27793971cf03fe29b6ef972042549db29eec39a2/psutil-5.9.8.tar.gz (503kB)
Collecting pyodbc
  Downloading https://files.pythonhosted.org/packages/b7/80/835b8a98089e31aa6b9bfc0301c1546e69f5205a966888f2663e43e7d07b/pyodbc-4.0.39.tar.gz (282kB)
Collecting jsonschema
  Downloading https://files.pythonhosted.org/packages/c5/8f/51e89ce52a085483359217bc72cdbf6e75ee595d5b1d4b5ade40c7e018b8/jsonschema-3.2.0-py2.py3-none-any.whl (56kB)
Collecting requests
  Downloading https://files.pythonhosted.org/packages/2d/61/08076519c80041bc0ffa1a8af0cbd3bf3e2b62af10435d269a9d0f40564d/requests-2.27.1-py2.py3-none-any.whl (63kB)
Collecting lxml (from unittest-xml-reporting)
  Downloading https://files.pythonhosted.org/packages/2b/b4/bbccb250adbee490553b6a52712c46c20ea1ba533a643f1424b27ffc6845/lxml-5.1.0.tar.gz (3.8MB)
    Complete output from command python setup.py egg_info:
    Building lxml version 5.1.0.
    Building without Cython.
    Error: Please make sure the libxml2 and libxslt development packages are installed.

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-9fkj405k/lxml/
2024-02-21 17:28:32,827 - (<Service: irods-catalog-provider>, "The command '/bin/sh -c python3 -m pip install unittest-xml-reporting distro psutil pyodbc jsonschema requests' returned a non-zero code: 1")
2024-02-21 17:28:32,860 - Removing network almalinux-8-postgres-1012_default
2024-02-21 17:28:32,863 - Network almalinux-8-postgres-1012_default not found.
2024-02-21 17:28:32,864 - Removing volume almalinux-8-postgres-1012_shared_volume
2024-02-21 17:28:32,868 - Volume almalinux-8-postgres-1012_shared_volume not found.
Traceback (most recent call last):
  File "/home/kory/irods_testing_environment/lib/python3.8/site-packages/compose/service.py", line 1823, in build
    all_events = list(stream_output(build_output, output_stream))
  File "/home/kory/irods_testing_environment/lib/python3.8/site-packages/compose/progress_stream.py", line 27, in stream_output
    print_output_event(event, stream, is_terminal)
  File "/home/kory/irods_testing_environment/lib/python3.8/site-packages/compose/progress_stream.py", line 59, in print_output_event
    raise StreamOutputError(event['errorDetail']['message'])
compose.progress_stream.StreamOutputError: The command '/bin/sh -c python3 -m pip install unittest-xml-reporting distro psutil pyodbc jsonschema requests' returned a non-zero code: 1

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "run_plugin_tests.py", line 77, in <module>
    services.create_topologies(ctx,
  File "/home/kory/dev/prog/docker/irods_testing_environment/irods_testing_environment/services.py", line 34, in create_topologies
    ctx.compose_project.build()
  File "/home/kory/irods_testing_environment/lib/python3.8/site-packages/compose/project.py", line 519, in build
    build_service(service)
  File "/home/kory/irods_testing_environment/lib/python3.8/site-packages/compose/project.py", line 501, in build_service
    service.build(no_cache, pull, force_rm, memory, build_args, gzip, rm, silent, cli, progress)
  File "/home/kory/irods_testing_environment/lib/python3.8/site-packages/compose/service.py", line 1111, in build
    return builder.build(
  File "/home/kory/irods_testing_environment/lib/python3.8/site-packages/compose/service.py", line 1825, in build
    raise BuildError(service, str(e))
compose.service.BuildError: (<Service: irods-catalog-provider>, "The command '/bin/sh -c python3 -m pip install unittest-xml-reporting distro psutil pyodbc jsonschema requests' returned a non-zero code: 1")