You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: beginners/README.md
+22-15Lines changed: 22 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
3
3
## Prerequisites
4
4
5
-
You'll need an OCI free trial account: <ahref="https://signup.cloud.oracle.com/?sourceType=_ref_coc-asset-opcSignIn&language=en_US"target="_blank"title="Sign up for free trial">click here to sign up</a> (right click and open in a new tab so you can keep these instructions open). We're going to use a ready-to-go image to install the required resources, so all you need to start is a free account.
5
+
You'll need an OCI free trial account: <ahref="https://signup.cloud.oracle.com/?sourceType=_ref_coc-asset-opcSignIn&language=en_US"target="_blank"title="Sign up for free trial">click here to sign up</a> (right click and open in a new tab so you can keep these instructions open).
6
6
7
7
Registered lab participants should have received $500 in credits to use for Data Science operations.
8
8
@@ -29,36 +29,43 @@ For Windows, and step-by-step instructions for Mac/Linux, please see the [Oracle
29
29
<ahref="https://cloud.oracle.com/resourcemanager/stacks/create?region=home&zipUrl=https://github.com/oracle-devrel/redbull-analytics-hol/releases/latest/download/redbull-analytics-hol-latest.zip"target="_blank"><imgsrc="https://oci-resourcemanager-plugin.plugins.oci.oraclecloud.com/latest/deploy-to-oracle-cloud.svg"alt="Deploy to Oracle Cloud"/></a>
30
30
2. If needed, log into your account. You should then be presented with the **Create Stack** page.
31
31
32
-
These next few steps will deploy a stack to your OCI tenancy. This will include a Compute instance and the necessary tools to deploy and run JupyterLab from within your OCI account.
32
+
These next few steps will deploy a stack to your OCI tenancy. This will include the necessary tools to deploy and run JupyterLab from within your OCI account.
33
33
34
34
Under *Stack Information* (the first screen), check the box *I have reviewed and accept the Oracle Terms of Use*. Once that box is checked, the information for the stack will be populated automatically.
3. Click **Next** at the bottom of the screen. This will take you to the **Configure Variables** page. On this page you'll need to provide the SSH key we created in the prerequisites if you want SSH access to your Compute instance.
37
+
3. Click **Next** at the bottom of the screen. This will take you to the **Configure Variables** page. On this page you'll need to provide the SSH key we created in the prerequisites. You can copy and paste the contents of the public key (`.pub`), or use the file selector to upload the `.pub` file directly.
4. On the **Review** page, be sure *Run Apply* is checked, and click **Create**.
41
41
42
42

43
-
5. This will take you to the **Job Details** page, and OCI will begin creating the stack and deploying the custom image for the lab. This will take about 11 minutes. When it completes (assuming everything went smoothly), the **Job Details** will show a bright green square with "Succeeded" below it.
43
+
5. This will take you to the **Job Details** page, and OCI will begin creating the stack and deploying the scripts for the lab. This will take 8-10 minutes. When it completes (assuming everything went smoothly), the **Job Details** will show a bright green square with "Succeeded" below it.
6. Once the Create Stack job has succeeded, click the hamburger menu in the upper left, select **Compute** in the sidebar, and click **Instances** in the menu.
46
+
6. Once the Create Stack job has succeeded, click "Outputs."
47
47
48
-

49
-
7. On the **Instances** screen, make sure "redbullhol" is selected under *Compartment*. If "redbullhol" isn't in the dropdown menu, you may need to refresh the page for the new compartment to show up.
8. Once the "redbullhol" compartment is selected, you should see a running Instance in the list. The address you'll need to access it is in the *Public IP* column. Copy the IP address shown.
50
+
The outputs will include a terminal command you'll need to run. Replace the private key reference with the path to the private key that matches the public key you uploaded. The final command should look similar to:
9. Next, open a new tab in your browser to load up the web UI for JupyterLab. Paste the IP address you just copied with `:8001` added to the end. The URL should look like `http://xxx.xxx.xxx.xxx:8001` (substituting the public IP we copied in the previous step). JupyterLab is running on port 8001, so when you navigate to this URL you should see the Juypter login.
52
+
```console
53
+
$ ssh -i ~/.ssh/id_rsa2 opc@123.456.789.100 'source redbullenv/bin/activate; jupyter server list'
54
+
```
56
55
57
-
_**Note:** You should not be on VPN when opening JupyterLab._
56
+
7. Open a terminal and run the above command. The output of the command will include a url containing a token. You'll need the token portion of the url (the part after `?token=`) for the next step.
8. Back in the **Outputs** display in your browser, copy the IP address for your Jupyter Lab (ending with `:8888`). Paste that into a new browser window/tab and append `?token=YOUR_TOKEN`, replacing `YOUR_TOKEN` with the token from step 7. Load the resulting URL.
9. Your new deployment uses a self-signed certificate, so you'll get a warning from your browser that the connection is insecure. You'll need to approve the loading of the page. In most browsers you'll see an "Advanced" or similar button, and clicking it will offer you the option to ignore security concerns and load the page anyway.
|[oci_core_images.this](https://registry.terraform.io/providers/hashicorp/oci/latest/docs/data-sources/core_images)| data source |
238
+
|[oci_identity_availability_domain.AD1](https://registry.terraform.io/providers/hashicorp/oci/latest/docs/data-sources/identity_availability_domain)| data source |
239
+
|[oci_identity_compartment.current_compartment](https://registry.terraform.io/providers/hashicorp/oci/latest/docs/data-sources/identity_compartment)| data source |
240
+
|[oci_identity_region_subscriptions.home_region_subscriptions](https://registry.terraform.io/providers/hashicorp/oci/latest/docs/data-sources/identity_region_subscriptions)| data source |
241
+
|[oci_identity_regions.current_region](https://registry.terraform.io/providers/hashicorp/oci/latest/docs/data-sources/identity_regions)| data source |
242
+
|[oci_identity_regions.home-region](https://registry.terraform.io/providers/hashicorp/oci/latest/docs/data-sources/identity_regions)| data source |
243
+
|[oci_identity_tenancy.tenant_details](https://registry.terraform.io/providers/hashicorp/oci/latest/docs/data-sources/identity_tenancy)| data source |
244
+
245
+
## Inputs
246
+
247
+
| Name | Description | Type | Default | Required |
| <aname="input_compartment_ocid"></a> [compartment\_ocid](#input\_compartment\_ocid)| The compartment OCID to deploy resources to |`string`|`""`| no |
250
+
| <aname="input_compute_image_name"></a> [compute\_image\_name](#input\_compute\_image\_name)| The name of the compute image to use for the compute instances. |`string`|`"Oracle-Linux-7.9-2021.08.27-0"`| no |
251
+
| <aname="input_fingerprint"></a> [fingerprint](#input\_fingerprint)| 'API Key' fingerprint, more details can be found at https://docs.cloud.oracle.com/en-us/iaas/Content/General/Concepts/credentials.htm#two|`string`|`""`| no |
252
+
| <aname="input_private_key"></a> [private\_key](#input\_private\_key)| The private key (provided as a string value) |`string`|`""`| no |
253
+
| <aname="input_private_key_password"></a> [private\_key\_password](#input\_private\_key\_password)| The password to use for the private key |`string`|`""`| no |
254
+
| <aname="input_private_key_path"></a> [private\_key\_path](#input\_private\_key\_path)| Path to private key used to create OCI 'API Key', more details can be found at https://docs.cloud.oracle.com/en-us/iaas/Content/General/Concepts/credentials.htm#two|`string`|`""`| no |
255
+
| <aname="input_redbull_compartment"></a> [redbull\_compartment](#input\_redbull\_compartment)| The name of the compartment created to hold all of the resources |`string`|`"redbullhol"`| no |
256
+
| <aname="input_region"></a> [region](#input\_region)| OCI Region as documented at https://docs.cloud.oracle.com/en-us/iaas/Content/General/Concepts/regions.htm|`string`| n/a | yes |
257
+
| <aname="input_ssh_public_key"></a> [ssh\_public\_key](#input\_ssh\_public\_key)| The public SSH key to use for the compute instance |`string`|`""`| no |
258
+
| <aname="input_ssh_public_key_path"></a> [ssh\_public\_key\_path](#input\_ssh\_public\_key\_path)| The path to the public SSH key to use for the compute instance |`string`|`""`| no |
259
+
| <aname="input_tenancy_ocid"></a> [tenancy\_ocid](#input\_tenancy\_ocid)| OCI tenant OCID, more details can be found at https://docs.cloud.oracle.com/en-us/iaas/Content/API/Concepts/apisigningkey.htm#five|`string`| n/a | yes |
260
+
| <aname="input_user_ocid"></a> [user\_ocid](#input\_user\_ocid)| OCI user OCID, more details can be found at https://docs.cloud.oracle.com/en-us/iaas/Content/API/Concepts/apisigningkey.htm#five|`string`|`""`| no |
0 commit comments