owasp-amass / amass-docker-compose

OWASP Amass Docker Compose for setting up a full instance of the infrastructure
Apache License 2.0
25 stars 3 forks source link

ERROR [assetdb internal] load git source when launching docker compose run #1

Open gianlucapisati opened 7 months ago

gianlucapisati commented 7 months ago

I'm encountering this issue while launching

docker compose run --rm amass enum -d owasp.org

[+] Building 0.0s (1/1) FINISHED                                                                                                                                                                                            
 => ERROR [assetdb internal] load git source https://github.com/owasp-amass/asset-db.git#master                                                                                                                                      
------
 > [assetdb internal] load git source https://github.com/owasp-amass/asset-db.git#master:
------
failed to solve: failed to read dockerfile: failed to load cache key: failed to init repo at /var/lib/docker/overlay2/y0u2dnte74n8jfsj9kxdd5fth/diff: exec: "git": executable file not found in $PATH

I'm using

gianlucapisati commented 7 months ago

to make it work I had to clone all the repos specified in compose.yaml and I had to explicitly specify the build context like

build:
      context: ./asset-db
      dockerfile: Dockerfile
caffix commented 7 months ago

The error message you received indicated that you do not have git installed

gianlucapisati commented 7 months ago

Hi caffix, thanks for the reply, but how would I have been able to clone repos if I didn't have git installed? It's also present in $PATH

caffix commented 7 months ago

Users sometimes do amazing things that we never would have imagined. Clearly though, something is wrong with your environment, not the compose configuration. Please come to the Amass Discord, where it will be easier to help you