duo-labs / cloudmapper

CloudMapper helps you analyze your Amazon Web Services (AWS) environments.
BSD 3-Clause "New" or "Revised" License
5.94k stars 800 forks source link

cdk deploy fails at building cloudmapper docker image #770

Closed yunw closed 3 years ago

yunw commented 3 years ago

I followed this readme to launch the stack with cdk: https://github.com/duo-labs/cloudmapper/blob/main/auditor/README.md

Step 4/12 : WORKDIR /opt/cloudmapper
 ---> Using cache
 ---> 06701e538fa9
Step 5/12 : ENV AWS_DEFAULT_REGION=us-west-2
 ---> Using cache
 ---> 029425d44be7
Step 6/12 : RUN apt-get update -y
 ---> Using cache
 ---> f540c4e649d7
Step 7/12 : RUN apt-get install -y build-essential autoconf automake libtool python3.7-dev python3-tk jq awscli
 ---> Using cache
 ---> 633329232592
Step 8/12 : COPY cloudmapper/. /opt/cloudmapper
COPY failed: stat /var/lib/docker/tmp/docker-builder036202417/cloudmapper: no such file or directory
[100%] fail: docker build --tag cdkasset-b9d8792fd9de51b2e013efcae96418641b71faacc87dd29ebfc8850edd30cc0f . exited with error code 1: COPY failed: stat /var/lib/docker/tmp/docker-builder036202417/cloudmapper: no such file or directory

 ❌  CloudmapperauditorStack failed: Error: Failed to publish one or more assets. See the error messages above for more information.
Failed to publish one or more assets. See the error messages above for more information.

after checking the Dockerfile under resources, it does include the cloudmapper directory which doesn't exist, what should we update the cloudmapperauditor.js file image: ecs.ContainerImage.fromAsset('./resources'),

yunw commented 3 years ago

not a bug. i didn't clone the repo to auditor folder.. sorry for the false alarm