-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Dockerfile and update documentation accordingly
- Loading branch information
Showing
3 changed files
with
39 additions
and
15 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
FROM gcr.io/distroless/java:11 | ||
COPY target/bluegenes.jar / | ||
WORKDIR / | ||
EXPOSE 5000 | ||
CMD ["bluegenes.jar"] |
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 |
---|---|---|
@@ -1,22 +1,25 @@ | ||
# Configuration | ||
# Configuring BlueGenes | ||
|
||
This applies primarily to standalone BlueGenes. | ||
## Environment variables | ||
|
||
| Envvar | Description | Default | | ||
| ------ | ----------- | ------- | | ||
| SERVER_PORT | Port used by web server | 5000 | | ||
| LOGGING_LEVEL | Minimum level for logging | :info | | ||
| GOOGLE_ANALYTICS | Google Analytics tracking ID | nil | | ||
| JWT_SECRET | Secret for signing JSON Web Tokens | nil | | ||
| BLUEGENES_DEFAULT_SERVICE_ROOT | InterMine service that is default | https://alpha.flymine.org/alpha/ | | ||
| BLUEGENES_DEFAULT_MINE_NAME | Optional default mine name to display until it gets fetched | FlyMine | | ||
| BLUEGENES_TOOL_PATH | Server directory where BlueGenes tools are installed | ./tools | | ||
|
||
## Note: Ways to Configure | ||
## How to configure | ||
|
||
The preferred way to configure BlueGenes is via `.edn` configuration files, and it is the one being explained here. All keys can be overridden with environment variables. Please refer to [Yogthos's config docs](https://github.com/yogthos/config#yogthosconfig) for more details regarding this method. | ||
BlueGenes supports the many methods of specifying configuration keys provided by [Yogthos' config](https://github.com/yogthos/config#yogthosconfig). The configuration keys listed above can be specified in uppercase or lowercase, and with dashes, underscores or periods as separators. | ||
|
||
|
||
## Configuration via `.edn` files | ||
### Configuration via `config.edn` files | ||
|
||
Copy and paste the code from the `.template` files in `config/dev/` and `config/prod/`, tweak it to match your preferences, and save it as `config.edn` in the same folder. | ||
|
||
|
||
### Analytics (optional) | ||
|
||
For now, the only supported statistics service is [Google analytics](https://analytics.google.com/). If you wish to use this service, configure your domain and then add your Google Analytics ID. | ||
|
||
```clojure | ||
{:google-analytics "UA-12345678-9"} | ||
``` | ||
For now, the only supported statistics service is [Google analytics](https://analytics.google.com/). If you wish to use this service, configure your domain and then add your Google Analytics ID using the `GOOGLE_ANALYTICS` key listed above. |