@govuk-pay/cli 0.0.33 → 0.0.35

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.33",
3
+ "version": "0.0.35",
4
4
  "description": "GOV.UK Pay Command Line Interface",
5
5
  "bin": {
6
6
  "pay": "bin/cli.js",
@@ -39,7 +39,7 @@ services:
39
39
  condition: service_healthy
40
40
  {{/if}}
41
41
  healthcheck:
42
- test: ["CMD", "wget", "-O", "/dev/null", "http://{{name}}:{{port}}/healthcheck"]
42
+ test: ["CMD", "wget", "-Y", "off", "-O", "/dev/null", "http://{{name}}:{{port}}/healthcheck"]
43
43
  interval: 10s
44
44
  timeout: 5s
45
45
  retries: 12
@@ -82,7 +82,7 @@ services:
82
82
  - HTTP_PROXY_PORT=8080
83
83
  - HTTPS_PROXY_PORT=8080
84
84
  - HTTP_PROXY_SCHEME=http
85
- - NO_PROXY={{noProxyEnvVar}}
85
+ - NO_PROXY={{../noProxyEnvVar}}
86
86
  {{/if}}
87
87
 
88
88
  {{#if hasSQSQueues}}
@@ -134,7 +134,7 @@ services:
134
134
  condition: service_healthy
135
135
  {{/if}}
136
136
  healthcheck:
137
- test: ["CMD", "wget", "-O", "/dev/null", "http://{{name}}:{{port}}/healthcheck"]
137
+ test: ["CMD", "wget", "-Y", "off", "-O", "/dev/null", "http://{{name}}:{{port}}/healthcheck"]
138
138
  interval: 10s
139
139
  timeout: 5s
140
140
  retries: 12
@@ -225,7 +225,7 @@ services:
225
225
  image: governmentdigitalservice/pay-egress:latest-master
226
226
  container_name: egress
227
227
  volumes:
228
- - "{{defaultServiceConfigsPath}}/egress/squid.conf:/etc/squid/squid.conf"
228
+ - "{{defaultServiceConfigsPath}}/services/egress/squid.conf:/etc/squid/squid.conf"
229
229
  networks:
230
230
  pay_local_mimic_aws_vpc:
231
231
  ipv4_address: 172.18.0.253
@@ -366,15 +366,15 @@ async function printHowToTunnelText(application, environment, dbEngineVersion, d
366
366
  const paySecretsPasswordName = getPaySecretsPasswordName(dbAccessType);
367
367
  printGreen(`\nConnected tunnel to ${application} RDS database in ${environment} on port 65432\n`);
368
368
  printGreen('Copy DB credentials to clipboard (in another window) using pay-low-pass:');
369
- printGreen(` pay-low-pass ${payLowPassDbSecretName} | pbcopy`);
369
+ printGreen(` pay-low-pass ${payLowPassDbSecretName} | pbcopy`);
370
370
  printGreen('Alternatively, fetch credentials from pay secrets:');
371
- printGreen(` pay secrets fetch ${environment} ${application} ${paySecretsPasswordName} | pbcopy`);
371
+ printGreen(` pay secrets fetch ${environment} ${application} ${paySecretsPasswordName} | pbcopy`);
372
372
  printGreen('Open psql with:');
373
- printGreen(` psql -h localhost -p 65432 -U ${dbUser} -d ${application}`);
373
+ printGreen(` psql -h 127.0.0.1 -p 65432 -U ${dbUser} -d ${application}`);
374
374
  printGreen('Alternatively connect using docker instead of needing psql installed locally and set the password automatically using pay-low-pass:');
375
- printGreen(` docker run --rm -ti postgres:${dbEngineVersion}-alpine psql --host docker.for.mac.localhost --port 65432 --user ${dbUser} --dbname ${application}`);
375
+ printGreen(` docker run --rm -ti postgres:${dbEngineVersion}-alpine psql --host docker.for.mac.localhost --port 65432 --user ${dbUser} --dbname ${application}`);
376
376
  printGreen('Or even more conveniently connect using a docker container and set the password automatically using pay-low-pass:');
377
- printGreen(` docker run -e "PGPASSWORD=$(pay-low-pass ${payLowPassDbSecretName})" --rm -ti postgres:${dbEngineVersion}-alpine psql --host docker.for.mac.localhost --port 65432 --user ${dbUser} --dbname ${application}\n`);
377
+ printGreen(` docker run -e "PGPASSWORD=$(pay-low-pass ${payLowPassDbSecretName})" --rm -ti postgres:${dbEngineVersion}-alpine psql --host docker.for.mac.localhost --port 65432 --user ${dbUser} --dbname ${application}\n`);
378
378
  }
379
379
  async function getDbUser(environment, application, dbAccessType) {
380
380
  let paramName;