Skip to content

scalefactory/sf-fargate-workshop-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

63 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Scale Factory Fargate workshop demo

This is an open source project published by The Scale Factory.

We currently consider this project to be adopted.

These are projects that we actively invest in because we or our customers find them useful on a day to day basis. We keep them security patched and ready for use in production environments.

We’ll take a look at any issues or PRs you open and get back to you as soon as we can. We don’t offer any formal SLA, but we’ll be checking on this project periodically.

If your issue is urgent, you can flag it as such, and we’ll attempt to triage appropriately, but we have paying customers who also have demands on our time. If your business depends on this project and you have an urgent problem, then you can talk to our sales team about paying us to support you.

This repository contains 2 applications for the fargate workshop demo.

Hello world

A NodeJS express application to print 'Hello World!'

Build this image by running

docker build -t sf-fargate-workshop-demo:hello-world -f 01-hello-world/Dockerfile 01-hello-world

S3 List

A NodeJS express application to list the contents of a bucket and print the contents of files

Note: This container requires permissions to read the sf-fargate-workshop-demo bucket.

Build this image by running

docker build -t sf-fargate-workshop-demo:s3-list -f 02-s3-list/Dockerfile 02-s3-list

These images can be pushed to the workshop ECR by running

$(aws ecr get-login --no-include-email --region eu-west-1)
docker tag sf-fargate-workshop-demo:hello-world 374061437266.dkr.ecr.eu-west-1.amazonaws.com/sf-fargate-workshop-demo:hello-world
docker tag sf-fargate-workshop-demo:s3-list 374061437266.dkr.ecr.eu-west-1.amazonaws.com/sf-fargate-workshop-demo:s3-list
docker push 374061437266.dkr.ecr.eu-west-1.amazonaws.com/sf-fargate-workshop-demo:hello-world
docker push 374061437266.dkr.ecr.eu-west-1.amazonaws.com/sf-fargate-workshop-demo:s3-list

Development

Run npm install inside both of the applications

docker-compose up

Access the applications at http://localhost:8080 and http://localhost:8081