Update data spell (#146)

* fix: dev URL path

* chore: update dataSpell install & add apt update

* chore: update websockify syntax

* resolve: conflict

* fix: formatting
This commit is contained in:
Eric Paulsen 2022-04-29 14:12:39 -04:00 committed by GitHub
parent c9c53b2977
commit 596dd1c3ff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 28 additions and 20 deletions

View File

@ -4,9 +4,10 @@
## Description
Wraps [enterprise-java](../java/README.md) with the Android SDK and Studio installations.
Wraps [enterprise-java](../java/README.md) with the Android SDK and Studio
installations.
## How To Use It
This image is ready for direct use within Coder. Workspaces created
from this image will be able to use Android Studio to build and launch Android apps.
This image is ready for direct use within Coder. Workspaces created from this
image will be able to use Android Studio to build and launch Android apps.

View File

@ -5,7 +5,7 @@ USER root
# Install DataSpell.
RUN mkdir -p /opt/dataspell
RUN curl -L "https://download.jetbrains.com/python/jetbrains-data-spell-213.2094.12.tar.gz" | tar -C /opt/dataspell --strip-components 1 -xzvf -
RUN curl -L "https://download-cdn.jetbrains.com/python/dataspell-2021.3.3.tar.gz" | tar -C /opt/dataspell --strip-components 1 -xzvf -
# Add a binary to the PATH that points to the pycharm startup script.
RUN ln -s /opt/dataspell/bin/dataspell.sh /usr/bin/dataspell

View File

@ -5,7 +5,7 @@ USER root
# Install DataSpell.
RUN mkdir -p /opt/dataspell
RUN curl -L "https://download.jetbrains.com/python/jetbrains-data-spell-213.2094.12.tar.gz" | tar -C /opt/dataspell --strip-components 1 -xzvf -
RUN curl -L "https://download-cdn.jetbrains.com/python/dataspell-2021.3.3.tar.gz" | tar -C /opt/dataspell --strip-components 1 -xzvf -
# Add a binary to the PATH that points to the pycharm startup script.
RUN ln -s /opt/dataspell/bin/dataspell.sh /usr/bin/dataspell

View File

@ -4,8 +4,9 @@
## Description
Wraps [enterprise-golang](../golang/README.md) and includes [required multi-editor dependencies](https://enterprise.coder.com/docs/installing-an-ide-onto-your-image#required-packages) with GoLand
installation.
Wraps [enterprise-golang](../golang/README.md) and includes
[required multi-editor dependencies](https://enterprise.coder.com/docs/installing-an-ide-onto-your-image#required-packages)
with GoLand installation.
## How To Use It

View File

@ -1,21 +1,28 @@
# VNC in Coder
A [sample image](https://github.com/cdr/enterprise-images/tree/main/images/vnc) for Coder that uses [noVNC](https://github.com/novnc/noVNC) as the client and [TigerVNC](https://tigervnc.org) as the server. You can find it on [Dockerhub](https://hub.docker.com/r/codercom/enterprise-vnc).
A [sample image](https://github.com/cdr/enterprise-images/tree/main/images/vnc)
for Coder that uses [noVNC](https://github.com/novnc/noVNC) as the client and
[TigerVNC](https://tigervnc.org) as the server. You can find it on
[Dockerhub](https://hub.docker.com/r/codercom/enterprise-vnc).
## To connect
- Option 1 (Web): Click the "Desktop" application from the Coder dashboard on any workspace that uses this VNC image.
- Option 1 (Web): Click the "Desktop" application from the Coder dashboard on
any workspace that uses this VNC image.
![VNC application screenshot](./example.png)
![VNC application screenshot](./example.png)
- Option 2 (SSH Tunneling): Connect from your local VNC Client. Expose the VNC server to your local machine. You will need the [coder-cli](https://github.com/cdr/coder-cli) and any VNC client installed on your local machine.
- Option 2 (SSH Tunneling): Connect from your local VNC Client. Expose the VNC
server to your local machine. You will need the
[coder-cli](https://github.com/cdr/coder-cli) and any VNC client installed on
your local machine.
```sh
coder config-ssh
# Forward the remote VNC server to your local machine
coder tunnel vnc-ux 5990 5990
# You will not see any output if it succeeds, but you
# will be able to connect your VNC client to localhost:5990
```
```sh
coder config-ssh
# Forward the remote VNC server to your local machine
coder tunnel vnc-ux 5990 5990
# You will not see any output if it succeeds, but you
# will be able to connect your VNC client to localhost:5990
```
- Option 3 (Web): Create a dev URL on port `6081` and navigate to it

View File

@ -37,8 +37,7 @@
// change the path depending on window.location (necessary for websockets to work on Coder's application path
// ex. /api/v0/workspaces/[id]/proxy/apps/desktop/)
path = window.location.pathname;
path = path.replace(/^\/|\/$/g, "");
path = path + "/websockify";
path = path.replace(/\/$/, "") + "/websockify";
console.log(path);
} else {
console.error("window.location.pathname is undefined");