Spinnaker is an open source, multi-cloud continuous delivery platform for releasing software changes with high velocity and confidence.
Перейти к файлу
Eric Wiseblatt 8ef83dd443 Updated run_dev instructions.
Also, removed the deprecated --package_manager option in install_development.sh
2015-11-18 20:04:52 +00:00
cassandra Migration of runtime and development scripts. 2015-10-28 20:09:00 +00:00
config Put back config that shouldn't have been removed. 2015-11-16 03:15:15 -05:00
dev Merge pull request #580 from ewiseblatt/02_create_dev 2015-11-18 12:17:33 -05:00
etc Wait for cassandra before starting spinnaker 2015-11-16 15:12:40 +00:00
experimental need to add front50 url to clouddriver in configs 2015-11-18 01:26:35 -08:00
google Updated create_google_dev_vm (and run_dev) 2015-11-18 03:40:33 +00:00
gradle/wrapper newer gradle plugin 2015-11-15 10:04:29 -08:00
install Fix incorrect config prop names: 2015-11-16 10:08:00 -05:00
packer Cosmetic changes. Fix ports in login script 2015-11-18 08:06:36 -05:00
pkg_scripts reconfigure after installing configuration 2015-11-16 07:17:57 +00:00
pylib Fixes reconfigure_spinnaker.sh to behave properly when not run as root. 2015-11-18 18:11:14 +00:00
runtime Handle spaces in build path 2015-11-01 06:06:20 +00:00
unittest Add environment variabels to configurator. 2015-11-16 06:51:48 +00:00
.gitignore add config/spinnaker-local.yml to git ignore 2015-11-11 10:45:41 -08:00
AUTHORS Create AUTHORS 2015-11-15 10:16:46 -08:00
BootstrapSpinnaker.sh Rewrite url in BootstrapSpinnaker.sh when build_release.py is run. 2015-11-16 00:22:03 +00:00
InstallSpinnaker.sh Update InstallSpinnaker.sh 2015-11-18 07:51:49 -05:00
LICENSE.txt Create LICENSE.txt 2015-11-15 10:17:41 -08:00
README.adoc Updated run_dev instructions. 2015-11-18 20:04:52 +00:00
build.gradle Consistent naming for packages 2015-11-18 00:14:54 -05:00
gradlew newer gradle plugin 2015-11-15 10:04:29 -08:00
gradlew.bat Adding config files. Adding Install Scripts 2015-11-14 17:32:49 -05:00
settings.gradle Adding config files. Adding Install Scripts 2015-11-14 17:32:49 -05:00

README.adoc

:doctype: book

image:http://join.spinnaker.io/badge.svg[Slack Status,link=http://join.spinnaker.io]

= Using Spinnaker

If you are only interested in using Spinnaker, please refer to the main
Spinnaker site and http://spinnaker.io/documentation/getting_started.html[Getting Started] guide.

= Setting Up Spinnaker For Development

These instructions cover pulling Spinnaker from source and setting up to run locally against Amazon Web Services and/or Google Cloud Platform accounts. 

Please ensure you have set up your target environment correctly by following step 1 of the http://spinnaker.io/documentation/getting_started.html[Getting Started Documentation].

If you do not wish to build from source, please follow the http://spinnaker.io/documentation/getting_started.html#step-3-install-and-run-spinnaker[Install and Run Spinnaker] section of the getting started guide for a one line deployment in Ubuntu.

If you would prefer to try a container based solution, see https://github.com/spinnaker/spinnaker/tree/master/experimental/docker-compose[docker-compose installation]

These scripts are tested on:

* Ubuntu 14.04 LTS
* Mac OS X 10.11

== Get the bootstrap / configuration repo

[source,bash]
----
#export SPINNAKER_HOME=/path/to/your/Spinnaker/workspace
mkdir -p $SPINNAKER_HOME
cd $SPINNAKER_HOME
git clone git@github.com:spinnaker/spinnaker.git
----

== Configure your environment

The Spinnaker platform has a few prerequisites, which are installed as a part of this configuration process. They are: 

* https://www.oracle.com/java/index.html[JDK8]
* http://redis.io/[Redis]
* http://cassandra.apache.org/[Cassandra]
* https://www.packer.io/[Packer]

=== MacOSX

You need to have http://brew.sh/[homebrew] installed and ensure your version of git is above 2.0.

[source,bash]
----
brew install redis cassandra brew-cask packer
brew cask install java
cd $SPINNAKER_HOME
mkdir build
cd build
../spinnaker/dev/refresh_source.sh --pull_origin --use_ssh --github_user default
----

=== Debian-linux

[source,bash]
----
cd $SPINNAKER_HOME
spinnaker/dev/install_development.sh
spinnaker/dev/bootstrap_dev.sh
----

The `bootstrap_dev.sh` script will ask to install additional components. `gcloud`
is only needed to write releases to Google Cloud Storage, but is convenient
to have if you plan on using or accessing Google Cloud Platform resources
from your development environment. These could be installed at a system level
rather than user level, but the default install requires updating your path
so is performed here.

== Configure Spinnaker

We will create a directory for Spinnaker configuration overrides, copy the default configuration template there, and edit to select
the appropriate cloud provider(s).

[source,bash]
----
cd $SPINNAKER_HOME
mkdir -p $HOME/.spinnaker
cp spinnaker/config/default-spinnaker-local.yml $HOME/.spinnaker/spinnaker-local.yml
chmod 600 $HOME/.spinnaker/spinnaker-local.yml
----

Edit `$HOME/.spinnaker/spinnaker-local.yml` and set the enabled option for the cloud provider(s) of your choice.

The default-spinnaker-local.yml file contains some references to environment
variables (e.g. `${SPINNAKER_AWS_ENABLED}` and all the other upper case names
in the providers section). These are added by the spinnaker install, which
isnt used in a developer environment so you will need to replace these with
literals (e.g. `true`). Minimally, set the provider `${*_ENABLED}` values. If
they are `false` then you dont need to worry about the other attributes.


== Start Spinnaker Services

( If you're running on Mac OS, please make sure that your redis server and cassandra server is up and running. Make sure that cqlsh is accessible in your path and you can connect to cassandra by calling `cqlsh` in your terminal ).

[source,bash]
----
cd $SPINNAKER_HOME/build
../spinnaker/dev/run_dev.sh [service]
----

If a service is provided, then just that one service will be started.
If no service is provided, then all the services will be started
(including redis and cassandra unless they are specified with a remote host).
If a service is already running (even if not yet available) then it will
not be restarted.

*Note* `run_dev.sh` might get stuck waiting on a service to start. Hitting CTRL-C just stops the waiting on service it doesn't terminate the services. If it seems stuck
stop and restart run_dev.sh.

== Stop Spinnaker Services

[source,bash]
----
cd $SPINNAKER_HOME/build
../spinnaker/dev/stop_dev.sh [service]
----

If a service is provided, then just that one service will be stopped.
If no service is provided then all the spinnaker services will be stopped.
Cassandra and redis are not affected by stop_dev.sh