Hi, I’m trying to run a service container that receives json-rpc requests. but I can’t seem to get to it.
pipeline:
build:
image: ubuntu:xenial
commands:
- apt update && apt install -y curl
- sleep 6
- curl -X POST --data '{"jsonrpc":"2.0","method":"web3_clientVersion","params":[],"id":67}' 127.0.0.1:8545
services:
ganache:
image: trufflesuite/ganache-cli:v6.1.6
I even tried adding ports: [ 8545 ]
to the service and replacing 127.0.0.1
with ganache
and with drone_services_0.drone_default
.
And if I run netstat inside of the commands I get:
[build:L289:21s] Proto Recv-Q Send-Q Local Address Foreign Address State
[build:L290:21s] tcp 0 0 localhost:44383 *:* LISTEN
[build:L291:21s] tcp 0 0 f8ec330a15e5:37422 keeton.canonical.com:80 TIME_WAIT
[build:L292:21s] tcp 0 0 f8ec330a15e5:37438 keeton.canonical.com:80 TIME_WAIT
[build:L293:21s] tcp 0 0 f8ec330a15e5:37420 keeton.canonical.com:80 TIME_WAIT