Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

indexer-cli install is very large: neon builds in debug mode #222

Closed
aasseman opened this issue Apr 2, 2021 · 0 comments · Fixed by #414
Closed

indexer-cli install is very large: neon builds in debug mode #222

aasseman opened this issue Apr 2, 2021 · 0 comments · Fixed by #414
Labels
enhancement New feature or request indexer-cli

Comments

@aasseman
Copy link
Contributor

aasseman commented Apr 2, 2021

Starting from a clean environment, installing graph-cli and indexer-cli takes ~1.2GB.

Tested with a simple Dockerfile:

FROM node:12 as build

RUN apt-get update && apt-get install -y build-essential

# Install Rust
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs > /tmp/rustup.sh && sh /tmp/rustup.sh -y
ENV PATH="/root/.cargo/bin:${PATH}"

ENV HOME=/root
WORKDIR ${HOME}

ENV NODE_ENV=production

# Set install path for NPM
ENV PATH="${HOME}/.npm-global/bin:$PATH"
RUN npm config set prefix "${HOME}/.npm-global"

# Build and install
RUN npm i -g @graphprotocol/indexer-cli@0.11.0 @graphprotocol/graph-cli@0.11.0 --registry https://registry.npmjs.org/ --unsafe-perm=true

Then I get:

root@1a5c123f628e:~/.npm-global/lib/node_modules/@graphprotocol# du -sh *
243M    graph-cli
994M    indexer-cli

root@1a5c123f628e:~/.npm-global/lib/node_modules/@graphprotocol/indexer-cli/node_modules/@graphprotocol/cost-model/native/target# du -sh *
4.0K    CACHEDIR.TAG
539M    debug*

The presence of the debug/ directory seems to indicate that neon built in debug mode, which probably explains the size.

@fordN fordN added enhancement New feature or request indexer-cli labels Apr 27, 2021
@fordN fordN added this to Indexer Mar 10, 2022
@fordN fordN moved this to Requests in Indexer Mar 10, 2022
@fordN fordN moved this from Feature Requests to Bug reports in Indexer Mar 10, 2022
Repository owner moved this from 🐛 Bug reports to ❌ Closed in Indexer Apr 28, 2022
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
enhancement New feature or request indexer-cli
Projects
Status: Closed
Development

Successfully merging a pull request may close this issue.

2 participants