Sign inSign up

ambakshi/amazon-linux

By ambakshi

Updated about 7 years ago

Amazon Linux 2018.03 (minimal 60mb) (UPDATED: 2019/08/17)

Image
15

10K+

ambakshi/amazon-linux repository overview

** NOTE ** There is an official Amazon Linux (https://hub.docker.com/_/amazonlinux/) docker image available now. Back when I created this (~July/2014), there was nothing available (See the post on the AWS forums below). For a long time this was the top rated and only available image for Amazon Linux. Even today, this image is ~50% the size of the official Amazon one. (I still can't get the official image to consistently download packages). This image has the Core group package and yum-plugin-ovl installer.

UPDATED: Add "-p yum-plugin-ovl " so that this image can be used as a base on yum based hosts.

I posted how to create an Amazon Linux image on the AWS Developer Forum ( copied from https://forums.aws.amazon.com/message.jspa?messageID=574500 ) :

For anyone interested, I got this working. I'd push up the image to the registry, but I'm not sure if I have permission to do so. If someone from AWS would like, I can put the file somewhere (~100mb).

  1. Boot up an amazon linux ami (I used amzn-ami-hvm-2016.03.0.x86_64-gp2).
  2. yum install -y docker && service docker start
  3. wget -q https://raw.githubusercontent.com/docker/docker/master/contrib/mkimage-yum.sh
  4. sudo bash mkimage-yum.sh -p yum-plugin-ovl ambakshi/amazon-linux
  5. if the above fails to install the extra package, there's a bug in the current mkimage-yum.sh script. the install_packages+=(""$OPTARG"") incorrectly double quotes the package name. It should read install_packages+=("$OPTARG")

At this point you have an image with the specified name, tagged by the os version. You can run it, retag it and push it to a private registry, export it, etc. Came in real handy during our move from centos to amazon linux when I was testing puppet.

Tag summary

Content type

Image

Digest

sha256:fa65356b5

Size

60.4 MB

Last updated

about 7 years ago

docker pull ambakshi/amazon-linux