Skip to content

Commit

Permalink
add uninstall process
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Schmidt committed Nov 6, 2018
1 parent 4c1b62c commit c1abfac
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 1,062 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
services.json
6 changes: 6 additions & 0 deletions dcos-uninstall.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash

set -ex

dcos marathon app list --json | jq ".[].id" | xargs -t -n1 dcos marathon app remove

4 changes: 2 additions & 2 deletions deploy-dcos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1027,7 +1027,7 @@ cat << EOF > ./services.json
]
},
"cpus": 1,
"disk": 30000,
"disk": 300,
"executor": "",
"healthChecks": [
{
Expand Down Expand Up @@ -1076,7 +1076,7 @@ cat << EOF > ./services.json
EOF

# Deploy
curl -skSL -X PUT -H "Authorization: token=$(dcos config show core.dcos_acs_token)" -H 'Content-Type: application/json' -d @services.json $(dcos config show core.dcos_url)/service/marathon/v2/groups
curl -skSL -X PUT -H "Authorization: token=$(dcos config show core.dcos_acs_token)" -H 'Content-Type: application/json' -d @services.json "$(dcos config show core.dcos_url)/service/marathon/v2/groups?force=true"

sleep 3
# Open cluster
Expand Down

0 comments on commit c1abfac

Please sign in to comment.