Skip to content

Commit 70b0e4b

Browse files
committed
Feature/password fix
1 parent fecb99b commit 70b0e4b

File tree

2 files changed

+32
-29
lines changed

2 files changed

+32
-29
lines changed

README.md

Lines changed: 29 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# Isaac Launchable
44

5-
Isaac Launchable offers a simplified approach to installing and using [Isaac Lab](https://isaac-sim.github.io/IsaacLab/main/index.html) and [Isaac Sim](https://github.com/isaac-sim/IsaacSim).
5+
Isaac Launchable offers a simplified approach to trying [Isaac Lab](https://isaac-sim.github.io/IsaacLab/main/index.html) and [Isaac Sim](https://github.com/isaac-sim/IsaacSim) in a web browser.
66

77
Through this project, users can interact with Isaac Sim and Isaac Lab purely from a web browser, with one tab running Visual Studio Code for development and command execution, and another tab providing the streamed user interface for Isaac Sim.
88

@@ -15,12 +15,11 @@ The installation steps for Isaac Lab are automated via Docker, such that it can
1515

1616
The project includes:
1717
- a Visual Studio Code container
18-
- Isaac Lab pre-installed
19-
- Isaac Sim pre-installed
18+
- Isaac Lab 2.3 container
19+
- Isaac Sim 5.1 container
2020
- an Omniverse Kit App Streaming client, based on the [web-viewer-sample](https://github.com/NVIDIA-Omniverse/web-viewer-sample) project.
2121

2222

23-
2423
## Quickstart Guide
2524
This guide will get you started with a Visual Studio Code instance with Isaac Lab preinstalled, and an in-browser user interface provided by Kit App Streaming.
2625

@@ -31,16 +30,16 @@ This guide will get you started with a Visual Studio Code instance with Isaac La
3130
> Please note that Brev instances are pay-by-the hour. To make the best use of credits, stop instances when they are not in use. Stopped instances have a smaller storage charge.
3231
3332
### Deploy
34-
1. Click this Deploy Now button
35-
[![ Click here to deploy.](https://brev-assets.s3.us-west-1.amazonaws.com/nv-lb-dark.svg)](https://brev.nvidia.com/launchable/deploy?launchableID=env-31ezDWyp4LvtDQr5rUhAWOUMFhn)
36-
2. Click the Deploy Launchable button to spin up the instance.
33+
1. Click this Deploy Now button ->
34+
[![ Click here to deploy.](https://brev-assets.s3.us-west-1.amazonaws.com/nv-lb-dark.svg)](https://brev.nvidia.com/launchable/deploy/now?launchableID=env-35JP2ywERLgqtD0b0MIeK1HnF46)
35+
2. In Brev, click the Deploy Launchable button to spin up the instance.
3736
3. Wait for the instance to be fully ready on Brev: running, built, and the setup script has completed (first launch can take a while)
38-
4. On the Brev instance page, scroll to the TCP/UDP ports section.
39-
5. Click the link for port 80 (HTTP) to open Visual Studio Code Server.
40-
6. The default password is `password`. This can be modified.
41-
- To change the password, modify the `PASSWORD` environment variable in this [docker-compose.yml](https://github.com/isaac-sim/isaac-launchable/blob/main/isaac-lab/docker-compose.yml) file.
42-
7. Inside Visual Studio Code, continue with the [README.md](https://github.com/isaac-sim/isaac-launchable/blob/main/isaac-lab/vscode/README.md) instructions. A summary is provided below.
43-
8. Now you're in the Visual Studio Code dev environment!
37+
4. Open the `Logs` tab to view the setup script output. At the end of this output, a password will be printed. This is the password for the Visual Studio Code server. Save this somewhere safe.
38+
5. On the Brev instance page, scroll to the TCP/UDP ports section.
39+
6. Click the link for port 80 (HTTP) to open Visual Studio Code Server.
40+
7. Enter the password from the Logs tab in step 4.
41+
8. Inside Visual Studio Code, continue with the [README.md](https://github.com/isaac-sim/isaac-launchable/blob/main/isaac-lab/vscode/README.md) instructions. A summary is provided below.
42+
9. Now you're in the Visual Studio Code dev environment!
4443

4544
### Running Isaac Sim and Isaac Lab - the quick version
4645
In short, the commands to run Isaac Lab and Isaac Sim are similar to workstation installs, except when you need the UI. Then we add a few arguments for streaming to the normal commands.
@@ -54,7 +53,7 @@ The top-level README.md file in the dev environment contains a shortened version
5453

5554
1. Run the following command:
5655
```
57-
./isaaclab/_isaac_sim/isaac-sim.sh --no-window --enable omni.kit.livestream.webrtc
56+
/isaac-sim/runheadless.sh
5857
```
5958
Note how this is similar to the workstation command for launching Isaac Sim, but uses additional arguments for streaming.
6059

@@ -65,11 +64,10 @@ Note how this is similar to the workstation command for launching Isaac Sim, but
6564
5. After a few seconds you should see the UI in the viewer tab. The first launch may take much longer as shaders are cached.
6665
6. On subsequent relaunches, simply refresh this tab to see the UI.
6766

68-
6967
### Running Isaac Lab Commands - Detailed Guide
7068
To run an Isaac Lab command, first consider if it requires the UI. If it doesn't, such as during policy training, simply run the command as normal.
7169

72-
If you need to see the Isaac Sim UI, just append these additional arguments to the Isaac Lab command: `--kit_args="--no-window --enable omni.kit.livestream.webrtc"`.
70+
If you need to see the Isaac Sim UI, just append these additional arguments to the Isaac Lab command: `--livestream 2`.
7371

7472
Let's try out the Ant walking task as a demo. We chose this task because it trains quickly.
7573

@@ -81,7 +79,7 @@ This is essentially the same command you would run for a workstation install of
8179

8280
2. Once the training script is complete, test the policy behavior by running:
8381
```
84-
python isaaclab/scripts/reinforcement_learning/skrl/play.py --task=Isaac-Ant-v0 --kit_args="--no-window --enable omni.kit.livestream.webrtc"
82+
python isaaclab/scripts/reinforcement_learning/skrl/play.py --task=Isaac-Ant-v0 --livestream 2"
8583
```
8684
This will launch Isaac Sim. Note how we added the `--kit_args` since we'll want to view the behavior using the Isaac Sim viewport.
8785

@@ -121,31 +119,37 @@ These instructions describe how to create a customized Launchable, similar to th
121119
6. On the next page, add a setup script. Under the *Paste Script* tab, add this code:
122120
```bash
123121
#!/bin/bash
122+
export VSCODE_PASSWORD=your_password # replace with a secure password or generate it securely
124123
git clone https://github.com/isaac-sim/isaac-launchable
125124
cd isaac-launchable/isaac-lab
126125
docker compose up -d
127126
```
128-
7. Click Next.
129-
8. Under "Do you want a Jupyter Notebook experience" select "No, I don't want Jupyter".
130-
9. Select the TCP/UDP ports tab.
131-
10. Expose the following ports (for Visual Studio Code Server and Kit App Streaming) to a specific public IP address that will be using this service.
127+
7. The VSCode container expects a password to be set via the $VSCODE_PASSWORD environment variable. Add the following environment variable to the setup script. Replace `your_password` with your desired password, or generate it securely.
128+
```bash
129+
export VSCODE_PASSWORD=your_password
130+
```
131+
132+
8. Click Next.
133+
9. Under "Do you want a Jupyter Notebook experience" select "No, I don't want Jupyter".
134+
10. Select the TCP/UDP ports tab.
135+
11. Expose the following ports (for Visual Studio Code Server and Kit App Streaming) to a specific public IP address that will be using this service.
132136
```
133137
80
134138
1024
135139
47998
136140
49100
137141
```
138-
11. Click Next.
139-
12. Choose your desired compute.
142+
12. Click Next.
143+
13. Choose your desired compute.
140144

141145
> [!NOTE]
142146
> GPUs with RT cores are required for Kit App Streaming.
143147
> The compute specs and driver versions provided also need to be compatible with [Isaac Sim](https://docs.isaacsim.omniverse.nvidia.com/latest/installation/requirements.html). The available drivers are not exposed on this Brev page currently.
144148
145149
> [!IMPORTANT]
146150
> The project is not currently compatible with Crusoe instances. AWS has been tested and is used for the example launchable.
147-
13. Choose disk storage, then click Next.
148-
14. Enter a name, then select **Create Launchable**
151+
14. Choose disk storage, then click Next.
152+
15. Enter a name, then select **Create Launchable**
149153

150154
Congratulations! You now have a custom launchable.
151155

@@ -155,7 +159,6 @@ This project can also be used to run a containerized version of Isaac Sim and Is
155159

156160
To use this project locally, you'll need a workstation that meets [Isaac Sim](https://docs.isaacsim.omniverse.nvidia.com/latest/installation/requirements.html)'s requirements.
157161

158-
159162
1. Install the NVIDIA Container Toolkit: `sudo install nvidia-container-toolkit`
160163
2. Inside [this docker-compose file](https://github.com/isaac-sim/isaac-launchable/blob/main/isaac-lab/docker-compose.yml), change the `ENV=brev` line to `ENV=localhost`.
161164
3. Inside the folder `isaac-lab`, run `docker compose up -d`.

isaac-lab/docker-compose.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ volumes:
2020

2121
services:
2222

23-
# This is the landing container.
23+
# This is the landing container. Expects $VSCODE_PASSWORD to be set.
2424
vscode:
2525
container_name: vscode
2626
network_mode: "host"
@@ -35,8 +35,8 @@ services:
3535
- PUID=0
3636
- PGID=0
3737
- TZ=Etc/UTC
38-
- PASSWORD=password #optional
39-
- SUDO_PASSWORD=password #optional
38+
- PASSWORD=$VSCODE_PASSWORD #optional
39+
- SUDO_PASSWORD=$VSCODE_PASSWORD #optional
4040
- DEFAULT_WORKSPACE=/config/workspace
4141
- KUBECONFIG=/kube/config
4242
restart: unless-stopped

0 commit comments

Comments
 (0)