diff --git a/.dockerignore b/.dockerignore index 389959e..90fe24a 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1,2 +1,5 @@ .git -.idea \ No newline at end of file +.idea +build +node_modules +.github \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index cc31c95..11cd8a8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,14 +1,10 @@ FROM node:18-bullseye-slim -ENV DEBIAN_FRONTEND=noninteractive +WORKDIR /leap-mock -RUN apt-get update && apt-get install -y git +COPY . . -WORKDIR /root/target - -COPY node_modules ./node_modules -COPY build ./build -COPY package.json . +RUN npm run build ENV LOG_LEVEL=debug diff --git a/package.json b/package.json index 2f0a165..2a3d12a 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "leap-mock", "repository": "git+https://github.com/guilledk/leap-mock.git", - "version": "0.1.5", + "version": "0.1.6", "description": "AntelopeIO/leap mocker for advanced indexer testing", "main": "./build/index.js", "type": "module", @@ -10,7 +10,7 @@ "import": "./build/index.js" }, "scripts": { - "bootstrap": "sh -c 'yarn && cd node_modules/@eosrio/hyperion-sequential-reader && npm i && npx tsc'", + "bootstrap": "yarn", "build": "npm run bootstrap && tsc && node scripts/create-dist-packages.mjs", "start": "node build/main.js", "test": "mocha build/tests/**/*.spec.js --timeout 120000", @@ -37,7 +37,7 @@ "ws": "^8.14.2" }, "devDependencies": { - "@eosrio/hyperion-sequential-reader": "https://github.com/eosrio/hyperion-sequential-reader.git#hist_buf_size", + "@eosrio/hyperion-sequential-reader": "1.2.5", "@types/async": "^3.2.16", "@types/chai": "^4.3.11", "@types/lodash": "^4.14.202", diff --git a/yarn.lock b/yarn.lock index 8f8992f..c6959be 100644 --- a/yarn.lock +++ b/yarn.lock @@ -23,9 +23,10 @@ enabled "2.0.x" kuler "^2.0.0" -"@eosrio/hyperion-sequential-reader@https://github.com/eosrio/hyperion-sequential-reader.git#hist_buf_size": +"@eosrio/hyperion-sequential-reader@1.2.5": version "1.2.5" - resolved "https://github.com/eosrio/hyperion-sequential-reader.git#8573e0db7790d66279f640ee41bdbb442cb26236" + resolved "https://registry.yarnpkg.com/@eosrio/hyperion-sequential-reader/-/hyperion-sequential-reader-1.2.5.tgz#71f75fe042eac8b9714e730d68e6c33e3f2ef742" + integrity sha512-PlV6v0LecKRHr/TpvnMMhD3jXTztVfOXnQtYQlwCUsIuwVg6zCKeTNluXYXBsnHMBTzWM2fkZGHf07LjBJ3CbA== dependencies: "@greymass/eosio" "0.6.11" async "^3.2.4"