Giter VIP home page Giter VIP logo

jetbrains-indexer's Introduction

jetbrains-indexer

Generate & package JetBrains shared indexes with a Docker container.

Shared indexes are often hosted on a CDN and used by IDEs to speed up loading (indexing) time for JetBrains IDEs (IntelliJ IDEA, PyCharm, GoLand, etc). Blog post: https://coder.com/blog/faster-jetbrains-ides-with-shared-indexes

Basic usage

  1. Generate indexes for your project

    cd your-project/
    
    docker run -it --rm \
        -v "$(pwd)":/var/project \
        -v "$HOME/indexes-out":/shared-index \
        -e INDEXES_CDN_URL=http://localhost:3000/project \
        bencdr/indexer:idea-2021.3
        
    # you may need to fix the file permissions for the generated indexes
    sudo chown -R $(id -u):$(id -g) $HOME/indexes-out
  2. Upload indexes to CDN (or test locally)

    # test with local Python server
    cd $HOME/indexes-out/
    python3 -m http.server 3000

    this URL must be the same as INDEXES_CDN_URL in step 1.

  3. Add intellij.yaml to your project if you don't have one

    sharedIndex:
      project:
        - url: http://localhost:3000/project
  4. Open your IDE and test (use File → Invalidate Caches to load indexes for the first time again)

IDE support

By default, this project indexes version 2021.3 of your IDE. Specify the IDE name by using the appropriate tag (e.g bencdr/indexer:[ide-name]-2021.3). You can verify with DockerHub.

If an IDE/version is not on DockerHub, we recommend you manually pulling and building the image yourself using these build arguments.

Docs and examples

⚠️ Many of these are a work in progress

Troubleshooting

See ./docs/troubleshooting.md


If you just want to generate raw shared indexes with Docker, you can use damintsew/idea-shared-index-dockerfile. This project is based on that.

jetbrains-indexer's People

Contributors

bpmct avatar janisz avatar mortenscheel avatar

Stargazers

Phillipp Glanz avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.