Containerization
knowledge skill
The Containerization skill enables an agent to take a specified application and its dependencies, then package them into a Docker container image. The agent ensures the image is properly configured for deployment. The output is a usable Docker image file (.tar) or a Docker Hub repository link.
Worked examples
- {"input": {"app_path": "/path/to/my/webapp", "dependencies": ["python:3.9", "flask"], "docker_registry": "myregistry:5000/mywebapp"}, "output": {"docker_image": "myregistry:5000/mywebapp:latest", "deployment_config": {"CMD": ["flask", "run"], "PORT": 5000}}}
- {"input": {"app_path": "/home/user/nodejs-app", "dependencies": ["node:14", "express"], "docker_registry": null}, "output": {"docker_image": "/tmp/nodejs-app-image.tar", "deployment_config": {"CMD": ["node", "app.js"], "PORT": 3000}}}
Input
- app_path: string, path to application code directory
- dependencies: array, list of dependencies (e.g., libraries, frameworks)
- docker_registry: string, optional Docker registry URL for push
Output
- docker_image: string, Docker image name/tag or .tar file path
- deployment_config: object, JSON with container run configurations
Details
- Skill type: knowledge skill
- Safety level: safe_public_research
- Version: 1.0.0