Build Amazon EC2 AMI image using a Dockerfile
Project description
docker-build-ami
Build Amazon EC2 AMI image using a Dockerfile
Beware this is a work in progress, it work’s but it’s in need of a rewrite.
Restrictions
Only support operations RUN, COPY at the moment
Doesn’t correctly quote Bash $var at moment
Configuration
Requires a ~/.boto config file for Credentials:
[Credentials]
aws_access_key_id = <access key>
aws_secret_access_key = <secret key>
There is a separate config file for the script in either “/etc/docker-build-ami.conf” or “~/.docker-build-ami.conf”.
# Temporary directory
tmp_dir = /tmp
# Name tag for host building AMI image
# host_tag = 'docker-build-ami'
# Region
# region = eu-west-1
# Instance type
# instance_type = m3.medium
# Subnet ID
# subnet_id = subnet-123abc45
Usage
usage: docker-build-ami [-h] [-c CONFIG] [-d] [-r] [-t] [-s] [-n] [-i] [-u]
optional arguments:
-h, --help show this help message and exit
-c CONFIG, --config CONFIG
Configuration file
-d, --debug Print debug info
-r, --region AWS region
-t, --instance-type EC2 instance type
-s, --subnet-id AWS subnet id
-n, --image-name AMI image name
-i, --image-id AMI image ID
-u, --image-user AMI image user
Roadmap
Move credentials to config file
Rewrite and cleanup
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file docker-build-ami-0.1.5.tar.gz
.
File metadata
- Download URL: docker-build-ami-0.1.5.tar.gz
- Upload date:
- Size: 5.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4d066a2e27227497f9c490442927357102e3ed0e84101bbf26731f8a01a25789 |
|
MD5 | c993349c4844e4010a4f699a17e40882 |
|
BLAKE2b-256 | fe6349d4e4cfdee4e3c20f80337c47a078579be0dbc41415da2a5f447528b0d6 |