Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ containerjet/
dist/
node_modules/
data-private/
task-definitions/
./task-definitions/
test-config/
.env
oncall
Expand Down
14 changes: 14 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,20 @@
"${workspaceFolder}/**/*.js"
],
"preLaunchTask": "npm: build",
},
{
"type": "node",
"request": "launch",
"name": "Suite Launch",
"runtimeArgs": [
"-r",
"ts-node/register"
],
"args": [
"app.ts"
],
"sourceMaps": true,
"cwd": "${workspaceRoot}/apps/suite-launch"
}
]
}
7 changes: 7 additions & 0 deletions apps/suite-launch/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
test-collections/
test-suite/*/yield/
test-suite/*/staged/
test-suite-examples/*/yield/
test-suite-examples/*/staged/
decommissioned/
app.ts
10,123 changes: 10,123 additions & 0 deletions apps/suite-launch/package-lock.json

Large diffs are not rendered by default.

28 changes: 28 additions & 0 deletions apps/suite-launch/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"name": "jetti",
"version": "1.0.0",
"description": "A project that syncs and runs AWS ECS tasks",
"main": "app.js",
"scripts": {
"test": "jest",
"start": "ts-node app.ts",
"use-stencil": "ts-node stencil.ts",
"build": "tsc --build"
},
"dependencies": {
"@aws-sdk/client-s3": "^3.272.0",
"aws-sdk": "^2.1318.0",
"dotenv": "^10.0.0",
"handlebars": "^4.7.7",
"mustache": "^4.2.0",
"s3-sync-client": "^3.0.3"
},
"devDependencies": {
"@types/aws-sdk": "^2.7.0",
"@types/jest": "^29.4.0",
"@types/mustache": "^4.2.2",
"ts-jest": "^29.0.5",
"ts-node": "^10.2.1",
"typescript": "^4.5.5"
}
}
172 changes: 172 additions & 0 deletions apps/suite-launch/task-definitions/mock-mountebank-2.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,172 @@
{
"family": "{{{test_name_unique}}}",
"executionRoleArn": "arn:aws:iam::210752607241:role/ecsTaskExecutionRole",
"taskRoleArn": "arn:aws:iam::210752607241:role/FirelensECS",
"networkMode": "bridge",
"containerDefinitions": [
{
"name": "fluent-bit",
"image": "{{{image-aws-for-fluent-bit}}}",
{{#if commands-aws-for-fluent-bit}}
"command": ["/bin/bash", "-c", "{{#each commands-aws-for-fluent-bit}}{{{this}}}; {{/each}}"],
{{/if}}
"cpu": 512,
"firelensConfiguration": {
"type": "fluentbit"
},
"environmentFiles": [
{
"value": "{{{s3_materials_arn}}}/fluent-bit.env",
"type": "s3"
}
],
"environment": [
{
"name": "AWS_REGION",
"value": "us-west-2"
},
{
"name": "aws_fluent_bit_init_s3_1",
"value": "{{{s3_materials_arn}}}/fluent-bit.conf"
},
{
"name": "aws_fluent_bit_init_s3_2",
"value": "{{{s3_materials_arn}}}/fluent-bit-onepod.conf"
},
{
"name": "aws_fluent_bit_init_s3_3",
"value": "{{{s3_materials_arn}}}/fluent-parser.conf"
},
{
"name": "S3_BUCKET",
"value": "{{{s3-corefile-destination}}}"
},
{
"name": "S3_KEY_PREFIX",
"value": "{{{test_name}}}/r{{{test_revision}}}"
},
{
"name": "S3_FILE_NAME_PREFIX",
"value": "{{{test_name}}}-r{{{test_revision}}}"
},
{
"name": "S3_ALTERNATE_LOCATION_PREFIX",
"value": "{{{s3_materials_bucket}}}/{{{test_name}}}/error-reports/{{{test_name}}}-r{{{test_revision}}}"
}
],
"memory": 512,
"essential": true,
"logConfiguration": {
"logDriver": "awslogs",
"options": {
"awslogs-group": "app-{{{test_name_unique}}}",
"awslogs-region": "us-west-2",
"awslogs-create-group": "true",
"awslogs-stream-prefix": "fluent-bit"
}
},
"mountPoints": [
{
"sourceVolume": "my-shared-volume",
"containerPath": "/tmp/data_logs",
"readOnly": false
}
],
"links": ["mock:mock"]
},
{
"name": "datajet",
"user": "0",
"image": "{{{image-datajet}}}",
"essential": true,
"environment": [
{
"name": "CLIENTS",
"value": "[\"s3\"]"
},
{
"name": "CLIENT_S3_BUCKET",
"value": "{{{s3_materials_bucket}}}"
},
{
"name": "CLIENT_S3_FILE",
"value": "{{{s3_materials_key_base}}}/firelens-datajet.json"
}
],
"logConfiguration": {
"logDriver": "awslogs",
"options": {
"awslogs-group": "app-{{{test_name_unique}}}",
"awslogs-region": "us-west-2",
"awslogs-create-group": "true",
"awslogs-stream-prefix": "datajet"
}
},
"mountPoints": [
{
"sourceVolume": "my-shared-volume",
"containerPath": "/var/tmp/data_logs",
"readOnly": false
}
],
"dependsOn": [{
"containerName": "fluent-bit",
"condition": "START"
}],
"links": ["fluent-bit:flb"]
},
{
"essential": false,
"image": "httpd",
"name": "dummy",
"logConfiguration": {
"logDriver":"awsfirelens",
"options": {
"Name": "cloudwatch_logs",
"region": "us-west-2",
"log_group_name": "/aws/ecs/containerinsights/dummy-app",
"auto_create_group": "true",
"log_stream_name": "stdout-stderr-",
"retry_limit": "2"
}
},
"dependsOn": [{
"containerName": "fluent-bit",
"condition": "START"
}],
"memoryReservation": 100
},
{
"essential": false,
"image": "{{{image-mock}}}",
"name": "mock",
"environment": [
{
"name": "CLIENT_S3_BUCKET",
"value": "{{{s3_materials_bucket}}}"
},
{
"name": "CLIENT_S3_FILE",
"value": "{{{s3_materials_key_base}}}/mountebank.json"
}
],
"logConfiguration": {
"logDriver": "awslogs",
"options": {
"awslogs-group": "app-{{{test_name_unique}}}",
"awslogs-region": "us-west-2",
"awslogs-create-group": "true",
"awslogs-stream-prefix": "mock"
}
},
"memoryReservation": 100
}
],
"memory": "512",
"cpu": "512",
"volumes": [
{
"name": "my-shared-volume"
}
]
}
Loading