Skip to content

git/make missing from Builder in Dockerfile #18

Open
@singe

Description

@singe

When building the docker image, the builder is unable to clone the speakeasy repository as git is not installed:

#8 622.8 Collecting git+https://github.com/mandiant/speakeasy@master (from -r requirements.txt (line 8))
#8 622.8   Cloning https://github.com/mandiant/speakeasy (to revision master) to /tmp/pip-req-build-3wih63jr
#8 622.8   ERROR: Error [Errno 2] No such file or directory: 'git' while executing command git version
#8 622.8 ERROR: Cannot find command 'git' - do you have 'git' installed and in your PATH?

The fix is to simply add git to line 13 of the Dockerfile:

apt-get install -y cpp gcc swig libssl-dev libpcap0.8-dev && \
becomes
apt-get install -y cpp gcc swig libssl-dev libpcap0.8-dev git && \

Next up I ran into unicorn failing build due to make missing:

#8 926.6   Running setup.py install for unicorn: started
#8 926.8   Running setup.py install for unicorn: finished with status 'error'
#8 926.8   error: subprocess-exited-with-error
#8 926.8   
#8 926.8   × Running setup.py install for unicorn did not run successfully.
#8 926.8   │ exit code: 1
#8 926.8   ╰─> [5 lines of output]
#8 926.8       running install
#8 926.8       running build
#8 926.8       Building C extensions
#8 926.8       ./make.sh: 123: make: not found
#8 926.8       error: [Errno 2] No such file or directory: 'libunicorn.so'
#8 926.8       [end of output]

So I updated the Dockerfile to include build-essential and are continuing to test.

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