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

Empty Compose File #520

Closed
11 tasks
nightmare-wolf opened this issue Mar 22, 2024 · 4 comments
Closed
11 tasks

Empty Compose File #520

nightmare-wolf opened this issue Mar 22, 2024 · 4 comments
Labels
bug Something isn't working triage This issue requires triaging

Comments

@nightmare-wolf
Copy link

Description:
Unable to compose.
curl -L https://ghst.ly/getbhce -o docker-compose.yml | docker compose -f - up
and i get the following error:
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 190 100 190 0 0 267 0 --:--:-- --:--:-- --:--:-- 270
100 3618 100 3618 0 0 3895 0 --:--:-- --:--:-- --:--:-- 3895
empty compose file
image

A clear and concise description of the bug you're encountering.

Component(s) Affected:

  • UI
  • API
  • Neo4j
  • PostgreSQL
  • Data Collector (SharpHound, AzureHound)
  • Other (tooling, documentation, etc.)

Steps to Reproduce:

  1. Go to [specific page or endpoint] : curl -L https://ghst.ly/getbhce -o docker-compose.yml | docker compose -f - up
  2. Click on [button/element/etc.]
  3. Enter [input/data]
  4. See error at [this point]

Expected Behavior:

A description of what you expected to happen.
docker compose to build the docker image.

Actual Behavior:
empty compose file

A description of what actually happened.
Empty compose file, unable to build the container within windows 10.

Screenshots/Code Snippets/Sample Files:
image

If applicable, add screenshots, relevant code snippets, or sample files that help illustrate the issue.

Environment Information:
Windows 10 OS

BloodHound: [BloodHound version or revision]
Bloodhound CE

Collector: [SharpHound version / AzureHound version]

OS: [your OS and version]
Windows 10 Version 22H2

Browser (if UI related): [browser name and version]

Node.js (if UI related: [Node.js version]

Go (if API related): [Go version]

Database (if persistence related): [Neo4j version / PostgreSQL version]

Docker (if using Docker): [docker version]

Additional Information:

Any additional context or information that might be helpful in understanding and diagnosing the issue.

Potential Solution (Optional):

If you have any ideas about what might be causing the issue or how it could be fixed, you can share them here.

Related Issues:

If you've found related issues in the project's issue tracker, mention them here.

Contributor Checklist:

  • I have searched the issue tracker to ensure this bug hasn't been reported before or is not already being addressed.
  • I have provided clear steps to reproduce the issue.
  • I have included relevant environment information details.
  • I have attached necessary supporting documents.
  • I have checked that any JSON files I am attempting to upload to BloodHound are valid.
@nightmare-wolf nightmare-wolf added bug Something isn't working triage This issue requires triaging labels Mar 22, 2024
@lap1nou
Copy link

lap1nou commented Mar 24, 2024

Hello @Cy-Beard,

You are not using the command correctly, use this one:

curl -L https://ghst.ly/getbhce | docker compose -f - up

The reason yours is not working is because you are outputting the content in the docker-compose.yml file and then you are asking docker compose to read the content from stdin but stdin was written to the file so it's empty, if you want to use a file instead use:

curl -L https://ghst.ly/getbhce -o docker-compose.yml | docker compose up

Regards.

@nightmare-wolf
Copy link
Author

image
I have tried both commands and both say the version is obsolete. I have installed docker and docker-compose via choco in powershell. I am also running these commands in elevated admin PowerShell prompt.

@StephenHinck StephenHinck closed this as not planned Won't fix, can't repro, duplicate, stale Mar 25, 2024
@nightmare-wolf
Copy link
Author

After some searching into, I found that Windows cannot run Docker-cli on its own even though it can be installed via chocolatey. Its still needs to have WSL2 installed and running in order to run docker-cli. If not, then I would need to installed docker desktop which is not an approved app yet for the business. Guess I cannot go down this route.
Thank you for your help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triage This issue requires triaging
Projects
None yet
Development

No branches or pull requests

3 participants