pinax-network / substreams-sink-websockets

Substreams Sink Websockets
https://substreams-sink-websockets-production.up.railway.app
MIT License
2 stars 1 forks source link

issue when running Docker #16

Closed DenisCarriere closed 1 year ago

DenisCarriere commented 1 year ago
$ docker run -it --rm --env-file .env ghcr.io/pinax-network/substreams-sink-websockets run

WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
Server listening on http://72416cbe4f18:3000
Verifying with PUBLIC_KEY a3cb7366ee8ca77225b4d41772e270e4e831d171d1de71d91707c42e7ba82cc9
Reading SQLITE_FILENAME db.sqlite
 5 | export type KV = {key: string, value: string|number};
 6 | 
 7 | export function createDb(filename: string) {
 8 |     // create folder if does not exists
 9 |     if ( !fs.existsSync(filename) ) {
10 |         fs.mkdirSync(path.parse(filename).dir, {recursive: true});
            ^
ENOENT: No such file or directory
 syscall: "mkdir"
   errno: -2

      at createDb (/home/bun/app/src/sqlite.ts:10:8)
      at /home/bun/app/index.ts:17:11