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

cdk deploy fails on amazon linux #908

Open
matt-f-tsu opened this issue Dec 3, 2021 · 1 comment
Open

cdk deploy fails on amazon linux #908

matt-f-tsu opened this issue Dec 3, 2021 · 1 comment

Comments

@matt-f-tsu
Copy link

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.

@ejohn20
Copy link
Contributor

ejohn20 commented Dec 5, 2021

@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        

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants