Created
June 1, 2019 09:13
-
-
Save goswamig/f9028c53b9c0cb466081f0c122d5966a to your computer and use it in GitHub Desktop.
Fargate Task Definition
This file contains hidden or 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
{ | |
"requiresCompatibilities": [ | |
"FARGATE" | |
], | |
"executionRoleArn": "arn:aws:iam::<aws_account_id>:role/ecsTaskExecutionRole", | |
"containerDefinitions": [ | |
{ | |
"command": [ | |
"apt-get update && apt-get install -y --no-install-recommends git && mkdir -p /test && cd /test && git clone -b r1.13 https://github.com/tensorflow/serving.git && tensorflow_model_server --port=8500 --rest_api_port=8501 --model_name=saved_model_half_plus_two --model_base_path=/test/serving/tensorflow_serving/servables/tensorflow/testdata/saved_model_half_plus_two_cpu" | |
], | |
"entryPoint": [ | |
"sh", | |
"-c" | |
], | |
"name": "FargateTFInference", | |
"image": "tensorflow/serving", | |
"memory": 10240, | |
"cpu": 0, | |
"essential": true, | |
"portMappings": [ | |
{ | |
"hostPort": 8500, | |
"protocol": "tcp", | |
"containerPort": 8500 | |
}, | |
{ | |
"hostPort": 8501, | |
"protocol": "tcp", | |
"containerPort": 8501 | |
}, | |
{ | |
"containerPort": 80, | |
"protocol": "tcp" | |
} | |
], | |
"logConfiguration": { | |
"logDriver": "awslogs", | |
"options": { | |
"awslogs-group": "/ecs/TFInference", | |
"awslogs-region": "us-west-2", | |
"awslogs-stream-prefix": "ecs" | |
} | |
} | |
} | |
], | |
"volumes": [], | |
"networkMode": "awsvpc", | |
"cpu": "4096", | |
"memory": "10240", | |
"placementConstraints": [], | |
"family": "FargateTFInference" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment