cloudmapper icon indicating copy to clipboard operation
cloudmapper copied to clipboard

cdk deploy fails on amazon linux

Open matt-f-tsu opened this issue 2 years ago • 1 comments

Trying to install the "auditor" component of CloudMapper, running:

cdk deploy

fails with the following error:

CloudmapperauditorStack: deploying... [0%] start: Publishing 7d99a4f586c59ecd17b087e69f249b899a5673a27876f69da07978510d40128f:current [33%] success: Published 7d99a4f586c59ecd17b087e69f249b899a5673a27876f69da07978510d40128f:current [33%] start: Publishing b120b13d9d868c7622e7db1b68bae4c0f82ffd0227b8c15f2cef38e186ff3827:current [66%] success: Published b120b13d9d868c7622e7db1b68bae4c0f82ffd0227b8c15f2cef38e186ff3827:current [66%] start: Publishing f3f824f4fd47765523da8b5b127808a608cbde9379a25e750ccae51a56547802:current Sending build context to Docker daemon 5.637MB Step 1/12 : FROM python:3.7-slim as cloudmapper ---> e7de75b2cb5a Step 2/12 : LABEL maintainer="https://github.com/0xdabbad00/" ---> Using cache ---> dd7381097d28 Step 3/12 : LABEL Project="https://github.com/duo-labs/cloudmapper" ---> Using cache ---> be0ed038a6e5 Step 4/12 : WORKDIR /opt/cloudmapper ---> Using cache ---> 977693909a82 Step 5/12 : ENV AWS_DEFAULT_REGION=us-east-1 ---> Using cache ---> addae45f0ff0 Step 6/12 : RUN apt-get update -y ---> Using cache ---> 1a8bf1c5b5c2 Step 7/12 : RUN apt-get install -y build-essential autoconf automake libtool python3.7-dev python3-tk jq awscli ---> Running in d43cbfc4691c Reading package lists... Building dependency tree... Reading state information... E: Unable to locate package python3.7-dev E: Couldn't find any package by glob 'python3.7-dev' E: Couldn't find any package by regex 'python3.7-dev' The command '/bin/sh -c apt-get install -y build-essential autoconf automake libtool python3.7-dev python3-tk jq awscli' returned a non-zero code: 100 [100%] fail: docker build --tag cdkasset-f3f824f4fd47765523da8b5b127808a608cbde9379a25e750ccae51a56547802 . exited with error code 100: The command '/bin/sh -c apt-get install -y build-essential autoconf automake libtool python3.7-dev python3-tk jq awscli' returned a non-zero code: 100

❌ 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.

matt-f-tsu avatar Dec 03 '21 18:12 matt-f-tsu

@matt-f-tsu This PR #892 corrects this build issue. The python3.7-dev package appears to have been deprecated. Remove this package from Dockerfile and it should work:

sed -i -e "s#python3.7-dev##g" auditor/resources/Dockerfile
sed -i -e "s#python3.7-dev##g" auditor/resources/cloudmapper/Dockerfile        

ejohn20 avatar Dec 05 '21 17:12 ejohn20