@govuk-pay/cli 0.0.55 → 0.0.57
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 +1 -1
- package/resources/legacy-ruby-cli/README.md +5 -74
- package/resources/legacy-ruby-cli/lib/pay_cli/commands/doctor.rb +0 -85
- package/resources/legacy-ruby-cli/lib/pay_cli/config.rb +1 -23
- package/resources/legacy-ruby-cli/lib/pay_cli/entry_point.rb +4 -21
- package/src/commands/local/subcommands/user.js +15 -2
- package/resources/legacy-ruby-cli/.rspec +0 -1
- package/resources/legacy-ruby-cli/config/generate-secrets.yml +0 -9
- package/resources/legacy-ruby-cli/config/secrets.yml +0 -682
- package/resources/legacy-ruby-cli/config/service_secrets.yml +0 -203
- package/resources/legacy-ruby-cli/lib/pay_cli/aws/services.rb +0 -47
- package/resources/legacy-ruby-cli/lib/pay_cli/commands/aws.rb +0 -29
- package/resources/legacy-ruby-cli/lib/pay_cli/commands/browse.rb +0 -31
- package/resources/legacy-ruby-cli/lib/pay_cli/commands/local/app_client.rb +0 -216
- package/resources/legacy-ruby-cli/lib/pay_cli/commands/local/config.rb +0 -142
- package/resources/legacy-ruby-cli/lib/pay_cli/commands/local/config.yaml +0 -198
- package/resources/legacy-ruby-cli/lib/pay_cli/commands/local/docker.rb +0 -66
- package/resources/legacy-ruby-cli/lib/pay_cli/commands/local/files/all.yaml +0 -847
- package/resources/legacy-ruby-cli/lib/pay_cli/commands/local/files/card.yaml +0 -491
- package/resources/legacy-ruby-cli/lib/pay_cli/commands/local/files/custom.yaml +0 -71
- package/resources/legacy-ruby-cli/lib/pay_cli/commands/local/files/docker-compose.erb +0 -395
- package/resources/legacy-ruby-cli/lib/pay_cli/commands/local/files/end-to-end.erb +0 -30
- package/resources/legacy-ruby-cli/lib/pay_cli/commands/local/files/java.yaml +0 -456
- package/resources/legacy-ruby-cli/lib/pay_cli/commands/local/files/localstack/init-aws.sh +0 -70
- package/resources/legacy-ruby-cli/lib/pay_cli/commands/local/files/naxsi/readme.md +0 -1
- package/resources/legacy-ruby-cli/lib/pay_cli/commands/local/files/postgres/docker-entrypoint-initdb.d/make_payments_databases.sql +0 -26
- package/resources/legacy-ruby-cli/lib/pay_cli/commands/local/files/services/adminusers.env +0 -49
- package/resources/legacy-ruby-cli/lib/pay_cli/commands/local/files/services/cardid.env +0 -2
- package/resources/legacy-ruby-cli/lib/pay_cli/commands/local/files/services/connector.env +0 -70
- package/resources/legacy-ruby-cli/lib/pay_cli/commands/local/files/services/demo-service.env +0 -10
- package/resources/legacy-ruby-cli/lib/pay_cli/commands/local/files/services/egress/squid.conf +0 -47
- package/resources/legacy-ruby-cli/lib/pay_cli/commands/local/files/services/frontend.env +0 -12
- package/resources/legacy-ruby-cli/lib/pay_cli/commands/local/files/services/java_app.env +0 -1
- package/resources/legacy-ruby-cli/lib/pay_cli/commands/local/files/services/ledger.env +0 -7
- package/resources/legacy-ruby-cli/lib/pay_cli/commands/local/files/services/products-ui.env +0 -14
- package/resources/legacy-ruby-cli/lib/pay_cli/commands/local/files/services/products.env +0 -25
- package/resources/legacy-ruby-cli/lib/pay_cli/commands/local/files/services/publicapi.env +0 -13
- package/resources/legacy-ruby-cli/lib/pay_cli/commands/local/files/services/publicauth.env +0 -13
- package/resources/legacy-ruby-cli/lib/pay_cli/commands/local/files/services/selfservice.env +0 -21
- package/resources/legacy-ruby-cli/lib/pay_cli/commands/local/files/services/ssl/certs/frontend-proxy.crt +0 -18
- package/resources/legacy-ruby-cli/lib/pay_cli/commands/local/files/services/ssl/certs/products-ui-proxy.crt +0 -20
- package/resources/legacy-ruby-cli/lib/pay_cli/commands/local/files/services/ssl/certs/publicapi-proxy.crt +0 -18
- package/resources/legacy-ruby-cli/lib/pay_cli/commands/local/files/services/ssl/certs/selfservice-proxy.crt +0 -20
- package/resources/legacy-ruby-cli/lib/pay_cli/commands/local/files/services/ssl/certs/stubs-proxy.crt +0 -18
- package/resources/legacy-ruby-cli/lib/pay_cli/commands/local/files/services/ssl/keys/frontend-proxy.key +0 -28
- package/resources/legacy-ruby-cli/lib/pay_cli/commands/local/files/services/ssl/keys/products-ui-proxy.key +0 -28
- package/resources/legacy-ruby-cli/lib/pay_cli/commands/local/files/services/ssl/keys/publicapi-proxy.key +0 -28
- package/resources/legacy-ruby-cli/lib/pay_cli/commands/local/files/services/ssl/keys/selfservice-proxy.key +0 -28
- package/resources/legacy-ruby-cli/lib/pay_cli/commands/local/files/services/ssl/keys/stubs-proxy.key +0 -28
- package/resources/legacy-ruby-cli/lib/pay_cli/commands/local/files/services/ssl/make-selfsigned.sh +0 -2
- package/resources/legacy-ruby-cli/lib/pay_cli/commands/local/files/services/stubs.env +0 -12
- package/resources/legacy-ruby-cli/lib/pay_cli/commands/local/files/services/toolbox.env +0 -5
- package/resources/legacy-ruby-cli/lib/pay_cli/commands/local/files/services/webhooks.env +0 -9
- package/resources/legacy-ruby-cli/lib/pay_cli/commands/local/files/toolbox.yaml +0 -473
- package/resources/legacy-ruby-cli/lib/pay_cli/commands/local/image_extractor.rb +0 -20
- package/resources/legacy-ruby-cli/lib/pay_cli/commands/local.rb +0 -451
- package/resources/legacy-ruby-cli/lib/pay_cli/commands/secrets.rb +0 -114
- package/resources/legacy-ruby-cli/lib/pay_cli/commands/tunnel/services.yml +0 -49
- package/resources/legacy-ruby-cli/lib/pay_cli/naming.rb +0 -6
- package/resources/legacy-ruby-cli/lib/pay_cli/secrets.rb +0 -281
- package/resources/legacy-ruby-cli/package-lock.json +0 -6
- package/resources/legacy-ruby-cli/rds_access/connect.sh +0 -175
- package/resources/legacy-ruby-cli/spec/.rubocop.yml +0 -2
- package/resources/legacy-ruby-cli/spec/fixtures/dockerfile_examples/Dockerfile.complex +0 -34
- package/resources/legacy-ruby-cli/spec/fixtures/dockerfile_examples/Dockerfile.complex_differing_froms +0 -33
- package/resources/legacy-ruby-cli/spec/fixtures/dockerfile_examples/Dockerfile.no_from +0 -3
- package/resources/legacy-ruby-cli/spec/fixtures/dockerfile_examples/Dockerfile.simple +0 -5
- package/resources/legacy-ruby-cli/spec/fixtures/dockerfile_examples/Dockerfile.simple_no_tag +0 -5
- package/resources/legacy-ruby-cli/spec/fixtures/dockerfile_examples/Dockerfile.with_sha +0 -5
- package/resources/legacy-ruby-cli/spec/fixtures/dockerfile_examples/Dockerfile.with_sha_no_tag +0 -5
- package/resources/legacy-ruby-cli/spec/lib/pay_cli/commands/local/image_extractor_spec.rb +0 -55
- package/resources/legacy-ruby-cli/spec/naming_spec.rb +0 -19
- package/resources/legacy-ruby-cli/spec/spec_helper.rb +0 -106
|
@@ -1,198 +0,0 @@
|
|
|
1
|
-
adminusers:
|
|
2
|
-
name: adminusers
|
|
3
|
-
type: java
|
|
4
|
-
db: true
|
|
5
|
-
db_port: 19700
|
|
6
|
-
port: 9700
|
|
7
|
-
admin_port: 9701
|
|
8
|
-
healthcheck: true
|
|
9
|
-
queues:
|
|
10
|
-
AWS_SQS_CONNECTOR_TASKS_QUEUE_URL: connector_tasks_queue
|
|
11
|
-
clusters:
|
|
12
|
-
- admin
|
|
13
|
-
- paymentlinks
|
|
14
|
-
- card
|
|
15
|
-
- endtoend
|
|
16
|
-
- java
|
|
17
|
-
- toolbox
|
|
18
|
-
connector:
|
|
19
|
-
name: connector
|
|
20
|
-
type: java
|
|
21
|
-
db: true
|
|
22
|
-
db_port: 19300
|
|
23
|
-
port: 9300
|
|
24
|
-
admin_port: 9301
|
|
25
|
-
healthcheck: true
|
|
26
|
-
can_use_egress_proxy: true
|
|
27
|
-
queues:
|
|
28
|
-
AWS_SQS_CAPTURE_QUEUE_URL: pay_capture_queue
|
|
29
|
-
AWS_SQS_PAYMENT_EVENT_QUEUE_URL: pay_event_queue
|
|
30
|
-
AWS_SQS_PAYOUT_RECONCILE_QUEUE_URL: payout_reconcile_queue
|
|
31
|
-
AWS_SQS_CONNECTOR_TASKS_QUEUE_URL: connector_tasks_queue
|
|
32
|
-
clusters:
|
|
33
|
-
- admin
|
|
34
|
-
- paymentlinks
|
|
35
|
-
- card
|
|
36
|
-
- endtoend
|
|
37
|
-
- java
|
|
38
|
-
- toolbox
|
|
39
|
-
cardid:
|
|
40
|
-
name: cardid
|
|
41
|
-
type: java
|
|
42
|
-
port: 9900
|
|
43
|
-
admin_port: 9901
|
|
44
|
-
healthcheck: true
|
|
45
|
-
clusters:
|
|
46
|
-
- paymentlinks
|
|
47
|
-
- card
|
|
48
|
-
- endtoend
|
|
49
|
-
- java
|
|
50
|
-
publicauth:
|
|
51
|
-
name: publicauth
|
|
52
|
-
type: java
|
|
53
|
-
db: true
|
|
54
|
-
db_port: 19600
|
|
55
|
-
port: 9600
|
|
56
|
-
admin_port: 9601
|
|
57
|
-
healthcheck: true
|
|
58
|
-
clusters:
|
|
59
|
-
- admin
|
|
60
|
-
- paymentlinks
|
|
61
|
-
- card
|
|
62
|
-
- endtoend
|
|
63
|
-
- java
|
|
64
|
-
- toolbox
|
|
65
|
-
publicapi:
|
|
66
|
-
name: publicapi
|
|
67
|
-
type: java
|
|
68
|
-
proxy: true
|
|
69
|
-
naxsi: true
|
|
70
|
-
port: 9100
|
|
71
|
-
admin_port: 9101
|
|
72
|
-
proxy_port: 39100
|
|
73
|
-
healthcheck: true
|
|
74
|
-
uses_redis: true
|
|
75
|
-
environment_overrides:
|
|
76
|
-
REDIS_URL: "redis"
|
|
77
|
-
clusters:
|
|
78
|
-
- paymentlinks
|
|
79
|
-
- card
|
|
80
|
-
- endtoend
|
|
81
|
-
- java
|
|
82
|
-
products:
|
|
83
|
-
name: products
|
|
84
|
-
type: java
|
|
85
|
-
db: true
|
|
86
|
-
db_port: 19800
|
|
87
|
-
port: 18000
|
|
88
|
-
admin_port: 18001
|
|
89
|
-
healthcheck: true
|
|
90
|
-
clusters:
|
|
91
|
-
- admin
|
|
92
|
-
- paymentlinks
|
|
93
|
-
- endtoend
|
|
94
|
-
- java
|
|
95
|
-
- toolbox
|
|
96
|
-
frontend:
|
|
97
|
-
name: frontend
|
|
98
|
-
proxy: true
|
|
99
|
-
naxsi: true
|
|
100
|
-
type: node
|
|
101
|
-
db: false
|
|
102
|
-
port: 9000
|
|
103
|
-
debug_port: 9001
|
|
104
|
-
proxy_port: 29000
|
|
105
|
-
healthcheck: true
|
|
106
|
-
can_use_egress_proxy: true
|
|
107
|
-
clusters:
|
|
108
|
-
- paymentlinks
|
|
109
|
-
- card
|
|
110
|
-
- endtoend
|
|
111
|
-
selfservice:
|
|
112
|
-
proxy: true
|
|
113
|
-
naxsi: true
|
|
114
|
-
name: selfservice
|
|
115
|
-
type: node
|
|
116
|
-
db: false
|
|
117
|
-
port: 9400
|
|
118
|
-
debug_port: 9401
|
|
119
|
-
healthcheck: true
|
|
120
|
-
proxy_port: 39000
|
|
121
|
-
clusters:
|
|
122
|
-
- admin
|
|
123
|
-
- endtoend
|
|
124
|
-
- webhooks
|
|
125
|
-
- toolbox
|
|
126
|
-
products-ui:
|
|
127
|
-
name: products-ui
|
|
128
|
-
proxy: true
|
|
129
|
-
type: node
|
|
130
|
-
db: false
|
|
131
|
-
port: 10400
|
|
132
|
-
debug_port: 10401
|
|
133
|
-
proxy_port: 19000
|
|
134
|
-
healthcheck: true
|
|
135
|
-
clusters:
|
|
136
|
-
- paymentlinks
|
|
137
|
-
- endtoend
|
|
138
|
-
stubs:
|
|
139
|
-
name: stubs
|
|
140
|
-
proxy: true
|
|
141
|
-
type: node
|
|
142
|
-
db: false
|
|
143
|
-
port: 3030
|
|
144
|
-
debug_port: 3031
|
|
145
|
-
proxy_port: 29100
|
|
146
|
-
healthcheck: false
|
|
147
|
-
clusters:
|
|
148
|
-
- endtoend
|
|
149
|
-
ledger:
|
|
150
|
-
name: ledger
|
|
151
|
-
type: java
|
|
152
|
-
db: true
|
|
153
|
-
db_port: 20700
|
|
154
|
-
port: 10700
|
|
155
|
-
admin_port: 10701
|
|
156
|
-
healthcheck: true
|
|
157
|
-
queues:
|
|
158
|
-
AWS_SQS_PAYMENT_EVENT_QUEUE_URL: pay_event_queue
|
|
159
|
-
sns_topics:
|
|
160
|
-
SNS_TOPIC_CARD_PAYMENT_EVENTS: card-payment-events-topic
|
|
161
|
-
SNS_TOPIC_CARD_PAYMENT_DISPUTE_EVENTS: card-payment-dispute-events-topic
|
|
162
|
-
environment_overrides:
|
|
163
|
-
SNS_ENABLED: "true"
|
|
164
|
-
PUBLISH_CARD_PAYMENT_EVENTS_TO_SNS: "true"
|
|
165
|
-
PUBLISH_CARD_PAYMENT_DISPUTE_EVENTS_TO_SNS: "true"
|
|
166
|
-
clusters:
|
|
167
|
-
- admin
|
|
168
|
-
- card
|
|
169
|
-
- endtoend
|
|
170
|
-
- java
|
|
171
|
-
- toolbox
|
|
172
|
-
toolbox:
|
|
173
|
-
name: toolbox
|
|
174
|
-
type: node
|
|
175
|
-
db: false
|
|
176
|
-
port: 3040
|
|
177
|
-
debug_port: 3041
|
|
178
|
-
healthcheck: true
|
|
179
|
-
entrypoint_override_local: 'sh -c "npm run build:copy && npm --inspect=0.0.0.0:3041 start"'
|
|
180
|
-
clusters:
|
|
181
|
-
- toolbox
|
|
182
|
-
webhooks:
|
|
183
|
-
name: webhooks
|
|
184
|
-
type: java
|
|
185
|
-
db: true
|
|
186
|
-
db_port: 20800
|
|
187
|
-
port: 10800
|
|
188
|
-
admin_port: 10801
|
|
189
|
-
healthcheck: true
|
|
190
|
-
queues:
|
|
191
|
-
AWS_SQS_PAYMENT_EVENT_QUEUE_URL: webhooks-events-subscriber-queue
|
|
192
|
-
clusters:
|
|
193
|
-
- admin
|
|
194
|
-
- card
|
|
195
|
-
- endtoend
|
|
196
|
-
- java
|
|
197
|
-
- toolbox
|
|
198
|
-
- webhooks
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
module PayCLI::Commands::Local::Docker
|
|
2
|
-
def self.remove(app, force=true)
|
|
3
|
-
`docker rm #{'-f' if force} -v #{app} 2>/dev/null`
|
|
4
|
-
STDERR.puts " 💀 #{app}"
|
|
5
|
-
end
|
|
6
|
-
|
|
7
|
-
def self.cleanup_old_network
|
|
8
|
-
if `docker network ls --format json --filter 'name=files_default' | wc -l`.chomp.strip != "0"
|
|
9
|
-
STDERR.puts "Cleaning up old docker network 'files_default'"
|
|
10
|
-
STDERR.puts `docker network rm files_default`
|
|
11
|
-
end
|
|
12
|
-
end
|
|
13
|
-
|
|
14
|
-
def self.remove_network
|
|
15
|
-
cleanup_old_network
|
|
16
|
-
|
|
17
|
-
STDERR.print " 💀 network -- "
|
|
18
|
-
|
|
19
|
-
if `docker network ls --format json --filter 'name=pay_local_mimic_aws_vpc' | wc -l`.chomp.strip == "0"
|
|
20
|
-
STDERR.puts "No networks to remove"
|
|
21
|
-
return
|
|
22
|
-
end
|
|
23
|
-
|
|
24
|
-
STDERR.puts `docker network rm pay_local_mimic_aws_vpc 2>/dev/null`
|
|
25
|
-
end
|
|
26
|
-
|
|
27
|
-
def self.restart(cluster, app_name)
|
|
28
|
-
STDERR.puts "😅 restarting #{app_name}"
|
|
29
|
-
|
|
30
|
-
puts `docker compose -f #{compose_file cluster} restart #{app_name}`
|
|
31
|
-
end
|
|
32
|
-
|
|
33
|
-
def self.compose_file_exists_for_cluster?(cluster)
|
|
34
|
-
File.file?(compose_file cluster)
|
|
35
|
-
end
|
|
36
|
-
|
|
37
|
-
def self.write_compose_file(cluster, binding)
|
|
38
|
-
compose_file = compose_file cluster
|
|
39
|
-
|
|
40
|
-
erb = ERB.new(File.read(File.join(
|
|
41
|
-
File.dirname(__FILE__),
|
|
42
|
-
'files',
|
|
43
|
-
'docker-compose.erb')), trim_mode: '-')
|
|
44
|
-
|
|
45
|
-
File.write(compose_file, erb.result(binding))
|
|
46
|
-
end
|
|
47
|
-
|
|
48
|
-
def self.pull(cluster)
|
|
49
|
-
`docker compose -f #{compose_file cluster} pull`
|
|
50
|
-
end
|
|
51
|
-
|
|
52
|
-
def self.up(cluster)
|
|
53
|
-
`docker compose -f #{compose_file cluster} up --detach`
|
|
54
|
-
end
|
|
55
|
-
|
|
56
|
-
def self.down(cluster)
|
|
57
|
-
`docker compose -f #{compose_file cluster} down`
|
|
58
|
-
end
|
|
59
|
-
|
|
60
|
-
def self.compose_file(cluster)
|
|
61
|
-
File.join(
|
|
62
|
-
File.dirname(__FILE__),
|
|
63
|
-
'files',
|
|
64
|
-
"#{cluster}.yaml")
|
|
65
|
-
end
|
|
66
|
-
end
|