-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgo-project-as-code.yml
More file actions
129 lines (116 loc) · 5.37 KB
/
go-project-as-code.yml
File metadata and controls
129 lines (116 loc) · 5.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
#
# 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.
#
project:
name: Golang Demo
description: Sample Golang project
techstack:
name: Golang
# To see the list of available tech stacks on a Harbormaster instance use command:
# harbormaster_cli stack_list --output pretty
model:
name: bowling-league
# 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: golangdemo
description: Demo Go 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
adminUserId: admin # use this and the adminPassword to access the application at the default URL
adminPassword: letmein2
#
# Docker parameters
#
docker:
inUse: true
userName: xxxxxxxxxxx
password: xxxxxxxxxxx
orgName: xxxxxxxxxx
repo: djangodemo
tag: latest
host: #empty uses docker hubd default
#
# resources: Apply your own resources (files) to a project generation session. The file name applied
# must be one that is part of the project generation for the selected tech stack.
#
# The name(s) applied here must have been previously published using something like...
# harbormaster_cli resource_publish ./some_path/Dockerfile my_resource_file_name GENERIC
#
# To see the list of available resources on a Harbormaster instance using command:
# harbormaster_cli resource_list --output pretty
resources:
available: myK8AccountCredentials
#
# CI/CD parameters
#
cicd:
platform: circleci # options: codeship, circleci, jfrog.pipelines
# jenkins, azure, aws, gitlab,
# bitbucket, github
#AES key: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
# codeship project key; ex: XKyy2IDcSptIIvMY8KLMVMcxVs+ZK6AyNu1B4Wu1DPY=
#
# Git repository parameters
#
git:
name: git_test_go
username: xxxxxxxxx
password: xxxxxxxxx
repository: myapp
tag: latest
host: github.com
#
# Artifact repository for build dependencies and binaries
#
go:
appPort: 8088
dbType: mysql #options: mysql,postgres,sqlite,sqlserver
dbUserName: root
dbPassword: letmein2
dbName: appDB
dbHost: 127.0.0.1
dbPort: 3306
dbArgs: charset=utf8mb4&parseTime=True&loc=Local&createDatabaseIfNotExist=true&autoReconnect=true&useSSL=false&allowPublicKeyRetrieval=true
#
# Artifact repository for build dependencies and binaries
#
artifact-repo:
inUse: false
type: jfrog # options: nexus, jfrog
userName: xxxxxxx
password: xxxxxxxx
email: xxxx.xxxxxx@xxxxxxx.com
repoUrl: http://xxx.xxx.xxx.xxx:8081/repository/npm-public