Skip to content

Commit

Permalink
Deps
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewBarba committed Nov 17, 2023
1 parent 7aa5dba commit efa56db
Show file tree
Hide file tree
Showing 3 changed files with 1,841 additions and 1,428 deletions.
8 changes: 6 additions & 2 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,16 @@ const images = dockerFiles.map(
(name) =>
new awsx.ecr.Image(`image-${stack}-${name}`, {
repositoryUrl: repo.url,
path: './',
context: './',
dockerfile: `./src/images/Dockerfile.${name}`
})
)

// Create service
export const cluster = new aws.ecs.Cluster('swift-build', {
export const cluster = new aws.ecs.Cluster('swift-build', {})

new aws.ecs.ClusterCapacityProviders(`swift-build-cluster-capacity`, {
clusterName: cluster.name,
capacityProviders: ['FARGATE', 'FARGATE_SPOT']
})

Expand Down Expand Up @@ -127,6 +130,7 @@ export const taskDefinitions = images.map(
(image, index) =>
new awsx.ecs.FargateTaskDefinition(`swift-build-task-${dockerFiles[index]}`, {
container: {
name: `swift-build-container-${dockerFiles[index]}`,
image: image.imageUri,
cpu: 4 * 1024,
environment: [
Expand Down
34 changes: 17 additions & 17 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,27 @@
"name": "build",
"private": "true",
"dependencies": {
"@aws-sdk/client-cloudwatch-logs": "^3.345.0",
"@aws-sdk/client-s3": "^3.345.0",
"@aws-sdk/client-sqs": "^3.345.0",
"@pulumi/aws": "^5.41.0",
"@pulumi/awsx": "^1.0.2",
"@pulumi/pulumi": "^3.69.0",
"@aws-sdk/client-cloudwatch-logs": "^3.451.0",
"@aws-sdk/client-s3": "^3.451.0",
"@aws-sdk/client-sqs": "^3.451.0",
"@pulumi/aws": "^6.9.0",
"@pulumi/awsx": "^2.1.1",
"@pulumi/pulumi": "^3.94.1",
"fastq": "^1.15.0",
"sqs-consumer": "^7.1.0"
"sqs-consumer": "^7.4.0"
},
"devDependencies": {
"@types/aws-lambda": "^8.10.116",
"@types/node": "^20.2.5",
"@typescript-eslint/eslint-plugin": "^5.59.9",
"@typescript-eslint/parser": "^5.59.9",
"esbuild": "^0.17.19",
"eslint": "^8.42.0",
"eslint-config-prettier": "^8.8.0",
"eslint-plugin-prettier": "^4.2.1",
"prettier": "^2.8.8",
"@types/aws-lambda": "^8.10.126",
"@types/node": "^20.9.1",
"@typescript-eslint/eslint-plugin": "^6.11.0",
"@typescript-eslint/parser": "^6.11.0",
"esbuild": "^0.19.5",
"eslint": "^8.53.0",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-prettier": "^5.0.1",
"prettier": "^3.1.0",
"ts-node": "^10.9.1",
"typescript": "^5.1.3"
"typescript": "^5.2.2"
},
"scripts": {
"build": "tsc -emitDeclarationOnly && ts-node -T ./esbuild.ts",
Expand Down
Loading

0 comments on commit efa56db

Please sign in to comment.