Skip to content

Commit

Permalink
fix: enable npm prune --production in dockerfile (#11)
Browse files Browse the repository at this point in the history
* fix: enable npm prune --production in dockerfile

* fix(vulns): run npm audit, fix and ignore unfixable low and moderate for 1 month

* fix(vulns): run npm audit, fix and ignore unfixable low and moderate for 1 month

* fix(vulns): revert breaking changes in package.json

* fix(vulns): recreate package-lock.json

* fix(deps): update to latest central-services-health

* fix(deps): make metrics return a promise

* fix(deps): update central-services-shared

* fix(deps): update central-services-shared

* fix(deps): update central-services-shared

* fix(unit): fix issues where hapi server.inject behaviour changed after update

* fix(unit): unit tests working again

* fix(vulns): run npm audit, fix and ignore unfixable low and moderate for 1 month
  • Loading branch information
lewisdaly authored Sep 28, 2021
1 parent ef40cc9 commit 21d588b
Show file tree
Hide file tree
Showing 10 changed files with 1,597 additions and 1,300 deletions.
7 changes: 4 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,9 @@ RUN ln -sf /dev/stdout ./logs/combined.log
RUN adduser -D as-user
USER as-user
COPY --chown=as-user --from=builder /opt/als-consent-oracle .
# cleanup
# disable prune, breaks tests
# RUN npm prune --production

# cleanup dev dependencies
RUN npm prune --production

EXPOSE 3000
CMD ["npm", "run", "start"]
2 changes: 2 additions & 0 deletions ambient.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ declare module '@mojaloop/central-services-error-handling'{
export function validateRoutes(options?: object): object;
}
declare module '@mojaloop/central-services-shared'
declare module '@mojaloop/central-services-shared/src/util/hapi'
declare module '@mojaloop/central-services-metrics'

declare module '@hapi/good'
declare module 'hapi-openapi'
Expand Down
58 changes: 42 additions & 16 deletions audit-resolve.json
Original file line number Diff line number Diff line change
@@ -1,29 +1,55 @@
{
"decisions": {
"1594|@mojaloop/central-services-health>@mojaloop/central-services-shared>axios": {
"decision": "ignore",
"madeAt": 1611100930722,
"expiresAt": 1613692926295
"1594|@mojaloop/central-services-shared>axios": {
"decision": "fix",
"madeAt": 1632796604558
},
"1500|@mojaloop/central-services-health>@mojaloop/central-services-shared>widdershins>yargs>yargs-parser": {
"decision": "ignore",
"madeAt": 1614574679004,
"expiresAt": 1617166666557
"1673|@mojaloop/central-services-shared>@mojaloop/central-services-error-handling>lodash": {
"decision": "fix",
"madeAt": 1632796604558
},
"1673|@mojaloop/central-services-shared>@mojaloop/event-sdk>lodash": {
"decision": "fix",
"madeAt": 1632796604558
},
"1673|@mojaloop/central-services-shared>lodash": {
"decision": "fix",
"madeAt": 1632796604558
},
"1770|@mojaloop/central-services-shared>@mojaloop/event-sdk>grpc>node-pre-gyp>tar": {
"decision": "fix",
"madeAt": 1632796604558
},
"1771|@mojaloop/central-services-shared>@mojaloop/event-sdk>grpc>node-pre-gyp>tar": {
"decision": "fix",
"madeAt": 1632796604558
},
"1779|@mojaloop/central-services-shared>@mojaloop/event-sdk>grpc>node-pre-gyp>tar": {
"decision": "fix",
"madeAt": 1632796604558
},
"1780|@mojaloop/central-services-shared>@mojaloop/event-sdk>grpc>node-pre-gyp>tar": {
"decision": "fix",
"madeAt": 1632796604558
},
"1781|@mojaloop/central-services-shared>@mojaloop/event-sdk>grpc>node-pre-gyp>tar": {
"decision": "fix",
"madeAt": 1632796604558
},
"1500|@mojaloop/central-services-shared>widdershins>yargs>yargs-parser": {
"decision": "ignore",
"madeAt": 1611102533934,
"expiresAt": 1613694530151
"madeAt": 1632801898901,
"expiresAt": 1635393892490
},
"1594|@mojaloop/central-services-shared>axios": {
"1675|@mojaloop/central-services-shared>shins>sanitize-html": {
"decision": "ignore",
"madeAt": 1614574676767,
"expiresAt": 1617166666557
"madeAt": 1632801903750,
"expiresAt": 1635393892490
},
"1640|@mojaloop/central-services-health>@mojaloop/central-services-shared>widdershins>urijs": {
"1676|@mojaloop/central-services-shared>shins>sanitize-html": {
"decision": "ignore",
"madeAt": 1614692478982,
"expiresAt": 1617284472145
"madeAt": 1632801903750,
"expiresAt": 1635393892490
}
},
"rules": {},
Expand Down
Loading

0 comments on commit 21d588b

Please sign in to comment.