Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nowinkeyy committed Nov 27, 2024
1 parent 7ec7a22 commit 4ca8077
Show file tree
Hide file tree
Showing 13 changed files with 63 additions and 11 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
50 changes: 50 additions & 0 deletions docs/5.0/docs/user-guide/devbox/use-jetbrains-ide.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# Develop with JetBrains IDE

> This guide describes how to use IntelliJ IDEA in the JetBrains IDE to develop a Java-based Devbox.
## Prerequisites

1. Download the [JetBrains Gateway](https://www.jetbrains.com/remote-development/gateway/) application.

2. Start a Devbox project.

3. Download the private key of the Devbox project to your local computer. View the SSH configuration in the Devbox project detail (Username: devbox, Host: hzh.sealos.run, Port: 30566).

![use-jb-ide-2](./images/use-jb-ide-2.png)

## Get Started

1. Open Devbox, select JetBrains IDE and click on it.

![use-jb-ide-3](./images/use-jb-ide-3.png)

2. Automatically invoke the local JetBrains Gateway and click `New Connection`.

![use-jb-ide-4](./images/use-jb-ide-4.png)

3. Open JetBrains Gateway, fill in Username, Host and Port, check Specify private key, and select the path to the private key. Click `Check Connection and Continue` to test the SSH connection.

![use-jb-ide-5](./images/use-jb-ide-5.png)

4. Select `IntelliJ IDEA 2024.3.1 Preview` for the IDE version and `/home/devbox/project` for the project path. Click Download IDE and Connect to download the IDE and connect.

![use-jb-ide-6](./images/use-jb-ide-6.png)

You need to wait for the IDE to download.

![use-jb-ide-7](./images/use-jb-ide-7.png)

5. Automatically invoke the local IntelliJ IDEA, select English as the language, open the project file, and click the green arrow to run the Java service.

![use-jb-ide-8](./images/use-jb-ide-8.png)

![use-jb-ide-9](./images/use-jb-ide-9.png)

6. Open the detail of the Devbox project and click the public address to access the Java service.

![use-jb-ide-10](./images/use-jb-ide-10.png)

7. Successfully accessed the Java service.

![use-jb-ide-11](./images/use-jb-ide-11.png)

24 changes: 13 additions & 11 deletions docs/5.0/i18n/zh-Hans/user-guide/devbox/use-jetbrains-ide.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,47 +2,49 @@

> 本指南介绍如何使用 JetBrains IDE 中的 IntelliJ IDEA 来开发基础环境为 Java 的 Devbox。
需要提前下载好 [JetBrains Gateway](https://www.jetbrains.com/remote-development/gateway/) 应用。
## 前置准备

1. 打开 Devbox,点击新建项目,运行环境选择 Java,其他配置默认,点击创建
1. 需要提前下载好 [JetBrains Gateway](https://www.jetbrains.com/remote-development/gateway/) 应用

![use-jb-ide-1](./images/use-jb-ide-1.png)
2. 启动一个 Devbox 项目。

2. 打开 Devbox,点击项目的详情,查看 SSH 配置(Username:devbox,Host:hzh.sealos.run,Port:47888),下载私钥到本地
3. 下载 Devbox 项目的私钥到本地。查看 Devbox 项目详情中的 SSH 配置(Username:devbox,Host:hzh.sealos.run,Port:30566)

![use-jb-ide-2](./images/use-jb-ide-2.png)

3. 打开 Devbox,选择 JetBrains IDE 并点击。
## 开始使用

1. 打开 Devbox,选择 JetBrains IDE 并点击。

![use-jb-ide-3](./images/use-jb-ide-3.png)

4. 自动唤起本地的 JetBrains Gateway,点击 `New Connection`
2. 自动唤起本地的 JetBrains Gateway,点击 `New Connection`

![use-jb-ide-4](./images/use-jb-ide-4.png)

5. 打开 JetBrains Gateway,填写 Username、Host 和 Port,勾选 Specify private key,选择私钥的所在路径。点击 `Check Connection and Continue`,即可测试 SSH 连接。
3. 打开 JetBrains Gateway,填写 Username、Host 和 Port,勾选 Specify private key,选择私钥的所在路径。点击 `Check Connection and Continue`,即可测试 SSH 连接。

![use-jb-ide-5](./images/use-jb-ide-5.png)

6. IDE 版本选择 `IntelliJ IDEA 2024.3.1 Preview`,项目路径选择 `/home/devbox/project`。点击 Download IDE and Connect,即可下载 IDE 和连接。
4. IDE 版本选择 `IntelliJ IDEA 2024.3.1 Preview`(因为 Devbox 的运行环境是 Java,所以选择 IDEA,根据具体的语言选择不同 IDE),项目路径选择 `/home/devbox/project`。点击 Download IDE and Connect,即可下载 IDE 和连接。

![use-jb-ide-6](./images/use-jb-ide-6.png)

需要等待 IDE 下载完毕。

![use-jb-ide-7](./images/use-jb-ide-7.png)

7. 自动唤起本地的 IntelliJ IDEA,语言选择 Chinese 简体中文,打开项目文件,点击绿箭头来运行 Java 服务。
5. 自动唤起本地的 IntelliJ IDEA,语言选择 Chinese 简体中文,打开项目文件,点击绿箭头来运行 Java 服务。

![use-jb-ide-8](./images/use-jb-ide-8.png)

![use-jb-ide-9](./images/use-jb-ide-9.png)

8. 打开 Devbox 项目的详情,点击公网地址,即可跳转访问 Java 服务。
6. 打开 Devbox 项目的详情,点击公网地址,即可跳转访问 Java 服务。

![use-jb-ide-10](./images/use-jb-ide-10.png)

9. 成功访问 Java 服务。
7. 成功访问 Java 服务。

![use-jb-ide-11](./images/use-jb-ide-11.png)

0 comments on commit 4ca8077

Please sign in to comment.