@@ -12,7 +12,8 @@ be used.
12
12
> Using additional JetBrains IDEs consume additional workspace compute resources
13
13
> so ensure the workspace compute resources settings are large enough.
14
14
15
- ![ Multiple IntelliJ icons in a workspace] ( ../assets/workspaces/multi-intellij-icons-smaller.png )
15
+ ![ Multiple IntelliJ icons in a
16
+ workspace] ( ../assets/workspaces/multi-intellij-icons-smaller.png )
16
17
17
18
1 . Build a custom image that installs the primary JetBrains IDE, copies the
18
19
configure script, .profile script, and the config.yaml file into the image.
@@ -24,7 +25,8 @@ be used.
24
25
25
26
# Install IntelliJ IDEA Ultimate
26
27
RUN mkdir -p /opt/idea
27
- RUN curl -L "https://download.jetbrains.com/product?code=IU&latest&distribution=linux" \
28
+ RUN curl -L \
29
+ "https://download.jetbrains.com/product?code=IU&latest&distribution=linux" \
28
30
| tar -C /opt/idea --strip-components 1 -xzvf -
29
31
30
32
# Create a symbolic link in PATH that points to the Intellij startup script.
@@ -52,10 +54,10 @@ be used.
52
54
export PATH=$PATH:$HOME/.local/bin
53
55
```
54
56
55
- 1. The configure script installs the Projector CLI into `/home/coder` and uses the CLI to
56
- install additional JetBrains IDEs. Each IDE configuration has a different
57
- directory in `/home/coder/.projector/configs`. In this example, the configure
58
- script in the directory that has the image Dockerfile.
57
+ 1. The configure script installs the Projector CLI into `/home/coder` and uses
58
+ the CLI to install additional JetBrains IDEs. Each IDE configuration has a
59
+ different directory in `/home/coder/.projector/configs`. In this example, the
60
+ configure script in the directory that has the image Dockerfile.
59
61
60
62
> Note that each additional IDE needs a different port number
61
63
@@ -73,11 +75,17 @@ be used.
73
75
PROJECTOR_CONFIG_PATH=$HOME/.projector/configs/IntelliJ_2
74
76
75
77
if [ -d $PROJECTOR_CONFIG_PATH ]; then
76
- echo 'projector has already been configured and IntelliJ IDE downloaded - skip step'
78
+ echo 'projector has already been configured - skip step'
77
79
else
78
- $HOME/.local/bin/projector ide autoinstall --config-name IntelliJ_2 --ide-name "IntelliJ IDEA Ultimate 2021.3.2" --port 8997 --use-separate-config
79
- $HOME/.local/bin/projector ide autoinstall --config-name IntelliJ_3 --ide-name "IntelliJ IDEA Ultimate 2021.3.2" --port 8998 --use-separate-config
80
- $HOME/.local/bin/projector ide autoinstall --config-name IntelliJ_4 --ide-name "IntelliJ IDEA Ultimate 2021.3.2" --port 8999 --use-separate-config
80
+ $HOME/.local/bin/projector ide autoinstall --config-name IntelliJ_2 \
81
+ --ide-name "IntelliJ IDEA Ultimate 2021.3.2" --port 8997 \
82
+ --use-separate-config
83
+ $HOME/.local/bin/projector ide autoinstall --config-name IntelliJ_3 \
84
+ --ide-name "IntelliJ IDEA Ultimate 2021.3.2" --port 8998 \
85
+ --use-separate-config
86
+ $HOME/.local/bin/projector ide autoinstall --config-name IntelliJ_4 \
87
+ --ide-name "IntelliJ IDEA Ultimate 2021.3.2" --port 8999 \
88
+ --use-separate-config
81
89
fi
82
90
```
83
91
0 commit comments