-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DPLT-1084 Add support for Runner infrastructure #166
Changes from all commits
a53d343
7364e76
1f9d7ca
9ed46eb
7f85607
4216cbc
d614b49
7487cb6
7527250
6ddc549
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
FROM node:18.17 AS builder | ||
WORKDIR /usr/src/app | ||
COPY . . | ||
RUN npm install | ||
RUN npm run build | ||
|
||
FROM node:18.17 | ||
WORKDIR /usr/src/app | ||
COPY --from=builder /usr/src/app/package*.json ./ | ||
RUN npm install --omit=dev | ||
COPY --from=builder /usr/src/app/dist ./dist | ||
CMD [ "npm", "run", "start:docker" ] |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,7 +39,7 @@ export default class Indexer { | |
this.network = network; | ||
this.deps = { | ||
fetch, | ||
s3: new AWS.S3({ region: process.env.REGION }), | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This env var has been changed to |
||
s3: new AWS.S3(), | ||
provisioner: new Provisioner(), | ||
...deps, | ||
}; | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,11 +6,11 @@ import PgClient from '../pg-client'; | |
const DEFAULT_PASSWORD_LENGTH = 16; | ||
|
||
const sharedPgClient = new PgClient({ | ||
user: process.env.PG_ADMIN_USER, | ||
password: process.env.PG_ADMIN_PASSWORD, | ||
database: process.env.PG_ADMIN_DATABASE, | ||
host: process.env.PG_HOST, | ||
port: Number(process.env.PG_PORT), | ||
user: process.env.PGUSER, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Now using node-postgres & Postgres specified environment variables, these don't actually need to be defined, but I'm just doing it for explicitness. |
||
password: process.env.PGPASSWORD, | ||
database: process.env.PGDATABASE, | ||
host: process.env.PGHOST, | ||
port: Number(process.env.PGPORT), | ||
}); | ||
|
||
export default class Provisioner { | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Dev dependencies are stripped from the docker build, and this was incorrectly placed there.