Skip to content

dockergiant/jetbrains-indexer

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 --rm \
    -v "$(pwd)":/var/project/%yourprojectname% \
    -v "$HOME/indexes-out":/shared-index \
    -e PROJECT_NAME=%yourprojectname% \
    -e INDEXES_CDN_URL=http://localhost:3000 \
    rollupdev/indexer:phpstorm
  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/%yourprojectname%
      consents:
        - kind: project
          decision: allowed
  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 2023.1 of your IDE. Specify the IDE name by using the appropriate tag (e.g rollupdev/indexer:[ide-name]-2023.1.2). 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.

About

Generate & package JetBrains shared indexes with a Docker container.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dockerfile 95.0%
  • Shell 5.0%