Skip to content
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

chore: release #87

Merged
merged 3 commits into from
Apr 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 3 additions & 13 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,9 @@ USER node
ARG APP_HOME=/home/node/srv
WORKDIR $APP_HOME

COPY package.json package.json
COPY package-lock.json package-lock.json

RUN npm ci

COPY --chown=node:node . .

RUN npm ci
RUN npm run build


Expand All @@ -25,15 +21,9 @@ USER node
ARG APP_HOME=/home/node/srv
WORKDIR $APP_HOME

COPY package.json package.json
COPY package-lock.json package-lock.json

COPY --chown=node:node . $APP_HOME
COPY --chown=node:node ./cfg $APP_HOME/cfg
COPY --chown=node:node --from=build $APP_HOME/lib $APP_HOME/lib

EXPOSE 50051

USER root
USER node

CMD [ "npm", "start" ]
CMD [ "node", "./lib/start.cjs" ]
8 changes: 5 additions & 3 deletions cfg/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,6 @@
"flushCacheResponse": {
"messageObject": "io.restorecommerce.commandinterface.CommandResponse"
},

"topics": {
"command": {
"topic": "io.restorecommerce.command",
Expand Down Expand Up @@ -219,7 +218,7 @@
"address": "localhost:50053"
},
"fulfillment": {
"disabled": true,
"disabled": false,
"address": "localhost:50067",
"createOnSubmit": true,
"cleanupPostSubmit": true,
Expand All @@ -231,7 +230,7 @@
}
},
"fulfillment_product": {
"disabled": true,
"disabled": false,
"address": "localhost:50067"
},
"invoice": {
Expand Down Expand Up @@ -275,6 +274,9 @@
"client": {
"acs-srv": {
"address": "localhost:50061"
},
"user": {
"address": "localhost:50051"
}
},
"urns": {
Expand Down
4 changes: 2 additions & 2 deletions cfg/config_production.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,11 @@
"address": "resource-srv:50051"
},
"fulfillment": {
"disabled": true,
"disabled": false,
"address": "fulfillment-srv:50051"
},
"fulfillment_product": {
"disabled": true,
"disabled": false,
"address": "fulfillment-srv:50051"
},
"invoice": {
Expand Down
Loading
Loading