This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/python | |
| #*************************************************************************** | |
| # Copyright 2015 IBM | |
| # | |
| # Licensed under the Apache License, Version 2.0 (the "License"); | |
| # you may not use this file except in compliance with the License. | |
| # You may obtain a copy of the License at | |
| # | |
| # http://www.apache.org/licenses/LICENSE-2.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| #******************************************************************************** | |
| # Copyright 2014 IBM | |
| # | |
| # Licensed under the Apache License, Version 2.0 (the "License"); | |
| # you may not use this file except in compliance with the License. | |
| # You may obtain a copy of the License at | |
| # | |
| # http://www.apache.org/licenses/LICENSE-2.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| #******************************************************************************* | |
| # Copyright 2015 IBM | |
| # | |
| # Licensed under the Apache License, Version 2.0 (the "License"); | |
| # you may not use this file except in compliance with the License. | |
| # You may obtain a copy of the License at | |
| # | |
| # http://www.apache.org/licenses/LICENSE-2.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| #******************************************************************************** | |
| # Copyright 2014 IBM | |
| # | |
| # Licensed under the Apache License, Version 2.0 (the "License"); | |
| # you may not use this file except in compliance with the License. | |
| # You may obtain a copy of the License at | |
| # | |
| # http://www.apache.org/licenses/LICENSE-2.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| #******************************************************************************** | |
| # Copyright 2014 IBM | |
| # | |
| # Licensed under the Apache License, Version 2.0 (the "License"); | |
| # you may not use this file except in compliance with the License. | |
| # You may obtain a copy of the License at | |
| # | |
| # http://www.apache.org/licenses/LICENSE-2.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # run ucd-server | |
| docker run -d -p 8080:8080 -p 8443:8443 --name=ucd-server leanjazz.rtp.raleigh.ibm.com:5000/ucd-server | |
| # run a clm-server and registry with ucd-server | |
| docker run -d -e UCD_Agent_Name=dockerized-clm -p 9443:9443 -p 9080:9080 --name=clm-server --link=ucd-server:ucdserver leanjazz.rtp.raleigh.ibm.com:5000/clm-simple | |
| #create a ucd agent and register with the ucd-server (default by link to ucd-server) | |
| docker run -d -e UCD_Agent_Name=dockerized-agent-1 --name=ucd-agent-1 --link=ucd-server:ucdserver leanjazz.rtp.raleigh.ibm.com:5000/ucd-agent |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Robbie-2014-MacBook-Pro:foo robbie$ git clone https://gist.github.com/d3bc496f01f6221ec0a1.git | |
| Cloning into 'd3bc496f01f6221ec0a1'... | |
| remote: Counting objects: 3, done. | |
| remote: Compressing objects: 100% (2/2), done. | |
| remote: Total 3 (delta 0), reused 0 (delta 0) | |
| Unpacking objects: 100% (3/3), done. | |
| Checking connectivity... done. | |
| Robbie-2014-MacBook-Pro:foo robbie$ ls | |
| d3bc496f01f6221ec0a1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| #******************************************************************************** | |
| # Copyright 2014 IBM | |
| # | |
| # Licensed under the Apache License, Version 2.0 (the "License"); | |
| # you may not use this file except in compliance with the License. | |
| # You may obtain a copy of the License at | |
| # | |
| # http://www.apache.org/licenses/LICENSE-2.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| #******************************************************************************** | |
| # Copyright 2014 IBM | |
| # | |
| # Licensed under the Apache License, Version 2.0 (the "License"); | |
| # you may not use this file except in compliance with the License. | |
| # You may obtain a copy of the License at | |
| # | |
| # http://www.apache.org/licenses/LICENSE-2.0 | |
| # |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| . ./env.sh | |
| usage() | |
| { | |
| echo "Usage: `basename $0` [-a appname] -m minInstances -x maxInstances -d desiredInstances" | |
| echo " -a optional. Defaults to acmeair_webapp. Valid values typically are acmeair_webapp | acmeacir_auth_service" | |
| echo "" | |
| } | |
| asgc_addr=$($docker_cmd inspect --format '{{ .NetworkSettings.IPAddress }}' microscaler) | |
| APP="" |
NewerOlder