Skip to content
This repository has been archived by the owner on May 9, 2024. It is now read-only.

Commit

Permalink
Adding install and uninstall scripts that use sfctl (#1)
Browse files Browse the repository at this point in the history
* Adding install and uninstall scripts that use sfctl

* Addressing PR comments

* Adding missed files

* Updating package version
  • Loading branch information
samedder authored and Sayantan Saha committed Aug 16, 2017
1 parent 7d81d43 commit 5d16518
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
8 changes: 3 additions & 5 deletions generators/guestbinary/templates/deploy/install.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
#!/bin/bash

azure servicefabric application package copy <%= appPackage %> fabric:ImageStore
azure servicefabric application type register <%= appPackage %>
azure servicefabric application create fabric:/<%= appName %> <%= appTypeName %> 1.0.0


sfctl application upload --path <%= appPackage %> --show-progress
sfctl application provision --application-type-build-path <%= appPackage %>
sfctl application create --app-name fabric:/<%= appName %> --app-type <%= appTypeName %> --app-version 1.0.0
5 changes: 3 additions & 2 deletions generators/guestbinary/templates/deploy/uninstall.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/bash

azure servicefabric application delete fabric:/<%= appName %>
azure servicefabric application type unregister <%= appTypeName %> 1.0.0
sfctl application delete --application-id <%= appName %>
sfctl application unprovision --application-type-name <%= appTypeName %> --application-type-version 1.0.0
sfctl store delete --content-path <%= appPackage %>
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "generator-azuresfguest",
"version": "0.0.0",
"version": "1.0.0",
"description": "Azure Service Fabric guest binary app template generator",
"homepage": "https://azure.microsoft.com/en-in/services/service-fabric/",
"authors": {
Expand Down

0 comments on commit 5d16518

Please sign in to comment.