forked from guardian/grid
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
simplifies the main README.md
- Loading branch information
Showing
2 changed files
with
61 additions
and
144 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
# Running services | ||
|
||
Grid consists of many micro-services. There are a few different ways to start them. | ||
|
||
## Manually | ||
From the **project root**: | ||
|
||
- [elasticsearch](../elasticsearch/dev-start.sh) | ||
- media-api `sbt "project media-api" "run 9001"` | ||
- thrall `sbt "project thrall" "run 9002"` | ||
- image-loader `sbt "project image-loader" "run 9003"` | ||
- ftp-watcher (optional, and soon to be deprecated) `sbt -Dftp.active=true "project ftp-watcher" "run 9004"` | ||
- kahuna `sbt "project kahuna" "run 9005"` | ||
- cropper `sbt "project cropper" "run 9006"` | ||
- metadata-editor `sbt "project metadata-editor" "run 9007"` | ||
- collections `sbt "project collections" "run 9010"` | ||
- auth `sbt "project auth" "run 9011"` | ||
- [imgops](../imgops/README.md) | ||
|
||
## [run.sh](../run.sh) | ||
`run.sh` is a single script to start all the services. | ||
|
||
## [run_tmux.sh](../run_tmux.sh) | ||
`run_tmux.sh` is a single script to start all the services in a tmux environment. | ||
|
||
## [GridRunner](https://github.com/guardian/grid_runner/) | ||
Grid Runner helps manage grid micro-services | ||
|
||
Install grid_runner: | ||
|
||
$ gem install grid_runner | ||
|
||
* aliases makes life better (in .bash_profile or somewhere similar): | ||
alias gr=grid_runner | ||
* remember to update once in a while | ||
|
||
From the project root: | ||
|
||
$ gr list | ||
$ gr run all | ||
$ gr kill kahuna media-api | ||
$ gr restart elasticsearch | ||
$ gr log thrall usage | ||
|
||
* all commands take either "all" or a space-delimited list of apps | ||
|
||
you can see the different application names in the Procfile (in project root) | ||
|
||
|
||
## Docker | ||
Its possible to run Grid using Docker. Please follow the [README](../docker/README.md#setup) beforehand. | ||
|
||
To run the containers, run: | ||
|
||
```sh | ||
docker-compose up -d | ||
``` | ||
|
||
NB: This has only been tested in DEV. |