Skip to content

Failing to build / configure ScanCode 30.1.0 in Docker with Ubuntu 18.04 "Bionic Beaver" #2762

Description

@sschuberth

Description

When building a Docker image for ORT (also see here), we install ScanCode like

curl -ksSL https://github.com/nexB/scancode-toolkit/archive/v$SCANCODE_VERSION.tar.gz | \
    tar -zxC /usr/local && \
    # Trigger ScanCode configuration for Python 3 and reindex licenses initially.
    PYTHON_EXE=/usr/bin/python3 /usr/local/scancode-toolkit-$SCANCODE_VERSION/scancode --reindex-licenses && \
    chmod -R o=u /usr/local/scancode-toolkit-$SCANCODE_VERSION && \
    ln -s /usr/local/scancode-toolkit-$SCANCODE_VERSION/scancode /usr/local/bin/scancode

with SCANCODE_VERSION=30.1.0. During the Docker build process, we're getting

#17 196.1 * Configuring ScanCode for first use...
#17 199.3 created virtual environment CPython3.6.9.final.0-64 in 2913ms
#17 199.3   creator CPython3Posix(dest=/usr/local/scancode-toolkit-30.1.0, clear=False, no_vcs_ignore=True, global=False)
#17 199.3   seeder PipInvoke(download=False, pip=embed, setuptools=embed, wheel=embed)
#17 199.3     added seed packages: pip==21.2.3, setuptools==57.4.0, wheel==0.37.0
#17 199.3   activators BashActivator,CShellActivator,FishActivator,PowerShellActivator,PythonActivator
#17 199.7 ERROR: Could not open requirements file: [Errno 2] No such file or directory: 'requirements.txt'

Any idea what requirements.txt file that error message is talking about?

How To Reproduce

Checkout the docker-scancode-version branch of ORT and run docker build --build-arg SCANCODE_VERSION=30.1.0 ..

System configuration

Docker with adoptopenjdk:11-jre-hotspot-bionic base image.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions