A custom Docker image built on https://github.com/spulec/moto to simulate AWS API.
hadolint ./Dockerfile
docker build --tag holberton/motoserver ./
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"
Content type
Image
Digest
Size
76.3 MB
Last updated
about 5 years ago
docker pull holbertonschool/motoserver