Skip to content

Commit 2072a20

Browse files
authored
Merge pull request #168 from junior/mushop_basic_license_header_fix
Mushop basic new version
2 parents 942b79e + 315a06e commit 2072a20

File tree

10 files changed

+24
-5
lines changed

10 files changed

+24
-5
lines changed

deploy/basic/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ RUN rm -rf node_modules products hero *.md
9999
###############################
100100

101101
# ##### Go Builder image
102-
FROM golang:1.13 AS catalogue-builder
102+
FROM golang:1.14 AS catalogue-builder
103103
WORKDIR /go/src/mushop/catalogue
104104

105105
# # Catalogue Go Source

deploy/basic/VERSION

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
1.1.1

deploy/basic/terraform/atp.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ resource "oci_database_autonomous_database" "mushop_autonomous_database" {
99
compartment_id = var.compartment_ocid
1010
cpu_core_count = 1
1111
data_storage_size_in_tbs = 1
12-
db_name = "${var.database_name}${random_id.mushop_id.dec}"
12+
db_name = var.database_name
1313
freeform_tags = local.common_tags
1414
is_free_tier = true
1515

deploy/basic/terraform/loadbalancer.tf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# Copyright (c) 2019 Oracle and/or its affiliates. All rights reserved.
2+
# Licensed under the Universal Permissive License v 1.0 as shown at http://oss.oracle.com/licenses/upl.
3+
#
4+
15
resource "oci_load_balancer_load_balancer" "mushop_lb" {
26

37
compartment_id = var.compartment_ocid

deploy/basic/terraform/main.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Copyright (c) 2019 Oracle and/or its affiliates. All rights reserved.
22
# Licensed under the Universal Permissive License v 1.0 as shown at http://oss.oracle.com/licenses/upl.
33
#
4+
45
terraform {
56
required_version = ">= 0.12.0"
67
}

deploy/basic/terraform/network.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Copyright (c) 2019 Oracle and/or its affiliates. All rights reserved.
22
# Licensed under the Universal Permissive License v 1.0 as shown at http://oss.oracle.com/licenses/upl.
33
#
4+
45
resource "oci_core_virtual_network" "mushopVCN" {
56
cidr_block = "10.1.0.0/16"
67
compartment_id = var.compartment_ocid

deploy/basic/terraform/provider.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Copyright (c) 2019 Oracle and/or its affiliates. All rights reserved.
22
# Licensed under the Universal Permissive License v 1.0 as shown at http://oss.oracle.com/licenses/upl.
33
#
4+
45
provider "oci" {
56
tenancy_ocid = var.tenancy_ocid
67
# user_ocid = "${var.user_ocid}"

deploy/basic/terraform/schema.yaml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# Copyright (c) 2019 Oracle and/or its affiliates. All rights reserved.
2+
# Licensed under the Universal Permissive License v 1.0 as shown at http://oss.oracle.com/licenses/upl.
3+
#
4+
15
title: "Three-tier web application using Always Free resources"
26
description: "A demo eCommerce example app using Always Free Oracle Cloud Infrastructure"
37
schemaVersion: 1.1.0
@@ -44,14 +48,19 @@ variables:
4448
required: true
4549
title: "Database Name"
4650
description: "The name for the Autonomous Database instance"
47-
default: "mushop"
51+
default: "MuShopDB"
52+
minLength: 1
53+
maxLength: 14
54+
pattern: "^[a-zA-Z][a-zA-Z0-9]+$"
4855

4956
ssh_public_key:
50-
type: string
57+
type: oci:core:ssh:publickey
5158
required: false
5259
title: "SSH Public Key"
5360
description: "The public SSH key for the key-pair that you want to use, if you wish to login to the instances over SSH"
54-
61+
additionalProps:
62+
allowMultiple: true
63+
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})( [^,]*)?)*$"
5564

5665
outputGroups:
5766
- title: "MuShop App details"

deploy/basic/terraform/storage.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Copyright (c) 2019 Oracle and/or its affiliates. All rights reserved.
22
# Licensed under the Universal Permissive License v 1.0 as shown at http://oss.oracle.com/licenses/upl.
33
#
4+
45
resource "oci_objectstorage_bucket" "mushop" {
56

67
#Required

deploy/basic/terraform/variables.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Copyright (c) 2019 Oracle and/or its affiliates. All rights reserved.
22
# Licensed under the Universal Permissive License v 1.0 as shown at http://oss.oracle.com/licenses/upl.
33
#
4+
45
variable "tenancy_ocid" {}
56
variable "region" {}
67

0 commit comments

Comments
 (0)