Sign inSign up

felixfbecker/olfaction

By felixfbecker

•Updated over 6 years ago

Server for code smell research data

Image
0

228

felixfbecker/olfaction repository overview

⁠Server for Code Smell Data

Olfaction is a server with storage backend for code smell research data. It exposes GraphQL and REST APIs over stored code smells and the version control information of analyzed repositories.

⁠Environment variables

The following environment variables are used to configure the server:

NameDefaultDescription
HOSTlocalhostHost for the HTTP API server to listen on
PORT4040Port for the HTTP API server to listen on
REPO_ROOT./reposRoot directory where to find and store uploaded git repositories
PGHOSTlocalhostPostgres database host
PGPORT5432Postgres database host
PGUSERPostgres database user name
PGPASSWORDPostgres database password
PGDATABASEPostgres database name
BASIC_AUTH_USERSIf set, restricts access through HTTP basic auth. JSON object of usernames as keys and passwords as values.

Additionally, the optional OpenTracing support using Jaeger is configured through environment variables documented in the Jaeger client documentation⁠. To disable OpenTracing completely, JAEGER_DISABLED can be set to true.

⁠Set up database

Make sure the above environment variables are set.

Create a database with PostgreSQL:

createdb olfaction

Then initialize the schema:

psql < ./schema/schema.sql

To optimize performance, it is recommended to tweak the settings postgresql.conf depending on the available system resources.

Tag summary

Content type

Image

Digest

Size

560.1 MB

Last updated

over 6 years ago

docker pull felixfbecker/olfaction