Skip to content

Commit 4716cfb

Browse files
committed
fix ORM configuration
Signed-off-by: Andrea Marchesini <[email protected]>
1 parent ec393fc commit 4716cfb

File tree

3 files changed

+70
-16
lines changed

3 files changed

+70
-16
lines changed

README.md

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,56 @@ This project enables you to create and configure network and compute resources o
1616
### Prerequisites
1717
- Oracle Cloud account
1818

19+
## Getting Started
20+
21+
22+
1. Click the button below to begin the deploy of code-server:
23+
24+
<a href="https://cloud.oracle.com/resourcemanager/stacks/create?region=home&zipUrl=https://github.com/oracle-devrel/terraform-oci-code-server/releases/latest/download/oci-deploy-code-server-latest.zip" target="_blank"><img src="https://oci-resourcemanager-plugin.plugins.oci.oraclecloud.com/latest/deploy-to-oracle-cloud.svg" alt="Deploy to Oracle Cloud"/></a>
25+
26+
2. If needed, log into your account. You should then be presented with the **Create Stack** page.
27+
28+
These next few steps will deploy a stack to your OCI tenancy. This will include a virtual clod network and a compute instance and the necessary configurations to deploy and run code-server from within your OCI account.
29+
30+
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.
31+
32+
3. Click **Next** at the bottom of the screen. This will take you to the **Configure Variables** page. On this page you can optionally provide/change these variables:
33+
- **Compartment** (_optional_): select the compartment where do you want to deploy the stack
34+
- **SSH public key** (_optional_): the key will allow you to login into the instance.
35+
- **Instance Name** (_optional_): Name of the instance [_default: oci-code-server_]
36+
- **Shape** (_optional_): Instance shape [_default: VM.Standard.E4.Flex_]. If you want your Compute instance to function after your Free Trial ends, check the box for an Always Free Shape.
37+
- **OCPUs number** (_optional_): Only if you have selected a Flex shape [_default: 1_]
38+
39+
40+
41+
Then click **Next** again.
42+
43+
![Configure Variables](./docs/red-bull-hol-configure-variables.jpg)
44+
4. On the **Review** page, be sure *Run Apply* is checked, and click **Create**.
45+
46+
![Review and Create](./docs/red-bull-hol-1c-create-stack-review.jpg)
47+
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.
48+
49+
![Create Stack Succeeded](./docs/red-bull-hol-1d-create-stack-succeeded.jpg)
50+
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.
51+
52+
![Instances in the Menu](./docs/red-bull-hol-2a-menu-instances.jpg)
53+
7. On the **Instances** screen, make sure "redbullhol" is selected under *Compartment*. If "redbullhol" isn't in the dropdown menu, it may need some time to show up, so grab (another) cup of coffee/tea and check back in a few minutes.
54+
55+
![Instances Compartment](./docs/red-bull-hol-2c-instances-compartment.jpg)
56+
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.
57+
58+
![Public IP](./docs/red-bull-hol-2d-instances-public-ip.jpg)
59+
9. Next, open a new tab in your browser to load up the web UI for Jupyter Lab. Paste the IP address you just copied with `:8888` added to the end. The URL should look like `https://xxx.xxx.xxx.xxx:8888` (substituting the public IP we copied in the previous step). Jupyter Lab is running on port 8888, so when you navigate to this URL you should see the Juypter login.
60+
61+
_**Note:** You should not be on VPN when opening Jupyter Lab._
62+
63+
![Jupyter Login](./docs/red-bull-hol-3b-jupyter-login.jpg)
64+
10. Log in with the jupyter token and assign a password like `Redbull1`.
65+
11. You should now see the Jupyter Lab. Navigate in the sidebar to `/redbull-analytics-hol/beginners/` to see the Jupyter notebooks for this lab.
66+
67+
The notebooks are numbered and you'll progress through them in order. These will walk you through collecting and analyzing the data we'll use to predict some races.
68+
1969
## URLs
2070
For more information about `code-server`:
2171
* [code-server](https://github.com/coder/code-server)

orm/schema.yaml

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,17 +26,30 @@ variableGroups:
2626
visible: false
2727
- title: "Configuration"
2828
variables:
29+
- ${compartment_ocid}
2930
- ${ssh_public_keys}
3031
- ${shape}
31-
- ${instance_flex_ocpus}
3232
- ${instance_display_name}
33+
- ${instance_flex_ocpus}
3334

3435
variables:
36+
compartment_ocid:
37+
title: Compartment
38+
description: Compartment where to deploy the stack
39+
type: oci:identity:compartment:id
40+
required: false
3541
ssh_public_keys:
3642
title: Compute SSH Public Key
37-
description: The public key to install on the compute for SSH access.
43+
description: The public key to install on the instance for SSH access.
3844
type: oci:core:ssh:publickey
3945
required: false
46+
instance_display_name:
47+
title: Instance Name
48+
type: string
49+
description: The name to use for the compute instance
50+
type: oci:core:instanceshape:name
51+
default: oci-code-server
52+
required: false
4053
shape:
4154
title: Instance Shape
4255
type: string
@@ -49,9 +62,4 @@ variables:
4962
description: The number of OCPUs. It applies to Flex Instance only
5063
default: 1
5164
required: false
52-
instance_display_name:
53-
title: Instance Name
54-
type: string
55-
description: The image name to use for the compute instance
56-
default: oci-code-server
57-
required: false
65+

release_files.json

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,25 +4,21 @@
44
"file_name": "oci-deploy-code-server-latest.zip",
55
"files": [
66
{
7-
"src_pattern": "terraform/*.tf",
7+
"src_pattern": "*.tf",
88
"dst_path": ".",
99
"exclude": [
10-
"terraform/provider.tf"
10+
"provider.tf"
1111
]
1212
},
13-
{
14-
"src_pattern": "terraform/scripts/*",
15-
"dst_path": "."
16-
},
1713
{
1814
"src": "LICENSE"
1915
},
2016
{
21-
"src": "terraform/orm/schema.yaml",
17+
"src": "orm/schema.yaml",
2218
"dst": "schema.yaml"
2319
},
2420
{
25-
"src": "terraform/orm/provider_orm.tf",
21+
"src": "orm/provider_orm.tf",
2622

2723
"dst": "provider.tf"
2824
}

0 commit comments

Comments
 (0)