DotNetRussell / Ensemble

A Bug Bounty Platform that allows hunters to issue commands over a geo-distributed cluster. The ideal user is someone who is attempting to scan multiple bug bounty programs simultaneously, on a recurring basis.
https://DotNetRussell.com
MIT License
46 stars 6 forks source link

Dockerize #12

Closed Wind010 closed 1 year ago

Wind010 commented 1 year ago
DotNetRussell commented 1 year ago

This looks awesome! I'll pull it down today and verify it today

Thank you

DotNetRussell commented 1 year ago

Did you run into this when you were trying to build the server image?

Looks like it can't see the common directory image

Wind010 commented 1 year ago

The docker build command has to be run from root of repository. Let me double check the documentation.

On Wed, Sep 13, 2023 at 7:12 AM DNR @.***> wrote:

Did you run into this when you were trying to build the server image?

Looks like it can't see the common directory [image: image] https://user-images.githubusercontent.com/3779295/267683025-00e70f6c-4e3d-4df3-a7a4-02a3b7a52bee.png

— Reply to this email directly, view it on GitHub https://github.com/DotNetRussell/Ensemble/pull/12#issuecomment-1717715547, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEDEICYMOUGQPZ6KOGQPVI3X2G5L7ANCNFSM6AAAAAA4RY2FQY . You are receiving this because you authored the thread.Message ID: @.***>

Wind010 commented 1 year ago

Did you run into this when you were trying to build the server image?

Looks like it can't see the common directory image

Docker

All commands should be run from the root of the repository. Build the client image:

docker build -f ./client/Dockerfile --build-arg ENCRYPTION_KEY=your_key --build-arg HOST=your_server_ip --build-arg PORT=5680 -t ensemble_client:latest .

Build the server image. It's expected that you have created a config.json file similar to the Sample-Config.json for your configuration in the server directory. The server image build expects this:

docker build -f ./server/Dockerfile -t ensemble_server:latest .

image

Docker will only have access to subdirectories where it is run from so the Dockerfile has to be explicit path if it's in one.