Amazon Linux AMI for Docker

Run bash in Amazon Linux

# docker run -it amazonlinux:latest /bin/bash

# docker run -it yihua1218/ami-yarn:latest /bin/bash

# docker run -it yihua1218/ami-db:latest /bin/bash

Install node 4.8.7

curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.6/install.sh | bash
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
nvm install 4.8.7

Dockers

# docker build -t="yihua1218/ami-yarn" .

# docker build -t="yihua1218/ami-grunt" .

# docker build -t="yihua1218/ami-db" .

Reference
  1. Amazon Linux AMI
  2. Amazon Linux Container Image

發表迴響

你的電子郵件位址並不會被公開。 必要欄位標記為 *