ScoutSuite icon indicating copy to clipboard operation
ScoutSuite copied to clipboard

Docker-compose: "Additional property env_file is not allowed"

Open iJackWilson opened this issue 2 years ago • 4 comments

When attempting to build the ScoutSuite Docker image from source (following step 2 in the wiki). I receive the below error:

services.ncc-scoutsuite.build Additional property env_file is not allowed

I believe this is a result of two extra unexpected lines in the docker-compose.yml file.

To Reproduce

On a clean system (e.g. one that does not cache a previous build of the ScoutSuite image), follow the documentation:

  • Clone ScoutSuite repository.
  • Change to the ScoutSuite/docker folder.
  • Run docker-compose up --build.
  • Receive the error services.ncc-scoutsuite.build Additional property env_file is not allowed.

Additional context

I was able to successfully build the Docker container by removing these two lines from the docker-compose.yaml file.

Screenshot 2022-03-17 at 11 48 32

image

Screenshot 2022-03-17 at 11 49 10

iJackWilson avatar Mar 17 '22 12:03 iJackWilson

Alternative right now is build using docker command rather than docker-compose like this:

cd ./docker/
docker build -t nccgroup/scoutsuite .

ben-elttam avatar Apr 26 '22 03:04 ben-elttam

this appears to be fixed. can you confirm whether this is still occurring?

rossja avatar Jun 17 '22 21:06 rossja

Still occurring for me

PS C:\Tools\Recon\ScoutSuite\docker> docker-compose up --build
WARNING: The VCS_REF variable is not set. Defaulting to a blank string.
WARNING: The VCS_URL variable is not set. Defaulting to a blank string.
WARNING: The VERSION variable is not set. Defaulting to a blank string.
WARNING: The BUILD_DATE variable is not set. Defaulting to a blank string.
WARNING: The VENDOR variable is not set. Defaulting to a blank string.
WARNING: The NAME variable is not set. Defaulting to a blank string.
WARNING: The IMAGE_NAME variable is not set. Defaulting to a blank string.
WARNING: The DESCRIPTION variable is not set. Defaulting to a blank string.
ERROR: The Compose file '.\docker-compose.yaml' is invalid because:
services.ncc-scoutsuite.build contains unsupported option: 'env_file'

M-Davies avatar Jul 06 '22 10:07 M-Davies

Theoretically, this extra addition isn't needed? It's already declared higher up in the file and the documentation seems to suggest that's where it needs to be anyways.

M-Davies avatar Jul 06 '22 10:07 M-Davies

Solved in version 5.12.0

fernando-gallego avatar Sep 12 '22 11:09 fernando-gallego