Skip to content

Docker image does not build out of the box #41

@LevanMamontTsiklauri

Description

@LevanMamontTsiklauri

commit: ee6c3ae

  • A reproducible test case or series of steps
    • Just pull the code and run docker build . -t <TAG>
  • The version of our code being used
------                                                                                                                                                                                                                                                                                                       
 > [6/6] RUN  pip3 install -r ./requirements.txt --target "/var/task":                                                                                                                                                                                                                                       
#10 0.691 Collecting antlr4-python3-runtime==4.9.2                                                                                                                                                                                                                                                           
#10 1.184   Downloading antlr4-python3-runtime-4.9.2.tar.gz (117 kB)                                                                                                                                                                                                                                         
#10 1.267      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 117.2/117.2 kB 1.4 MB/s eta 0:00:00                                                                                                                                                                                                                   
#10 1.296   Preparing metadata (setup.py): started                                                                                                                                                                                                                                                           
#10 1.400   Preparing metadata (setup.py): finished with status 'done'
#10 1.493 Collecting python-dateutil==2.8.2
#10 1.555   Downloading python_dateutil-2.8.2-py2.py3-none-any.whl (247 kB)
#10 1.628      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 247.7/247.7 kB 3.5 MB/s eta 0:00:00
#10 1.729 Collecting six==1.16.0
#10 1.793   Downloading six-1.16.0-py2.py3-none-any.whl (11 kB)
#10 1.936 Collecting urllib3==1.26.6
#10 1.995   Downloading urllib3-1.26.6-py2.py3-none-any.whl (138 kB)
#10 2.009      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 138.5/138.5 kB 12.6 MB/s eta 0:00:00
#10 2.138 Collecting awslambdaric==1.2.2
#10 2.335   Downloading awslambdaric-1.2.2.tar.gz (4.4 MB)
#10 3.199      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 4.4/4.4 MB 5.1 MB/s eta 0:00:00
#10 3.246   Preparing metadata (setup.py): started
#10 3.319   Preparing metadata (setup.py): finished with status 'error'
#10 3.322   error: subprocess-exited-with-error
#10 3.322   
#10 3.322   × python setup.py egg_info did not run successfully.
#10 3.322   │ exit code: 1
#10 3.322   ╰─> [13 lines of output]
#10 3.322       Error: cmake is not installed.
#10 3.322       Traceback (most recent call last):
#10 3.322         File "<string>", line 2, in <module>
#10 3.322         File "<pip-setuptools-caller>", line 34, in <module>
#10 3.322         File "/tmp/pip-install-7lgs4hs8/awslambdaric_da9a3b4806ec45f580cd528bfca196da/setup.py", line 95, in <module>
#10 3.322           ext_modules=get_runtime_client_extension(),
#10 3.322         File "/tmp/pip-install-7lgs4hs8/awslambdaric_da9a3b4806ec45f580cd528bfca196da/setup.py", line 46, in get_runtime_client_extension
#10 3.322           extra_link_args=get_curl_extra_linker_flags(),
#10 3.322         File "/tmp/pip-install-7lgs4hs8/awslambdaric_da9a3b4806ec45f580cd528bfca196da/setup.py", line 19, in get_curl_extra_linker_flags
#10 3.322           check_call(["./scripts/preinstall.sh"])
#10 3.322         File "/var/lang/lib/python3.8/subprocess.py", line 364, in check_call
#10 3.322           raise CalledProcessError(retcode, cmd)
#10 3.322       subprocess.CalledProcessError: Command '['./scripts/preinstall.sh']' returned non-zero exit status 1.
#10 3.322       [end of output]
#10 3.322   
#10 3.322   note: This error originates from a subprocess, and is likely not a problem with pip.
#10 3.323 error: metadata-generation-failed
#10 3.323 
#10 3.323 × Encountered error while generating package metadata.
#10 3.323 ╰─> See above for output.
#10 3.323 
#10 3.323 note: This is an issue with the package mentioned above, not pip.
#10 3.323 hint: See above for details.
#10 3.698 
#10 3.698 [notice] A new release of pip is available: 23.0.1 -> 23.2
#10 3.698 [notice] To update, run: pip install --upgrade pip
------
executor failed running [/bin/sh -c pip3 install -r ./requirements.txt --target "${LAMBDA_TASK_ROOT}"]: exit code: 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions