Skip to content

Commit a888a48

Browse files
committed
readme
1 parent 79a3b77 commit a888a48

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

README.md

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ If you haven't used X-Ray with Scorekeep yet, try the [`xray-gettingstarted`](ht
44
This branch shows an instrumented version of Scorekeep that runs in Amazon ECS, a service that lets you run Docker containers on Amazon EC2 instances. For ease of deployment, it uses a CloudFormation template to create all of the secondary resources used by Scorekeep, and Elastic Beanstalk to create the ECS cluster and deploy the containers.
55

66
**Prerequisites**
7+
78
Install the following tools to create Docker images, upload them to ECR, and register task definitions with ECS.
89
- Docker
910
- AWS CLI v1.14.0+
@@ -14,29 +15,29 @@ Install the following tools to create Docker images, upload them to ECR, and reg
1415
1. Update `aws.env` in the root of the repo with your account ID and region.
1516
2. Create the CloudFormation stack by running **make stack** in the cloudformation directory. (If you already have a stack from the `ecs` or `fargate` branches, run **make update** instead.)
1617

17-
cloudformation$ make stack
18+
cloudformation$ make stack
1819

1920
3. Build and publish the Docker containers for the API, frontend, and X-Ray daemon by running `make publish` in each folder.
2021

21-
$ make publish
22-
scorekeep-frontend$ make publish
23-
xray-daemon$ make publish
22+
$ make publish
23+
scorekeep-frontend$ make publish
24+
xray-daemon$ make publish
2425

2526
4. Generate the task definition by running the `generate-dockerrun` script.
2627

27-
task-definition$ ./generate-dockerrun
28+
task-definition$ ./generate-dockerrun
2829

2930
5. Initialize an Elastic Beanstalk repo in the task-definition folder. If you have an SSH key, you can specify it with the -k option.
3031

31-
task-definition$ eb init -p multi-container-docker -r us-east-1 scorekeep-ecs
32+
task-definition$ eb init -p multi-container-docker -r us-east-1 scorekeep-ecs
3233

3334
6. Create a Multicontainer Docker environment.
3435

35-
task-definition$ eb create -d -i m5.large --sample --instance_profile scorekeep-beanstalk-ecs-role scorekeep
36+
task-definition$ eb create -d -i m5.large --sample --instance_profile scorekeep-beanstalk-ecs-role scorekeep
3637

3738
7. Deploy the task definition.
3839

39-
task-definition$ eb deploy
40+
task-definition$ eb deploy
4041

4142
# Scorekeep
4243
Scorekeep is a RESTful web API implemented in Java that uses Spring to provide an HTTP interface for creating and managing game sessions and users. This project includes the Scorekeep API and a front-end web app that consumes it. The front end and API can run on the same server and domain or separately, with the API running in Elastic Beanstalk and the front end served statically by a CDN.

0 commit comments

Comments
 (0)