Skip to content

Commit

Permalink
Merge pull request #168 from junior/mushop_basic_license_header_fix
Browse files Browse the repository at this point in the history
Mushop basic new version
  • Loading branch information
junior authored Jun 4, 2020
2 parents 942b79e + 315a06e commit 2072a20
Show file tree
Hide file tree
Showing 10 changed files with 24 additions and 5 deletions.
2 changes: 1 addition & 1 deletion deploy/basic/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ RUN rm -rf node_modules products hero *.md
###############################

# ##### Go Builder image
FROM golang:1.13 AS catalogue-builder
FROM golang:1.14 AS catalogue-builder
WORKDIR /go/src/mushop/catalogue

# # Catalogue Go Source
Expand Down
1 change: 1 addition & 0 deletions deploy/basic/VERSION
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1.1.1
2 changes: 1 addition & 1 deletion deploy/basic/terraform/atp.tf
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ resource "oci_database_autonomous_database" "mushop_autonomous_database" {
compartment_id = var.compartment_ocid
cpu_core_count = 1
data_storage_size_in_tbs = 1
db_name = "${var.database_name}${random_id.mushop_id.dec}"
db_name = var.database_name
freeform_tags = local.common_tags
is_free_tier = true

Expand Down
4 changes: 4 additions & 0 deletions deploy/basic/terraform/loadbalancer.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright (c) 2019 Oracle and/or its affiliates. All rights reserved.
# Licensed under the Universal Permissive License v 1.0 as shown at http://oss.oracle.com/licenses/upl.
#

resource "oci_load_balancer_load_balancer" "mushop_lb" {

compartment_id = var.compartment_ocid
Expand Down
1 change: 1 addition & 0 deletions deploy/basic/terraform/main.tf
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Copyright (c) 2019 Oracle and/or its affiliates. All rights reserved.
# Licensed under the Universal Permissive License v 1.0 as shown at http://oss.oracle.com/licenses/upl.
#

terraform {
required_version = ">= 0.12.0"
}
Expand Down
1 change: 1 addition & 0 deletions deploy/basic/terraform/network.tf
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Copyright (c) 2019 Oracle and/or its affiliates. All rights reserved.
# Licensed under the Universal Permissive License v 1.0 as shown at http://oss.oracle.com/licenses/upl.
#

resource "oci_core_virtual_network" "mushopVCN" {
cidr_block = "10.1.0.0/16"
compartment_id = var.compartment_ocid
Expand Down
1 change: 1 addition & 0 deletions deploy/basic/terraform/provider.tf
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Copyright (c) 2019 Oracle and/or its affiliates. All rights reserved.
# Licensed under the Universal Permissive License v 1.0 as shown at http://oss.oracle.com/licenses/upl.
#

provider "oci" {
tenancy_ocid = var.tenancy_ocid
# user_ocid = "${var.user_ocid}"
Expand Down
15 changes: 12 additions & 3 deletions deploy/basic/terraform/schema.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright (c) 2019 Oracle and/or its affiliates. All rights reserved.
# Licensed under the Universal Permissive License v 1.0 as shown at http://oss.oracle.com/licenses/upl.
#

title: "Three-tier web application using Always Free resources"
description: "A demo eCommerce example app using Always Free Oracle Cloud Infrastructure"
schemaVersion: 1.1.0
Expand Down Expand Up @@ -44,14 +48,19 @@ variables:
required: true
title: "Database Name"
description: "The name for the Autonomous Database instance"
default: "mushop"
default: "MuShopDB"
minLength: 1
maxLength: 14
pattern: "^[a-zA-Z][a-zA-Z0-9]+$"

ssh_public_key:
type: string
type: oci:core:ssh:publickey
required: false
title: "SSH Public Key"
description: "The public SSH key for the key-pair that you want to use, if you wish to login to the instances over SSH"

additionalProps:
allowMultiple: true
pattern: "((^(ssh-rsa AAAAB3NzaC1yc2|ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNT|ecdsa-sha2-nistp384 AAAAE2VjZHNhLXNoYTItbmlzdHAzODQAAAAIbmlzdHAzOD|ecdsa-sha2-nistp521 AAAAE2VjZHNhLXNoYTItbmlzdHA1MjEAAAAIbmlzdHA1Mj|ssh-ed25519 AAAAC3NzaC1lZDI1NTE5|ssh-dss AAAAB3NzaC1kc3)[0-9A-Za-z+\/]+[=]{0,3})( [^,]*)?)(,((ssh-rsa AAAAB3NzaC1yc2|ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNT|ecdsa-sha2-nistp384 AAAAE2VjZHNhLXNoYTItbmlzdHAzODQAAAAIbmlzdHAzOD|ecdsa-sha2-nistp521 AAAAE2VjZHNhLXNoYTItbmlzdHA1MjEAAAAIbmlzdHA1Mj|ssh-ed25519 AAAAC3NzaC1lZDI1NTE5|ssh-dss AAAAB3NzaC1kc3)[0-9A-Za-z+\/]+[=]{0,3})( [^,]*)?)*$"

outputGroups:
- title: "MuShop App details"
Expand Down
1 change: 1 addition & 0 deletions deploy/basic/terraform/storage.tf
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Copyright (c) 2019 Oracle and/or its affiliates. All rights reserved.
# Licensed under the Universal Permissive License v 1.0 as shown at http://oss.oracle.com/licenses/upl.
#

resource "oci_objectstorage_bucket" "mushop" {

#Required
Expand Down
1 change: 1 addition & 0 deletions deploy/basic/terraform/variables.tf
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Copyright (c) 2019 Oracle and/or its affiliates. All rights reserved.
# Licensed under the Universal Permissive License v 1.0 as shown at http://oss.oracle.com/licenses/upl.
#

variable "tenancy_ocid" {}
variable "region" {}

Expand Down

0 comments on commit 2072a20

Please sign in to comment.