-
Notifications
You must be signed in to change notification settings - Fork 158
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Support JetBrains Fleet as an alternative IDE for dev environments #…
…821 (POC)
- Loading branch information
1 parent
b3269fb
commit 1f5dc6a
Showing
3 changed files
with
27 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
src/dstack/_internal/server/services/jobs/configurators/extensions/fleet.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
from typing import List | ||
|
||
|
||
class JetBrainsFleet: | ||
def __init__(self, run_name: str): | ||
self.run_name = run_name | ||
|
||
def get_install_commands(self) -> List[str]: | ||
commands = [ | ||
f'if [ $(uname -m) = "aarch64" ]; then arch="aarch64"; else arch="x64"; fi', | ||
'wget -q --show-progress -O fleet "https://download.jetbrains.com/product?code=FLL&release.type=preview&release.type=eap&platform=linux_$arch" && chmod +x fleet', | ||
f"./fleet launch workspace -- --auth=accept-everyone --publish --workspaceName {self.run_name} --projectDir /workflow", | ||
] | ||
return commands | ||
|
||
def get_print_readme_commands(self) -> List[str]: | ||
return [] |