Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/SlashGordon/docker-aws-cdk
UpToDate Docker aws cdk image with all python packages.
https://github.com/SlashGordon/docker-aws-cdk
aws cdk docker docker-image
Last synced: 3 months ago
JSON representation
UpToDate Docker aws cdk image with all python packages.
- Host: GitHub
- URL: https://github.com/SlashGordon/docker-aws-cdk
- Owner: SlashGordon
- License: apache-2.0
- Created: 2022-03-04T10:14:20.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-08-13T03:12:05.000Z (5 months ago)
- Last Synced: 2024-08-13T04:27:38.253Z (5 months ago)
- Topics: aws, cdk, docker, docker-image
- Language: Dockerfile
- Homepage:
- Size: 70.3 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 148
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![Release](https://github.com/SlashGordon/docker-aws-cdk/actions/workflows/release.yaml/badge.svg)](https://github.com/SlashGordon/docker-aws-cdk/actions/workflows/release.yaml)
# 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 slashgordon/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 slashgordon/aws-cdk bash
Using docker-compose:
cdk:
image: slashgordon/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.## Related Projects
- [docker-aws-cli](https://github.com/slashgordon/docker-aws-cli)
- [docker-terraform](https://github.com/slashgordon/docker-terraform)## Credits
Strongly inspired by[contino/docker-aws-cdk](https://github.com/contino/docker-aws-cdk) project.