Skip to content

Commit 32aaaa2

Browse files
committed
fix ORM configuration
Signed-off-by: Andrea Marchesini <[email protected]>
1 parent 1c44d6a commit 32aaaa2

File tree

5 files changed

+29
-5
lines changed

5 files changed

+29
-5
lines changed

README.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
# Code-Server on Oracle Cloud Infrastructure
22

3-
[![License: UPL](https://img.shields.io/badge/license-UPL-green)](https://img.shields.io/badge/license-UPL-green) [![Quality gate](https://sonarcloud.io/api/project_badges/quality_gate?project=oracle-devrel_terraform-oci-code-server)](https://sonarcloud.io/dashboard?id=oracle-devrel_terraform-oci-code-server)
3+
[![License: UPL](https://img.shields.io/badge/license-UPL-green)](https://img.shields.io/badge/license-UPL-green)
44

5-
## Deploy Code-Server on OCI VM
5+
6+
## Deploy Code-Server on a compute instance running on Oracle Cloud Infrastructure
67

78
One-click button deploy to deploy [code-server](https://github.com/cdr/code-server) on Oracle Cloud Infrastructure compute instance.
89

@@ -40,6 +41,8 @@ This project enables you to create and configure network and compute resources o
4041
4. On the **Review** page, be sure *Run Apply* is checked, and click **Create**.
4142

4243
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 a few minutes. When it completes (assuming everything went smoothly), the **Job Details** will show a bright green square with "Succeeded" below it.
44+
45+
6. Go back to the **Stack Details** page, in the **Application Information** tab you can find the public IP of the instance. You can use that IP for the first login to VS Code.
4346

4447

4548
## URLs
@@ -56,3 +59,8 @@ Copyright (c) 2021 Oracle and/or its affiliates.
5659
Licensed under the Universal Permissive License (UPL), Version 1.0.
5760

5861
See [LICENSE](LICENSE) for more details.
62+
63+
---
64+
65+
66+
[![Quality gate](https://sonarcloud.io/api/project_badges/quality_gate?project=oracle-devrel_terraform-oci-code-server)](https://sonarcloud.io/dashboard?id=oracle-devrel_terraform-oci-code-server)

main.tf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,14 +79,15 @@ resource "oci_core_subnet" "sub" {
7979
dns_label = "vscsub"
8080
prohibit_public_ip_on_vnic = false
8181
route_table_id = module.vcn.ig_route_id
82+
freeform_tags = var.freeform_tags
8283
}
8384

8485

8586
module "oci_security_policies" {
8687
source = "github.com/oracle-terraform-modules/terraform-oci-tdf-network-security"
8788

8889
default_compartment_id = var.compartment_ocid
89-
default_freeform_tags = { "app" = "code-server" }
90+
default_freeform_tags = var.freeform_tags
9091
vcn_id = module.vcn.vcn_id
9192

9293
standalone_nsg_rules = {

orm/schema.yaml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,4 +61,15 @@ variables:
6161
description: The number of OCPUs. It applies to Flex Instance only
6262
default: 1
6363
required: false
64-
64+
65+
outputs:
66+
code-server-publicIP:
67+
title: "code-server Public IP"
68+
displayText: "code-server Public IPs"
69+
type: copyableString
70+
visible: true
71+
vsc_instance:
72+
title: "instance information"
73+
displayText: "instance information"
74+
type: string
75+
visible: false

outputs.tf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
# Copyright (c) 2019, 2021, Oracle Corporation and/or affiliates.
22
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl
33

4+
output "code-server-publicIP" {
5+
value = module.vsc_instance.public_ip_all_attributes.0.ip_address
6+
}
7+
48
output "vsc_instance" {
59
description = "code-server instance details"
610
value = {

variables.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ variable "ssh_public_key_path" {
104104
description = "Public SSH key file path"
105105
type = string
106106
default = ""
107-
107+
}
108108

109109
# networking parameters
110110

0 commit comments

Comments
 (0)