New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adds deploy docs #15
Adds deploy docs #15
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
<img src="../web/public/images/logo.png" height="68" /> | ||
<img src="https://github.com/elixir-bench/elixir-bench.github.io/blob/master/images/logo.png" height="68" /> | ||
|
||
# ElixirBench Runner | ||
|
||
|
@@ -15,13 +15,34 @@ Benchmarks are running inside a docker container, so you need to have | |
|
||
## Deployment | ||
|
||
To build the release you can use `mix release`. The relese requires a `RUNNER_API_URL`, `RUNNER_API_KEY` and `RUNNER_API_USER` | ||
environment variables for communication with the API server. | ||
This project uses `distillery` for deployments. The relese requires a `RUNNER_API_URL`, | ||
`RUNNER_API_KEY` and `RUNNER_API_USER` environment variables for communication with | ||
the API server. Built releases are placed under `_build/prod/rel/runner` | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think this just duplicates the information from the table below, which seems much better imo :) (aka I'd remove the mention of the envs here) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 💯 removed! There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ? They're still up there? The place were you just removed them I actually liked :D There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. oh sorry! bad reading 😮 I've just put it back! 👍 😄 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. removed now ;) |
||
directory. To build the release you can use the command below: | ||
|
||
```bash | ||
$ MIX_ENV=prod mix release --env=prod | ||
``` | ||
|
||
The project requires the setup of the following environment variables: | ||
|
||
| NAME | Description | Default | | ||
|:----------------:|:--------------------------------:|:--------------------------------------:| | ||
| `RUNNER_API_URL` | url for the api server | https://api.elixirbench.org/runner-api | | ||
| `RUNNER_API_USER`| username for authentication | test-runner | | ||
| `RUNNER_API_KEY` | password key for authentication | test | | ||
|
||
Start the application passing the required variables | ||
|
||
```bash | ||
RUNNER_API_URL=api.elixirbench.org/runner-api RUNNER_API_USER=test-runner RUNNER_API_KEY=test _build/prod/rel/runner/bin/runner foreground | ||
``` | ||
|
||
The API Server needs to have proper credentials for the runner configured as well. | ||
This can be done from the release console using: | ||
|
||
The server needs to have proper credentials for the runner configured as well. This can be done from | ||
the release console using: | ||
```elixir | ||
ElixirBench.Benchmarks.create_runner(%{api_key: some_key, name: some_name}) | ||
ElixirBench.Benchmarks.create_runner(%{name: test-runner, api_key: test}) | ||
``` | ||
|
||
## License | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍