-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
107 lines (106 loc) · 7 KB
/
index.html
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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>NodeJS app for launcher</title>
<style>
body {
font-size: 16px;
line-height: 1.4;
color: #FFF;
background-color: #424242;
font-family: 'Spinnaker', sans-serif !important;
width: 75%;
margin: 20px auto auto;
}
.company-title{
display: flex;
flex-direction: row;
gap: 16px;
align-items: center;
color: #fff;
font-size: 36px;
font-family: 'Adca' ,sans-serif;
}
.logo{
vertical-align:middle;
margin-right: 10px;
}
.tittle {
font-size: 1.5em;
}
.text {
padding-top: 1em;
padding-bottom: 1em;
}
pre {
border: 0;
font-family: monospace, monospace;
font-size: 0.9em;
padding: 0.75rem;
margin-top: 0;
margin-bottom: 0.75rem;
overflow-x: auto;
background-color: #181818;
border-radius: 4px;
box-shadow: none;
-webkit-overflow-scrolling: touch;
color: #1FD7E0 !important;
overflow-wrap: break-word;
}
</style>
</head>
<body>
<h2 class="company-title"><img class="logo" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEEAAABBCAYAAACO98lFAAABgmlDQ1BzUkdCIElFQzYxOTY2LTIuMQAAKJF1kblLQ0EQhz8TxdsIWqQQDBKtEtEIQRuLBC9QiySCV5M8cwg5Hu8lSLAVbAMKoo1XoX+BtoK1ICiKIFYW1oo2Gp7zTCAiZpbZ+fa3O8PuLFhCSSWl1w5AKp3VAhM+x/zCoqP+mUbs2GijO6zo6kxwPERV+7ijxow3brNW9XP/WvNKVFegpkF4VFG1rPCk8PRaVjV5W7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Gm2lbO+ktXG91CkjHxiW8wvXuutXhyv5+0WUXGB11Y2ZxoCyGAlI3RhEvEE7GFTCGAVdkAsCJIfkEWJFCj4Ja/NEj6REvYpMuhFWcc2oZyLWjPmOQMWnUeXRaG9/bd0sGrWyE4m9tA4iCChxQWPFiTQQ8TMjuf6dD71DYI7DaZBSqCVZuC15VRg5ZqYmBTzaX2GeUqhh4XWDjWfaKUE0NtrbRJT4WYNeBI9eZK12Huzt0dQLdibA2VRaafqgoN/dr6bu+3hjh86V9blLBGKqHpllcAXUd4zPoFc4nMAj0vPzmJGfN12Flh84DViXCulS5NRHaBNo0vywePAE24yk5s5Ko4HyaMIz1S/yfxzJm6mfkkaURYESEMwkcVXj3N282//8T/gcWgRnL6F8GsQAAAABJRU5ErkJggg==" alt="NAPPTIVE playground" />NAPPTIVE</h2>
<div class="tittle">This is a NodeJS example</div>
<div class="text">
You can launch your own web from a GitHub repository by changing the LAUNCHER_TARGET_REPO value.
</div>
<div class="text">
Review the application manifests and fill the values
</div>
<pre>
components:
- name: deploy-nodejs-comp
type: webservice
properties:
image: napptive/playground-launcher-nodejs:16-v1.0.0
# Adjust the resources to the application requirements
cpu: "150m"
memory: 128Mi
# (Optional) if the application exposes a port
# If you need to expose your application to Internet, use napptive-ingress trait
# https://docs.napptive.com/oam_definitions/traits/napptive-ingress.html
ports:
- port: 8000
expose: true
env:
# GitHub repo url
- name: LAUNCHER_TARGET_REPO
value: your GitHub repository
# (Optional) Application args (separated by commas)
- name: LAUNCHER_EXEC_ARGS
value: ""
# (Optional) the path of the file where is the main function
- name: LAUNCHER_MAIN_FILE_PATH
value: ""
# (Optional) required if the GitHub repository is private
# GitHub username
# If you prefer to keep it a secret, use a storage trait
# https://docs.napptive.com/oam_definitions/traits/storage.html
- name: LAUNCHER_REPOSITORY_USER
value: ""
# (Optional) required if the GitHub repository is private
# GitHub PAT
# If you prefer to keep it a secret, use a storage trait
# https://docs.napptive.com/oam_definitions/traits/storage.html
- name: LAUNCHER_REPOSITORY_ACCESS_TOKEN
value: ""
traits: # Trait section
- type: napptive-ingress
properties:
port: 8000
path: /
</pre>
</body>
</html>