Sign inSign up

holbertonschool/motoserver

By holbertonschool

Updated about 5 years ago

Image
0

510

holbertonschool/motoserver repository overview

Moto Server Docker Image

A custom Docker image built on https://github.com/spulec/moto to simulate AWS API.

Lint

hadolint ./Dockerfile

Build

docker build --tag holberton/motoserver ./

Test

After building:

docker run --detach --name="moto-test" --publish="5000:5000" holberton/motoserver \
  && sleep 2 \
  && curl --head http://127.0.0.1:5000/ `# Check for HTTP 200 OK` \
  && aws --endpoint-url=http://localhost:5000 --no-verify-ssl ec2 describe-images `# Sames images as the content from ./amis.json` \
  && docker rm -v -f "moto-test"

Tag summary

Content type

Image

Digest

Size

76.3 MB

Last updated

about 5 years ago

docker pull holbertonschool/motoserver