Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/contino/docker-aws-cdk
🐳 Containerized AWS CDK on alpine to avoid having to install CLI on Dev or CI/CD machines.
https://github.com/contino/docker-aws-cdk
Last synced: 1 day ago
JSON representation
🐳 Containerized AWS CDK on alpine to avoid having to install CLI on Dev or CI/CD machines.
- Host: GitHub
- URL: https://github.com/contino/docker-aws-cdk
- Owner: contino
- License: apache-2.0
- Created: 2019-09-17T04:04:52.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2022-10-28T17:28:03.000Z (about 2 years ago)
- Last Synced: 2024-11-06T23:39:33.405Z (5 days ago)
- Language: Dockerfile
- Size: 12.7 KB
- Stars: 20
- Watchers: 135
- Forks: 25
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Docker AWS CDK
Containerised AWS CDK to ensure consistent local development and simple CD pipelines.## Usage
Run as a command using `cdk` as entrypoint:docker run --rm --entrypoint cdk contino/aws-cdk --version
Run as a shell and mount `.aws` folder and current directory as volumes:
docker run --rm -it -v ~/.aws:/root/.aws -v $(pwd):/opt/app contino/aws-cdk bash
Using docker-compose:
cdk:
image: contino/aws-cdk
env_file: .env
entrypoint: aws
working_dir: /opt/app
volumes:
- ~/.aws:/root/.aws
- .:/opt/app:rwAnd run `docker-compose run cdk --version`
## Language Support
CDK Supports different languages to define your (re)usable assets.
### JavaScript/TypeScript
This should work out of the box through `package.json` and `node_modules`, which
are automatically _cached_ in your working directory.### Python
This image ships with Python 3 installed. To cache installed cdk python packages,
`site-packages` is exposed as a volume. This allows you to cache packages between
invocations:cdk:
...
volumes:
- cdk-python:/usr/lib/python3.7/site-packages/
- ...
volumes:
cdk-pythonThen, if you install e.g. `aws-cdk.core` through pip (`pip3 install aws-cdk.core`)
in a container, you won't have to install it again next time you start a new
container.### Java
> Not supported in this image yet
## Build
Update the `AWS_CDK_VERSION` in both `Makefile` and `Dockerfile`. The run:make build
Docker Hub will automatically trigger a new build.
## Updates
To update this container with a newer version of the AWS CDK:
1. Update the Dockerfile with the new AWS CDK version number
2. Update the Dockerfile with a new Alpine container version (if applicable)
3. Update the Makefile with the new AWS CDK version number
4. Submit pull request and get approved## Related Projects
- [docker-aws-cli](https://github.com/contino/docker-aws-cli)
- [docker-terraform](https://github.com/contino/docker-terraform)