Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
gianlucapisati opened this issue Mar 16, 2024 · 4 comments

Comments

@gianlucapisati
Copy link

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

  • Docker 25.0.4
  • Docker Compose 2.25.0
  • Colima 0.6.8
  • macOs Sonoma 14.4
@gianlucapisati
Copy link
Author

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
Copy link
Contributor

caffix commented Mar 16, 2024

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

@gianlucapisati
Copy link
Author

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
Copy link
Contributor

caffix commented Mar 16, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants