mirror of
https://github.com/Microsoft/sql-server-samples.git
synced 2025-12-08 14:58:54 +00:00
delete app-templates
This commit is contained in:
@@ -1,20 +0,0 @@
|
||||
# App Templates
|
||||
These are the language kernel templates for deployment and consumption of applications deployed into an on premise SQL Server Big Data Cluster.
|
||||
|
||||
Each directory listed is a separate language kernel that is supported for app deployment:
|
||||
- Python
|
||||
- R
|
||||
- SSIS
|
||||
- Mleap
|
||||
|
||||
Each template contains three primary files:
|
||||
- spec.yaml
|
||||
- This is the deployment definition given to the cluster
|
||||
- run-spec.yaml
|
||||
- This is the app consumption definition given to the VS Code Ext. client
|
||||
- app code
|
||||
- Example code for deployment of that particular type of language kernel
|
||||
|
||||
These templates are automatically pulled by the mssqlctl CLI and the App Deploy VS Code Extension. Customers may also download these templates themselves outside of the clients, if desired.
|
||||
|
||||
Future language kernels supported for app deployment will be contributed as templates here.
|
||||
@@ -1,45 +0,0 @@
|
||||
{
|
||||
"schema": {
|
||||
"fields": [{
|
||||
"name": "state",
|
||||
"type": "string"
|
||||
}, {
|
||||
"name": "bathrooms",
|
||||
"type": "double"
|
||||
}, {
|
||||
"name": "square_feet",
|
||||
"type": "double"
|
||||
}, {
|
||||
"name": "bedrooms",
|
||||
"type": "double"
|
||||
}, {
|
||||
"name": "security_deposit",
|
||||
"type": "double"
|
||||
}, {
|
||||
"name": "cleaning_fee",
|
||||
"type": "double"
|
||||
}, {
|
||||
"name": "extra_people",
|
||||
"type": "double"
|
||||
}, {
|
||||
"name": "number_of_reviews",
|
||||
"type": "double"
|
||||
}, {
|
||||
"name": "review_scores_rating",
|
||||
"type": "double"
|
||||
}, {
|
||||
"name": "room_type",
|
||||
"type": "string"
|
||||
}, {
|
||||
"name": "host_is_superhost",
|
||||
"type": "string"
|
||||
}, {
|
||||
"name": "cancellation_policy",
|
||||
"type": "string"
|
||||
}, {
|
||||
"name": "instant_bookable",
|
||||
"type": "string"
|
||||
}]
|
||||
},
|
||||
"rows": [["NY", 2.0, 1250.0, 3.0, 50.0, 30.0, 2.0, 56.0, 90.0, "Entire home/apt", "1.0", "strict", "1.0"]]
|
||||
}
|
||||
@@ -1,3 +0,0 @@
|
||||
name: hello-mleap
|
||||
version: v1
|
||||
inputs: ./frame.airbnb.json
|
||||
@@ -1,4 +0,0 @@
|
||||
name: hello-mleap
|
||||
version: v1
|
||||
runtime: Mleap
|
||||
bundleFileName: airbnb.model.lr.zip
|
||||
@@ -1,18 +0,0 @@
|
||||
def handler(msg):
|
||||
"""
|
||||
Writes input argument back-out to the standard output returning input as
|
||||
output.
|
||||
|
||||
Generated by: `SQL Server Big Data Cluster`
|
||||
|
||||
:param msg: The message to echo.
|
||||
:type msg: str
|
||||
:return: The input message `msg` as output `out`.
|
||||
"""
|
||||
print(msg)
|
||||
out = msg
|
||||
return out
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
handler('Hello')
|
||||
@@ -1,4 +0,0 @@
|
||||
name: hello-python
|
||||
version: v1
|
||||
inputs:
|
||||
msg: hello
|
||||
@@ -1,11 +0,0 @@
|
||||
name: hello-python
|
||||
version: v1
|
||||
runtime: Python
|
||||
src: ./hello.py
|
||||
entrypoint: handler
|
||||
replicas: 1
|
||||
poolsize: 1
|
||||
inputs:
|
||||
msg: str
|
||||
output:
|
||||
out: str
|
||||
@@ -1,12 +0,0 @@
|
||||
#' Writes input argument back-out to the
|
||||
#' standard output returning input as output.
|
||||
#'
|
||||
#' Generated by: `SQL Server Big Data Cluster`
|
||||
#'
|
||||
#' @param msg A character message to echo.
|
||||
#' @return The input \code{msg} as output \code{out}.
|
||||
handler <- function(msg) {
|
||||
print(msg)
|
||||
out = msg
|
||||
out
|
||||
}
|
||||
@@ -1,4 +0,0 @@
|
||||
name: hello-r
|
||||
version: v1
|
||||
inputs:
|
||||
msg: hello
|
||||
@@ -1,11 +0,0 @@
|
||||
name: hello-r
|
||||
version: v1
|
||||
runtime: R
|
||||
src: ./hello.R
|
||||
entrypoint: handler
|
||||
replicas: 1
|
||||
poolsize: 1
|
||||
inputs:
|
||||
msg: character
|
||||
output:
|
||||
out: character
|
||||
@@ -1,68 +0,0 @@
|
||||
<?xml version="1.0"?>
|
||||
<DTS:Executable xmlns:DTS="www.microsoft.com/SqlServer/Dts"
|
||||
DTS:refId="Package"
|
||||
DTS:CreationDate="11/20/2018 3:58:23 PM"
|
||||
DTS:CreationName="Microsoft.Package"
|
||||
DTS:CreatorComputerName="BLIANG-DESKTOP"
|
||||
DTS:CreatorName="REDMOND\bilia"
|
||||
DTS:DTSID="{7C0751EA-999B-41E0-8CC8-05BE487E024E}"
|
||||
DTS:ExecutableType="Microsoft.Package"
|
||||
DTS:LastModifiedProductVersion="15.0.0900.40"
|
||||
DTS:LocaleID="1033"
|
||||
DTS:ObjectName="hello"
|
||||
DTS:PackageType="5"
|
||||
DTS:ProtectionLevel="0"
|
||||
DTS:VersionBuild="21"
|
||||
DTS:VersionGUID="{02130BCE-DADA-4DE8-9482-8091BE951AC8}">
|
||||
<DTS:Property
|
||||
DTS:Name="PackageFormatVersion">8</DTS:Property>
|
||||
<DTS:Variables>
|
||||
<DTS:Variable
|
||||
DTS:CreationName=""
|
||||
DTS:DTSID="{E7375C68-7DBC-4901-9697-78F9A53E6BD6}"
|
||||
DTS:IncludeInDebugDump="2345"
|
||||
DTS:Namespace="User"
|
||||
DTS:ObjectName="Message">
|
||||
<DTS:VariableValue
|
||||
DTS:DataType="8"
|
||||
xml:space="preserve"></DTS:VariableValue>
|
||||
</DTS:Variable>
|
||||
</DTS:Variables>
|
||||
<DTS:Executables>
|
||||
<DTS:Executable
|
||||
DTS:refId="Package\Expression Task"
|
||||
DTS:CreationName="Microsoft.ExpressionTask"
|
||||
DTS:Description="Expression Task"
|
||||
DTS:DTSID="{86B3286B-A73A-4CF8-927B-832952DED85A}"
|
||||
DTS:ExecutableType="Microsoft.ExpressionTask"
|
||||
DTS:LocaleID="-1"
|
||||
DTS:ObjectName="Expression Task"
|
||||
DTS:ThreadHint="0">
|
||||
<DTS:Variables />
|
||||
<DTS:ObjectData>
|
||||
<ExpressionTask
|
||||
Expression="@[User::Message] = "hello"" />
|
||||
</DTS:ObjectData>
|
||||
</DTS:Executable>
|
||||
</DTS:Executables>
|
||||
<DTS:DesignTimeProperties><![CDATA[<?xml version="1.0"?>
|
||||
<!--This CDATA section contains the layout information of the package. The section includes information such as (x,y) coordinates, width, and height.-->
|
||||
<!--If you manually edit this section and make a mistake, you can delete it. -->
|
||||
<!--The package will still be able to load normally but the previous layout information will be lost and the designer will automatically re-arrange the elements on the design surface.-->
|
||||
<Objects
|
||||
Version="8">
|
||||
<!--Each node below will contain properties that do not affect runtime behavior.-->
|
||||
<Package
|
||||
design-time-name="Package">
|
||||
<LayoutInfo>
|
||||
<GraphLayout
|
||||
Capacity="4" xmlns="clr-namespace:Microsoft.SqlServer.IntegrationServices.Designer.Model.Serialization;assembly=Microsoft.SqlServer.IntegrationServices.Graph">
|
||||
<NodeLayout
|
||||
Size="160,42"
|
||||
Id="Package\Expression Task"
|
||||
TopLeft="344,190" />
|
||||
</GraphLayout>
|
||||
</LayoutInfo>
|
||||
</Package>
|
||||
</Objects>]]></DTS:DesignTimeProperties>
|
||||
</DTS:Executable>
|
||||
@@ -1,2 +0,0 @@
|
||||
name: hello-ssis
|
||||
version: v1
|
||||
@@ -1,6 +0,0 @@
|
||||
name: hello-ssis
|
||||
version: v1
|
||||
runtime: SSIS
|
||||
entrypoint: ./hello.dtsx
|
||||
options: /REP V
|
||||
schedule: "*/2 * * * *"
|
||||
Reference in New Issue
Block a user