@@ -21,63 +21,7 @@ function defaultContainers(): ContainerConfig[] {
2121 volumes : [ 'tests/api/event-replay/.tmp/local/:/root/' ] ,
2222 } ;
2323
24- const bitcoind : ContainerConfig = {
25- image : 'blockstack/bitcoind:v0.20.99.0' ,
26- name : `stacks-api-test-bitcoind` ,
27- ports : [
28- { host : 18443 , container : 18443 } ,
29- { host : 18444 , container : 18444 } ,
30- ] ,
31- waitPort : 18443 ,
32- command : [
33- '/usr/local/bin/bitcoind' ,
34- '-printtoconsole' ,
35- '-regtest=1' ,
36- '-txindex=1' ,
37- '-rpcallowip=0.0.0.0/0' ,
38- '-rpcbind=0.0.0.0' ,
39- '-rpcuser=btc' ,
40- '-rpcpassword=btc' ,
41- ] ,
42- } ;
43-
44- const bitcoindFillFaucet : ContainerConfig = {
45- image : 'byrnedo/alpine-curl' ,
46- name : `stacks-api-test-bitcoind-fill-faucet` ,
47- ports : [ ] ,
48- waitForReady : false ,
49- restartPolicy : 'on-failure' ,
50- command : [
51- '-f' ,
52- '-u' ,
53- 'btc:btc' ,
54- '--data-binary' ,
55- '{"jsonrpc": "1.0", "id":"c", "method": "generatetoaddress", "params": [110, "mrzLDS7LT3otAnpiRWGYkWipdnAZJaXAZQ"] }' ,
56- '-H' ,
57- 'content-type: text/plain;' ,
58- 'http://host.docker.internal:18443/' ,
59- ] ,
60- extraHosts : [ 'host.docker.internal:host-gateway' ] ,
61- } ;
62-
63- const stacksBlockchain : ContainerConfig = {
64- image : 'hirosystems/stacks-api-e2e:stacks3.0-0a2c0e2' ,
65- name : `stacks-api-test-stacks-blockchain` ,
66- ports : [
67- { host : 20443 , container : 20443 } ,
68- { host : 20444 , container : 20444 } ,
69- ] ,
70- waitPort : 20443 ,
71- env : [
72- 'STACKS_EVENT_OBSERVER=host.docker.internal:3700' ,
73- 'BLOCKSTACK_USE_TEST_GENESIS_CHAINSTATE=1' ,
74- 'NOP_BLOCKSTACK_DEBUG=1' ,
75- ] ,
76- extraHosts : [ 'host.docker.internal:host-gateway' ] ,
77- restartPolicy : 'on-failure' ,
78- } ;
79-
80- return [ postgres , bitcoind , bitcoindFillFaucet , stacksBlockchain ] ;
24+ return [ postgres ] ;
8125}
8226
8327export async function globalSetup ( ) {
0 commit comments