Created
March 7, 2019 20:18
-
-
Save jwkidd3/8f54c15e77598a9b20b47f3a7d042a3b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"family": "yourApp-demo", | |
"containerDefinitions": [ | |
{ | |
"volumesFrom": [], | |
"portMappings": [ | |
{ | |
"hostPort": 80, | |
"containerPort": 80 | |
} | |
], | |
"command": null, | |
"environment": [], | |
"essential": true, | |
"entryPoint": null, | |
"links": [], | |
"mountPoints": [ | |
{ | |
"containerPath": "/usr/local/apache2/htdocs", | |
"sourceVolume": "my-vol", | |
"readOnly": null | |
} | |
], | |
"memory": 300, | |
"name": "simple-app", | |
"cpu": 10, | |
"image": "httpd:2.4" | |
}, | |
{ | |
"volumesFrom": [ | |
{ | |
"readOnly": null, | |
"sourceContainer": "simple-app" | |
} | |
], | |
"portMappings": [], | |
"command": [ | |
"/bin/sh -c \"while true; do echo '<html> <head> <title>Amazon ECS Sample App</title> <style>body {margin-top: 40px; background-color: #333;} </style> </head><body> <div style=color:white;text-align:center> <h1>Amazon ECS Sample App</h1> <h2>Congratulations!</h2> <p>Your application is now running on a container in Amazon ECS.</p>' > top; /bin/date > date ; echo '</div></body></html>' > bottom; cat top date bottom > /usr/local/apache2/htdocs/index.html ; sleep 1; done\"" | |
], | |
"environment": [], | |
"essential": false, | |
"entryPoint": [ | |
"sh", | |
"-c" | |
], | |
"links": [], | |
"mountPoints": [], | |
"memory": 200, | |
"name": "busybox", | |
"cpu": 10, | |
"image": "busybox" | |
} | |
], | |
"volumes": [ | |
{ | |
"host": { | |
"sourcePath": null | |
}, | |
"name": "my-vol" | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment