It's a fun project to setup a serverless Analytics app in AWS to analyze the layers of docker images.
The app is powered by Amazon S3, AWS Glue and Amazon Athena.
- Install Node LTS(such as 12.x)
- Configure your AWS account for awscli
# install dependencies & init cdk toolkit
# only need run once
npm run init
# deploy
npm run deploy
npm run cleanup
- Login the AWS console with your account, Go to Athena
- In Query Editor, selction database
docker_image_db
, then select context menuLoad Partitions
from tablelayers
- Click the Saved Queries to find the built-in analysis queries starting with
Docker_Layers_Stats
Enjoy it!
This project provides few pilot layers data of some official Docker images of Docker hub, the data was fetched by the simple script. This project does NOT guarantee the integrity of layers data and provides the continuous maintenance.
You are free to use this project and the script, make sure not violating the user agreements of Docker hub.