-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create deploy tool for deploying AWS Lambda Docker containers (#731)
Shorthand tool for: 1. Logging into ECR 2. Building the Docker image 3. Pushing the Docker image to ECR 4. Updating the lambda code with the image ## Usage From the root directory, invoke Ship and specify which app to deploy. It will read the ship.json config file in the target directory. ```sh pnpm ship deploy apps/dispatcher-auth --env dev ``` Example ship.json configuration ```json { "imageName": "dispatcher-auth", "version": "latest", "environments": [ { "name": "dev", "ecrRepository": "891459268445.dkr.ecr.eu-north-1.amazonaws.com/dispatcher-auth-dev", "functionName": "dispatcher-auth-dev", "dockerfile": "apps/dispatcher-auth/Dockerfile" } ] } ```
- Loading branch information
Showing
13 changed files
with
836 additions
and
200 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,10 @@ | |
.next | ||
.turbo | ||
.react-email | ||
.git | ||
|
||
.dockerignore | ||
.env* | ||
|
||
node_modules | ||
infra | ||
|
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"imageName": "dispatcher-auth", | ||
"version": "latest", | ||
"environments": [ | ||
{ | ||
"name": "dev", | ||
"ecrRepository": "891459268445.dkr.ecr.eu-north-1.amazonaws.com/dispatcher-auth-dev", | ||
"functionName": "dispatcher-auth-dev", | ||
"dockerfile": "apps/dispatcher-auth/Dockerfile" | ||
} | ||
] | ||
} |
This file contains 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
This file contains 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
Oops, something went wrong.