Skip to content

Commit

Permalink
fix ORM configuration
Browse files Browse the repository at this point in the history
Signed-off-by: Andrea Marchesini <[email protected]>
  • Loading branch information
snafuz committed Jan 10, 2022
1 parent 1c44d6a commit 32aaaa2
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 5 deletions.
12 changes: 10 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
# Code-Server on Oracle Cloud Infrastructure

[![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)
[![License: UPL](https://img.shields.io/badge/license-UPL-green)](https://img.shields.io/badge/license-UPL-green)

## Deploy Code-Server on OCI VM

## Deploy Code-Server on a compute instance running on Oracle Cloud Infrastructure

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

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

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.

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.


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

See [LICENSE](LICENSE) for more details.

---


[![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 changes: 2 additions & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -79,14 +79,15 @@ resource "oci_core_subnet" "sub" {
dns_label = "vscsub"
prohibit_public_ip_on_vnic = false
route_table_id = module.vcn.ig_route_id
freeform_tags = var.freeform_tags
}


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

default_compartment_id = var.compartment_ocid
default_freeform_tags = { "app" = "code-server" }
default_freeform_tags = var.freeform_tags
vcn_id = module.vcn.vcn_id

standalone_nsg_rules = {
Expand Down
13 changes: 12 additions & 1 deletion orm/schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,15 @@ variables:
description: The number of OCPUs. It applies to Flex Instance only
default: 1
required: false


outputs:
code-server-publicIP:
title: "code-server Public IP"
displayText: "code-server Public IPs"
type: copyableString
visible: true
vsc_instance:
title: "instance information"
displayText: "instance information"
type: string
visible: false
4 changes: 4 additions & 0 deletions outputs.tf
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# Copyright (c) 2019, 2021, Oracle Corporation and/or affiliates.
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl

output "code-server-publicIP" {
value = module.vsc_instance.public_ip_all_attributes.0.ip_address
}

output "vsc_instance" {
description = "code-server instance details"
value = {
Expand Down
2 changes: 1 addition & 1 deletion variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ variable "ssh_public_key_path" {
description = "Public SSH key file path"
type = string
default = ""
}

# networking parameters

Expand Down

0 comments on commit 32aaaa2

Please sign in to comment.