Skip to content

Commit

Permalink
[jb] preserve indexes between workspace restarts
Browse files Browse the repository at this point in the history
by moving default config and system directories under /workspace
  • Loading branch information
akosyakov committed Feb 11, 2022
1 parent c49b6f7 commit 97a8d30
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .idea/compiler.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions components/ide/jetbrains/image/startup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,13 @@ if [ "${SUPERVISOR_DEBUG_ENABLE+}" = "true" ]; then
JAVA_TOOL_OPTIONS="$JAVA_TOOL_OPTIONS -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:0"
fi

# Set default config and system directories under /workspace to preserve between restarts
export IJ_HOST_CONFIG_BASE_DIR=/workspace/.config/JetBrains
export IJ_HOST_SYSTEM_BASE_DIR=/workspace/.cache/JetBrains

# Enable host status endpoint
export CWM_HOST_STATUS_OVER_HTTP_TOKEN=gitpod

/ide-desktop/backend/bin/remote-dev-server.sh run "$GITPOD_REPO_ROOT"

echo "Desktop IDE startup script exited"

0 comments on commit 97a8d30

Please sign in to comment.