Skip to content

Commit

Permalink
Create simple-app-task-def.json
Browse files Browse the repository at this point in the history
  • Loading branch information
cbbarclay committed Mar 5, 2015
1 parent a70c857 commit 358a81b
Showing 1 changed file with 55 additions and 0 deletions.
55 changes: 55 additions & 0 deletions simple-app-task-def.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
{
"family": "console-sample-app",
"volumes": [
{
"name": "my-vol",
"host": {}
}
],
"containerDefinitions": [
{
"environment": [],
"name": "simple-app",
"image": "amazon/amazon-ecs-sample",
"cpu": 10,
"memory": 500,
"portMappings": [
{
"containerPort": 80,
"hostPort": 80
}
],
"mountPoints": [
{
"sourceVolume": "my-vol",
"containerPath": "/var/www/my-vol"
}
],
"entryPoint": [
"/usr/sbin/apache2",
"-D",
"FOREGROUND"
],
"essential": true
},
{
"name": "busybox",
"image": "busybox",
"cpu": 10,
"memory": 500,
"volumesFrom": [
{
"sourceContainer": "simple-demo"
}
],
"entryPoint": [
"sh",
"-c"
],
"command": [
"/bin/sh -c \"while true; do /bin/date > /var/www/my-vol/date; sleep 1; done\""
],
"essential": false
}
]
}

0 comments on commit 358a81b

Please sign in to comment.