@govuk-pay/cli 0.0.122 → 0.0.123

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@govuk-pay/cli",
3
- "version": "0.0.122",
3
+ "version": "0.0.123",
4
4
  "description": "GOV.UK Pay Command Line Interface",
5
5
  "bin": {
6
6
  "pay": "bin/cli.js",
@@ -124,7 +124,13 @@ services:
124
124
  {{#each nodeApps}}
125
125
  {{name}}:
126
126
  {{#if localBuild}}
127
- build: "$WORKSPACE/pay-{{name}}"
127
+ build:
128
+ context: "$WORKSPACE/pay-{{name}}"
129
+ {{#if ../mountLocalNodeApps}}
130
+ target: base
131
+ {{else}}
132
+ target: final
133
+ {{/if}}
128
134
  {{else}}
129
135
  image: governmentdigitalservice/pay-{{name}}:{{imageTag}}
130
136
  {{/if}}
@@ -164,6 +170,9 @@ services:
164
170
  - RUN_APP=true
165
171
  - DISABLE_INTERNAL_HTTPS=true
166
172
  - PORT={{port}}
173
+ {{#unless ../mountLocalNodeApps}}
174
+ - NODE_OPTIONS=--inspect=0.0.0.0:{{debugPort}}
175
+ {{/unless}}
167
176
  {{#if useEgressProxy}}
168
177
  - http_proxy=http://egress:8080
169
178
  - HTTP_PROXY=http://egress:8080
@@ -186,13 +195,17 @@ services:
186
195
  {{/each}}
187
196
  mem_limit: 1G
188
197
  working_dir: '/app'
189
- {{#ifBoth localBuild entrypointOverrideLocal}}
190
- entrypoint: {{{../entrypointOverrideLocal}}}
191
- {{else}}
192
- {{#unless ../isBundled}}
193
- entrypoint: "npx nodemon --inspect=0.0.0.0:{{../debugPort}}"
194
- {{/unless}}
195
- {{/ifBoth}}
198
+ {{#if localBuild}}
199
+ {{#if ../mountLocalNodeApps}}
200
+ {{#if entrypointOverrideLocal}}
201
+ entrypoint: {{{entrypointOverrideLocal}}}
202
+ {{else}}
203
+ {{#unless isBundled}}
204
+ entrypoint: "npx nodemon --inspect=0.0.0.0:{{debugPort}}"
205
+ {{/unless}}
206
+ {{/if}}
207
+ {{/if}}
208
+ {{/if}}
196
209
  ports:
197
210
  - "{{port}}:{{port}}"
198
211
  {{#if debugPort}}