Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
H
helm3
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
helm3
Commits
c431d16f
Commit
c431d16f
authored
Mar 03, 2016
by
jackgr
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Local scripts
parent
eff281ed
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
74 additions
and
0 deletions
+74
-0
start.sh
start.sh
+50
-0
stop.sh
stop.sh
+24
-0
No files found.
start.sh
0 → 100755
View file @
c431d16f
#!/bin/bash
LOGDIR
=
log
if
[[
!
-d
$LOGDIR
]]
;
then
mkdir
$LOGDIR
fi
KUBECTL
=
`
which kubectl
`
if
[[
-z
$KUBECTL
]]
;
then
echo
Cannot find kubectl
exit
1
fi
echo
"Starting resourcifier..."
RESOURCIFIER
=
bin/resourcifier
if
[[
-z
$RESOURCIFIER
]]
;
then
echo
Cannot find resourcifier
exit
1
fi
pkill
-f
$RESOURCIFIER
nohup
$RESOURCIFIER
>
$LOGDIR
/resourcifier.log 2>&1
--kubectl
=
$KUBECTL
--port
=
8082 &
echo
echo
"Starting expandybird..."
EXPANDYBIRD
=
bin/expandybird
if
[[
-z
$EXPANDYBIRD
]]
;
then
echo
Cannot find expandybird
exit
1
fi
pkill
-f
$EXPANDYBIRD
nohup
$EXPANDYBIRD
>
$LOGDIR
/expandybird.log 2>&1
--port
=
8081
--expansion_binary
=
expansion/expansion.py &
echo
echo
"Starting deployment manager..."
MANAGER
=
bin/manager
if
[[
-z
$MANAGER
]]
;
then
echo
Cannot find manager
exit
1
fi
pkill
-f
$MANAGER
nohup
$MANAGER
>
$LOGDIR
/manager.log 2>&1
--port
=
8080
--kubectl
=
$KUBECTL
--expanderURL
=
http://localhost:8081
--deployerURL
=
http://localhost:8082 &
echo
echo
"Starting kubectl proxy..."
pkill
-f
"
$KUBECTL
proxy"
nohup
$KUBECTL
proxy
--port
=
8001 &
sleep
1s
echo
echo
"Done."
stop.sh
0 → 100755
View file @
c431d16f
#!/bin/bash
echo
"Stopping resourcifier..."
RESOURCIFIER
=
`
which resourcifier
`
if
[[
!
-z
$RESOURCIFIER
]]
;
then
pkill
-f
$RESOURCIFIER
fi
echo
echo
"Stopping expandybird..."
EXPANDYBIRD
=
`
which expandybird
`
if
[[
!
-z
$EXPANDYBIRD
]]
;
then
pkill
-f
$EXPANDYBIRD
fi
echo
echo
"Stopping deployment manager..."
MANAGER
=
`
which manager
`
if
[[
!
-z
$MANAGER
]]
;
then
pkill
-f
$MANAGER
fi
echo
echo
"Done."
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment