Skip to content

Commit 7514374

Browse files
authored
fix: custom JetBrains image (coder#811)
1 parent 1fbedbc commit 7514374

File tree

1 file changed

+12
-9
lines changed

1 file changed

+12
-9
lines changed

images/writing.md

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -80,26 +80,29 @@ USER root
8080
RUN mkdir -p /opt/[IDE]
8181
RUN curl -L \
8282
"https://download.jetbrains.com/product?code=[CODE]&latest&distribution=linux" \
83-
| tar -C /opt/[IDE] --strip-components 1 -xzvf
84-
RUN ln -s /opt/[IDE]/bin/clion.sh /usr/bin/[IDE]
83+
| tar -C /opt/[IDE] --strip-components 1 -xzvf -
84+
85+
# Add a binary to the PATH that points to the IDE startup script.
86+
RUN ln -s /opt/[IDE]/bin/idea.sh /usr/bin/[IDE]
8587
```
8688

8789
Make sure that you replace `[IDE]` with the name of the IDE in lowercase and
8890
provide its
8991
[corresponding `[CODE]`](https://plugins.jetbrains.com/docs/marketplace/product-codes.html).
9092

91-
More specifically, here's how to install the CLion IDE onto your image:
93+
More specifically, here's how to install the IntelliJ IDE onto your image:
9294

9395
```Dockerfile
9496
# Dockerfile
9597
FROM ...
9698

9799
USER root
98100

99-
# Install CLion
100-
RUN mkdir -p /opt/clion
101-
RUN curl -L \
102-
"https://download.jetbrains.com/product?code=CL&latest&distribution=linux" \
103-
| tar -C /opt/clion --strip-components 1 -xzvf
104-
RUN ln -s /opt/clion/bin/clion.sh /usr/bin/clion
101+
# Install intellij
102+
RUN mkdir -p /opt/idea
103+
RUN curl -L "https://download.jetbrains.com/product?code=IIC&latest&distribution=linux" \
104+
| tar -C /opt/idea --strip-components 1 -xzvf -
105+
106+
# Add a binary to the PATH that points to the Intellij startup script.
107+
RUN ln -s /opt/idea/bin/idea.sh /usr/bin/intellij-idea-community
105108
```

0 commit comments

Comments
 (0)