-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgooglefunctions-rdbms-project-as-code.yml
More file actions
169 lines (149 loc) · 7.37 KB
/
googlefunctions-rdbms-project-as-code.yml
File metadata and controls
169 lines (149 loc) · 7.37 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
#
# Standard DevOps project creation options.
#
# Pay close attention to parameters that require values unique
# to you, such as those for Git, Docker, and AWS.
#
# To use Git, Docker, and any provider, be sure to have created
# an account with each.
#
# For Git, before generating the project be sure to create the
# repository and designate as public before
#
# Minimally, anywhere you see an xxx, replace with your relevant value
#
project:
name: Google Functions Serverless Demo
description: Sample Google Functions Serverless project
techstack:
name: GoogleFunctions
# To see the list of available tech stacks on a Harbormaster instance using command:
# harbormaster_cli stack_list --output pretty
model:
name: bowling-league-Sprint-1
# options: Unique name of an existing model, a URL to a model file or Git repo,
# or full/relative path to a model file.
#
# To see the list of supported model types use command:
# harbormaster_cli model_types_supported
#
# To see the list of available models on a Harbormaster instance use command:
# harbormaster_cli model_list --output pretty
#
# For JAR files and Git Repos with Java Files, include the root package names of the root package
# javaRootPackageNames:
# - com.freeport.bo
# primaryKeyPattern: _pojoName_Id # the pattern to look for when interrogating a POJO for a primary key field
# allowed values are a either a literal, ex: id OR
# POJOName with a suffix, ex: _pojoName_Id will handle accountId, customerId, etc...
#
# DevOps Project Creation Options
#
options:
#
# Application parameters
#
application:
name: googlefunctiondemo
description: Demo Google Functions project generated by Harbormaster
author: Dev Team
email: xxxx.xxxxxxxxx@xxxxxxxx.com
application logo URL: ./img/turnstone.biologics.png
company name: Turnstone Biologics
version: 0.0.1
#
# Google Function parameters
#
gcp-functions:
name: gcpfunctionsdemo
version: 0.0.1
license: MIT
description: package description for GCP functions
runtime: Node.js # options: Node.js,Python
RESTfulAPIsURL: xxx.xxx.xxx.xxx # the URL where the generated Spark Web Framework RESTful API is located
RESTfulAPIsPort: 4567 # port for RESTful API service: default is 4567
useFirebase: true
projectId: xxxxxxxxx # assigned by GCP
#
# CI/CD parameters
#
cicd:
platform: codeship # options: codeship, circleci, jfrog.pipelines
# jenkins, azure, aws, gitlab,
# bitbucket, github
AES key: xxxxx # this is assigned per CodeShip project
#
# Git repository parameters
#
git:
name: git_test_GoogleFunctions # an arbitrary name, but for JFrog, this should be the name of the Git related integration
username: xxxxxxxxxxxx
password: xxxxxxxxxxxx
repository: GoogleFunctions
tag: latest
host: bitbucket.org
#
# HashiCorp Terraform parameters
#
# If in use, will build and deploy a generated data access layer using Spark Micro Java framework with Hibernate ORM
# deployed on the cloud provider of choice. Each serverless function will delegate db read/writes to this data layer.
# This ensures fast start and execution for each function while remaining stateless.
# If Kubernetes is in use, will deploy the data access layer as to a cluster.
#
terraform:
inUse: true
provider: aws # options: aws, google, azure, nutanix
region: us-east-1 # options: any cloud provider region
ssh-fingerprint: xxxxxx # CircleCI requires this for SSH
#
# Kubernetes parameters: If not in use, and Terraform
# is in use, physical infrastructure
# will be provisioned on the provider
#
kubernetes:
inUse: false
host: https://xxx.xxx.xxx.xxx
project: xxxxxxxxxxxxxxxxx
region: us-central1-a # options: any provider region
hostTarget: google # option: google, aws, azure, nutanix
username: admin
password: 5UhfcIPAPsiPXklT # value to assign
exposeAsService: true
serviceType: LoadBalancer # options: LoadBalancer, NodePort, ClusterIP
useSessionAffinity: true
#
# Artifact repository for build dependencies and binaries
#
artifact-repo:
inUse: false
type: nexus # options: nexus, jfrog
userName: xxxxxxxx
password: xxxxxxxx
email: xxxx.xxxxxx@xxxxxxx.com
repoUrl: http://xxx.xxx.xxx.xxx:8081/repository/npm-public
#
# Swagger parameters - see https://swagger.io/docs/specification/2-0/basic-structure/ for valid options
#
swagger:
host:
basepath: /
contact name: Harbormaster Dev
contact email: dev@harbormaster.ai
contact url:
license url: http://www.apache.org/licenses/LICENSE-2.0.html
license name: Apache 2.0
title: Google Functions Swagger
version: v1.0
description: Swagger file for Google Functions
terms of service:
output formats: json
#
# Hibernate ORM parameters
#
hibernate:
hibernate.connection.driver.class: com.mysql.jdbc.Driver
hibernate.connection.username: xxxx
hibernate.connection.password: xxxx
hibernate.dialect: org.hibernate.dialect.MySQL8Dialect
hibernate.max.fetch.depth: 1
hibernate.connection.url: jdbc:mysql://localhost:3306/googlefunctiondemo?createDatabaseIfNotExist\u003dtrue #do no remove the createDatabaseIfNotExist\u003dtrue