generated from mojaloop/typescript-svc-template
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: fix publish job and update packages (#145)
* chore: fix publish job * chore: update ci and bump packages * chore: test-bdd * chore: comments * chore: fixes * chore: bdd * chore(snapshot): 14.0.2-snapshot.0 * chore: move * chore(snapshot): 14.0.2-snapshot.1
- Loading branch information
Showing
8 changed files
with
3,624 additions
and
2,597 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
module.exports = { | ||
reject: [ | ||
// Upgrading past husky@4 to involves a full config migration with no current and apparent benefit. | ||
// So we are just sticking to husky@4.x.x for the time being. | ||
'husky', | ||
// Caution advised in upgrading redis-mock past 0.52.0. Investigation needed. | ||
'redis-mock', | ||
// Upgrading past redis@3 to the next major version introduces a lot of breaking changes. | ||
'redis', | ||
'@types/redis', | ||
// Upgrading past jest|ts-jest|@types/jest@26 introduces a lot of breaking changes to current tests. | ||
'jest', | ||
'ts-jest', | ||
'@types/jest', | ||
// Upgrading past commander@7 introduces a lot of breaking changes. | ||
'commander' | ||
] | ||
} |
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,32 +1,33 @@ | ||
FROM node:16.15.0-alpine as builder | ||
USER root | ||
WORKDIR /opt/thirdparty-sdk | ||
|
||
WORKDIR /opt/app | ||
|
||
RUN apk update \ | ||
&& apk add --no-cache -t build-dependencies git make gcc g++ python3 libtool autoconf automake openssh \ | ||
&& cd $(npm root -g)/npm \ | ||
&& npm config set unsafe-perm true \ | ||
&& npm install -g node-gyp | ||
|
||
COPY package.json package-lock.json* ./ | ||
COPY package.json package-lock.json* /opt/app/ | ||
RUN npm ci | ||
|
||
COPY ./ ./ | ||
COPY ./ /opt/app/ | ||
RUN npm run build | ||
RUN rm -rf src secrets test docs | ||
RUN npm prune --production | ||
|
||
|
||
FROM node:16.15.0-alpine | ||
WORKDIR /opt/thirdparty-sdk | ||
WORKDIR /opt/app/ | ||
|
||
# Create empty log file & link stdout to the application log file | ||
RUN mkdir ./logs && touch ./logs/combined.log | ||
RUN ln -sf /dev/stdout ./logs/combined.log | ||
|
||
# Create a non-root user: ml-user | ||
RUN adduser -D ml-user | ||
USER ml-user | ||
COPY --chown=ml-user --from=builder /opt/thirdparty-sdk ./ | ||
# Create a non-root user: app-user | ||
RUN adduser -D app-user | ||
USER app-user | ||
COPY --chown=app-user --from=builder /opt/app/ ./ | ||
|
||
EXPOSE 4005 4006 |
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.