The repository contains Dockerfile for building Intellij Idea images that will be used for generating project shared indexes
by dump-shared-index project
command.
To build shared indexes you have to provide properties PROJECT_ID
, COMMIT_ID
map source directory and directory with the resuls.
Where:
COMMIT_ID
will be used by Idea to find an appropriate index.PROJECT_ID
should be the unique Id of the project the same that inintellij.yaml
.- Map source folder. Internally there is
IDEA_PROJECT_DIR
which is hardcoded to/var/project
and should be mapped bydocker volumes
- Map folder with the results of generating indexes. Internally is hardcoded to
/shared-index/output
and should be mapped bydocker volumes
- Download image
docker pull damintsew/idea-indexer-2021.3
. - Run image
docker run -v YOUR_PROJECT_DIR:/var/project -v GENERATED_OUTPUD_DIR:/shared-index/output -e COMMIT_ID=<full commit hash> -e PROJECT_ID=<project name>
For example: //todo
INTELLIJ_VERSION=<version>
docker build . --build-arg INTELLIJ_VERSION=${INTELLIJ_VERSION} -t damintsew/idea-indexer-${INTELLIJ_VERSION}
Currently, there are several docker images for different Intellij Idea versions:
Intellij Idea Version. Image tag: damintsew/idea-indexer-${version} | Goland Idea version. Image tag: damintsew/goland-indexer-${version} |
---|---|
2021.3.2 | |
2021.3.1 | 2021.3.1 |
2021.3 | 2021.2.3 |
2021.2.3 | 2021.2.2 |
2021.2.2 | 2021.1.1 |
2021.2.1 |