https://github.com/roonga/cdk-2-runner
https://github.com/roonga/cdk-2-runner
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/roonga/cdk-2-runner
- Owner: roonga
- License: mit
- Created: 2022-10-02T20:13:59.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-10-03T01:14:56.000Z (almost 4 years ago)
- Last Synced: 2026-06-11T23:22:01.490Z (about 2 months ago)
- Language: JavaScript
- Size: 2.93 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# cdk-2-runner
node 16 base image, with
- aws-cdk-local (localstack)
- aws-cdk
Optionally start the ready endpoint from your entry point. Please note this will keep your container running. This might be desirable if running from docker compose.
```
sh /setup/ready.sh
```
## Docker Hub
https://hub.docker.com/r/roonga/cdk-2-runner
## Sample Usage:
### Dockerfile
```
FROM roonga/cdk-2-runner:latest
WORKDIR /cdk
COPY ./ .
ENTRYPOINT ["sh","deploy.sh"]
```
### deploy.sh (For LocalStack)
deploy to localstack and start the ready endpoint( optional ), indicating your cdk deploy is complete at http://localhost/ready
```
#!/bin/bash -x
npm ci
cdklocal bootstrap
cdklocal deploy
# start http health endpoint from the base image
sh /setup/ready.sh
```
### deploy.sh (For AWS Cloud)
deploy to localstack and start the ready endpoint (optional), indicating your cdk deploy is complete at http://localhost/ready
```
#!/bin/bash -x
npm ci
cdk deploy
# start http health endpoint from the base image
sh /setup/ready.sh
```