-
Notifications
You must be signed in to change notification settings - Fork 220
/
hello-world-task-definition.json
71 lines (71 loc) · 1.8 KB
/
hello-world-task-definition.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
{
"containerDefinitions": [
{
"name": "hello",
"image": "docker.io/buoyantio/helloworld:0.1.6",
"entryPoint": ["/bin/sh", "-c"],
"command": [
"LOCAL_IP=$(curl http://169.254.169.254/latest/meta-data/local-ipv4) http_proxy=$LOCAL_IP:4140 POD_IP=$LOCAL_IP helloworld -addr=:1234 -text=Hello -target=world"
],
"environment": [
{
"name": "SERVICE_NAME",
"value": "hello"
}
],
"memory": 128,
"portMappings": [
{
"containerPort": 1234,
"protocol": "tcp"
}
],
"essential": true
},
{
"name": "world",
"image": "docker.io/buoyantio/helloworld:0.1.6",
"entryPoint": ["/bin/sh", "-c"],
"command": [
"LOCAL_IP=$(curl http://169.254.169.254/latest/meta-data/local-ipv4) http_proxy=$LOCAL_IP:4140 POD_IP=$LOCAL_IP helloworld -addr=:1234 -text=World"
],
"environment": [
{
"name": "SERVICE_NAME",
"value": "world"
}
],
"memory": 128,
"portMappings": [
{
"containerPort": 1234,
"protocol": "tcp"
}
],
"essential": true
},
{
"name": "world-v2",
"image": "docker.io/buoyantio/helloworld:0.1.6",
"entryPoint": ["/bin/sh", "-c"],
"command": [
"LOCAL_IP=$(curl http://169.254.169.254/latest/meta-data/local-ipv4) http_proxy=$LOCAL_IP:4140 POD_IP=$LOCAL_IP helloworld -addr=:1234 -text=World-V2"
],
"environment": [
{
"name": "SERVICE_NAME",
"value": "world-v2"
}
],
"memory": 128,
"portMappings": [
{
"containerPort": 1234,
"protocol": "tcp"
}
],
"essential": true
}
],
"family": "hello-world"
}