-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdjango-project-as-code.yml
More file actions
143 lines (128 loc) · 6.28 KB
/
django-project-as-code.yml
File metadata and controls
143 lines (128 loc) · 6.28 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
#
# 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: Django 2.2 Demo
description: Sample Django 2.2 using Python 3.7 project
techstack:
name: Django
# To see the list of available tech stacks on a Harbormaster instance use 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: djangodemo
description: Demo Angular7 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: aws # options: codeship, circleci, jfrog.pipelines
# jenkins, azure, aws, gitlab,
# bitbucket, github
#AES key: 474KlMLItly26VT2V5E02xWEYNODaJ2VDA7HMdSR6cI=
# codeship project key; ex: XKyy2IDcSptIIvMY8KLMVMcxVs+ZK6AyNu1B4Wu1DPY=
#
# Git repository parameters
#
git:
name: git_test_Django # an arbitrary name, but for JFrog, this should be the name of the Git related integration
username: xxxxxxxxxxxxx
password: xxxxxxxxxxxxx
repository: xxxxxxxxxxxxx
tag: latest
host: bitbucket.org
#
# HashiCorp Terraform parameters
#
terraform:
inUse: true
provider: google # options: aws, google, azure, nutanix
region: us-east-1 # options: any cloud provider region
ssh-fingerprint: xxxxxxxxxxxxxxxxx # required by CircleCI for SSH
#
# Kubernetes parameters: If not in use, and Terraform
# is in use, physical infrastructure
# will be provisioned on the provider
#
kubernetes:
inUse: true
host: xxxxxxxxxxxxxxxxx
project: xxxxxxxxxxxxxxxxx # assigned project name for google
region: us-east-1 # options: any provider region
hostTarget: aws # option: google, aws, azure, nutanix
username: xxxxxxxxxx
password: xxxxxxxxxxx # arbitrary here, not for security purposes
exposeAsService: true
serviceType: LoadBalancer # options: LoadBalancer, NodePort, ClusterIP
useSessionAffinity: 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