-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
dtfiedler
committed
Nov 30, 2023
1 parent
66f92bd
commit 4a1886c
Showing
98 changed files
with
4,258 additions
and
2,794 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 |
---|---|---|
|
@@ -2,3 +2,4 @@ NODE_ENV= | |
PAYMENT_SERVICE_BASE_URL= | ||
ALLOW_LISTED_ADDRESSES= | ||
PRIVATE_ROUTE_SECRET= | ||
MIGRATE_ON_STARTUP= |
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
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 |
---|---|---|
@@ -1 +1 @@ | ||
v18.16.0 | ||
v18.17.0 |
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 @@ | ||
CODEOWNERS |
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
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,3 +1,7 @@ | ||
nodeLinker: node-modules | ||
|
||
plugins: | ||
- path: .yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs | ||
spec: "@yarnpkg/plugin-workspace-tools" | ||
|
||
yarnPath: .yarn/releases/yarn-3.2.1.cjs |
Validating CODEOWNERS rules …
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
File renamed without changes.
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,35 @@ | ||
ARG NODE_VERSION=18.17.0 | ||
ARG NODE_VERSION_SHORT=18 | ||
|
||
FROM node:${NODE_VERSION}-bullseye-slim AS builder | ||
|
||
# Build | ||
WORKDIR /usr/src/app | ||
COPY . . | ||
RUN yarn && yarn build | ||
|
||
RUN cd ecs/fulfillment-pipeline/ && yarn install && yarn build | ||
|
||
# Clean out dependencies | ||
RUN yarn workspaces focus --production | ||
|
||
FROM gcr.io/distroless/nodejs${NODE_VERSION_SHORT}-debian11 | ||
WORKDIR /usr/src/app | ||
|
||
# Add shell | ||
COPY --from=busybox:1.35.0-uclibc /bin/sh /bin/sh | ||
COPY --from=busybox:1.35.0-uclibc /bin/addgroup /bin/addgroup | ||
COPY --from=busybox:1.35.0-uclibc /bin/adduser /bin/adduser | ||
COPY --from=busybox:1.35.0-uclibc /bin/chown /bin/chown | ||
|
||
# Create user | ||
RUN addgroup -g 1000 node \ | ||
&& adduser -u 1000 -G node -s /bin/sh -D node | ||
RUN chown -R node ./ | ||
USER node | ||
|
||
# Copy build files | ||
COPY --from=builder --chown=node /usr/src/app/ecs/fulfillment-pipeline/dist ./dist | ||
|
||
EXPOSE 3000 | ||
CMD ["./dist/app.js"] |
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
ARG NODE_VERSION=18.16.0 | ||
ARG NODE_VERSION=18.17.0 | ||
|
||
FROM node:${NODE_VERSION}-bullseye-slim | ||
|
||
|
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
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,25 @@ | ||
{ | ||
"name": "@ardriveapp/fulfillment-pipeline", | ||
"version": "1.0.0", | ||
"description": "", | ||
"main": "src/app.ts", | ||
"type": "commonjs", | ||
"scripts": { | ||
"build": "rimraf ./dist; esbuild --bundle src/app.ts --outdir=dist --format=cjs --platform=node --external:better-sqlite3 --external:mysql2 --external:mysql --external:tedious --external:oracledb --external:mock-aws-s3 --external:nock --external:\"*.html\"", | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
}, | ||
"author": "Permanent Data Solutions Inc.", | ||
"license": "AGPL-3.0", | ||
"dependencies": { | ||
"@aws-sdk/client-sqs": "^3.427.0", | ||
"@aws-sdk/node-http-handler": "^3.374.0", | ||
"dotenv": "^16.0.1", | ||
"sqs-consumer": "^7.3.0" | ||
}, | ||
"devDependencies": { | ||
"esbuild": "^0.19.4", | ||
"rimraf": "^3.0.2", | ||
"ts-node": "^10.9.1", | ||
"typescript": "^4.7.4" | ||
} | ||
} |
Oops, something went wrong.