File tree Expand file tree Collapse file tree 1 file changed +12
-9
lines changed Expand file tree Collapse file tree 1 file changed +12
-9
lines changed Original file line number Diff line number Diff line change @@ -80,26 +80,29 @@ USER root
80
80
RUN mkdir -p /opt/[IDE]
81
81
RUN curl -L \
82
82
"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]
85
87
```
86
88
87
89
Make sure that you replace ` [IDE] ` with the name of the IDE in lowercase and
88
90
provide its
89
91
[ corresponding ` [CODE] ` ] ( https://plugins.jetbrains.com/docs/marketplace/product-codes.html ) .
90
92
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:
92
94
93
95
``` Dockerfile
94
96
# Dockerfile
95
97
FROM ...
96
98
97
99
USER root
98
100
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
105
108
```
You can’t perform that action at this time.
0 commit comments