Skip to content

Commit 2b6638b

Browse files
committed
feat: basic-docker-compose
1 parent bfa185d commit 2b6638b

8 files changed

Lines changed: 498 additions & 0 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
src/grimoireLab/logs/
12
.env
23
.DS_Store
34

src/grimoireLab/README.md

Whitespace-only changes.
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
2+
upstream sortinghat {
3+
server sortinghat:9314;
4+
}
5+
server {
6+
include mime.types;
7+
sendfile on;
8+
listen 8000;
9+
10+
server_name localhost nginx;
11+
12+
location / {
13+
proxy_pass ${KIBANA_HOST};
14+
proxy_redirect ${KIBANA_HOST} /;
15+
proxy_http_version 1.1;
16+
proxy_set_header Upgrade $http_upgrade;
17+
proxy_set_header Connection 'upgrade';
18+
proxy_set_header Host $host;
19+
proxy_cache_bypass $http_upgrade;
20+
}
21+
22+
location /identities {
23+
rewrite ^/identities/(.*) /$1 break;
24+
25+
include /etc/nginx/uwsgi_params;
26+
uwsgi_pass sortinghat;
27+
uwsgi_param Host $host;
28+
uwsgi_param X-Real-IP $remote_addr;
29+
uwsgi_param X-Forwarded-For $proxy_add_x_forwarded_for;
30+
uwsgi_param X-Forwarded-Proto $http_x_forwarded_proto;
31+
}
32+
33+
location ~ ^/identities/(css|js|fonts)/ {
34+
rewrite ^/identities/(.*) /$1 break;
35+
36+
root /sortinghat;
37+
}
38+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"grimoirelab": {
3+
"meta": {
4+
"title": "GrimoireLab"
5+
},
6+
"git": [
7+
"https://github.com/chaoss/grimoirelab.git"
8+
]
9+
}
10+
}
Lines changed: 151 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,151 @@
1+
[general]
2+
short_name = GrimoireLab
3+
update = true
4+
min_update_delay = 60
5+
debug = false
6+
logs_dir = /home/grimoire/logs
7+
bulk_size = 100
8+
scroll_size = 100
9+
aliases_file = /home/grimoire/aliases.json
10+
11+
[projects]
12+
projects_file = /home/grimoire/conf/projects.json
13+
14+
[es_collection]
15+
url = https://admin:GrimoireLab.1@opensearch-node1:9200
16+
17+
[es_enrichment]
18+
url = https://admin:GrimoireLab.1@opensearch-node1:9200
19+
autorefresh = true
20+
21+
[sortinghat]
22+
host = nginx
23+
user = admin
24+
password = admin
25+
port = 8000
26+
path = /identities/api/
27+
ssl = false
28+
database = sortinghat_db
29+
autoprofile = [github, git]
30+
matching = [email,name,username]
31+
sleep_for = 100
32+
unaffiliated_group = Unknown
33+
affiliate = true
34+
35+
[panels]
36+
kibiter_time_from =
37+
kibiter_default_index =
38+
kibiter_url =
39+
kibiter_version =
40+
41+
[phases]
42+
collection = true
43+
identities = true
44+
enrichment = true
45+
panels = false
46+
47+
#[bugzillarest]
48+
#raw_index = bugzillarest_demo_raw
49+
#enriched_index = bugzillarest_demo_enriched
50+
#no-archive = true
51+
52+
#[confluence]
53+
#no-archive = true
54+
#raw_index = confluence_demo_raw
55+
#enriched_index = confluence_demo_enriched
56+
57+
#[discourse]
58+
#raw_index = discourse_demo_raw
59+
#enriched_index = discourse_demo_enriched
60+
#no-archive = true
61+
62+
[git]
63+
raw_index = git_demo_raw
64+
enriched_index = git_demo_enriched
65+
latest-items = true
66+
studies = [enrich_demography:git, enrich_areas_of_code:git, enrich_onion:git]
67+
68+
#[github]
69+
#api-token = <YOUR_API_TOKEN_WHERE>
70+
#enterprise-url = <YOUR_GITHUB_ENTERPRISE_URL>
71+
#raw_index = github_demo_raw
72+
#sleep-for-rate = true
73+
#sleep-time = "300"
74+
#enriched_index = github_demo_enriched
75+
76+
#[gitlab:issues]
77+
#api-token = <YOUR_API_TOKEN_HERE>
78+
#raw_index = gitlab_issues_demo_raw
79+
#enriched_index = gitlab_issues_demo_enriched
80+
#no-archive = true
81+
#enterprise-url = <YOUR_GITLAB_INSTANCE_URL>
82+
#sleep-for-rate = true
83+
84+
#[gitlab:merge]
85+
#api-token = <YOUR_API_TOKEN_HERE>
86+
#raw_index = gitlab_merges_demo_raw
87+
#enriched_index = gitlab_merges_demo_enriched
88+
#no-archive = true
89+
#enterprise-url = <YOUR_GITLAB_INSTANCE_URL>
90+
#category = merge_request
91+
#sleep-for-rate = true
92+
93+
#[jira]
94+
#raw_index = jira_demo_raw
95+
#enriched_index = jira_demo_enriched
96+
#no-archive = true
97+
98+
#[pipermail]
99+
#raw_index = pipermail_demo_raw
100+
#enriched_index = pipermail_demo_enriched
101+
#no-verify = true
102+
103+
#[mediawiki]
104+
#raw_index = mediawiki_demo_raw
105+
#enriched_index = mediawiki_demo_enriched
106+
#no-archive = true
107+
108+
#[meetup]
109+
#raw_index = meetup_demo_raw
110+
#enriched_index = meetup_demo_enriched
111+
#api-token = <YOUR_API_TOKEN_WHERE>
112+
#no-archive = true
113+
#sleep-for-rate = true
114+
#sleep-time = "300"
115+
116+
#[stackexchange]
117+
#raw_index = stackexchange_demo_raw
118+
#enriched_index = stackexchange_demo_enriched
119+
#api-token = <YOUR_API_TOKEN_WHERE>
120+
#no-archive = true
121+
122+
#[slack]
123+
#raw_index = slack_demo_raw
124+
#enriched_index = slack_demo_enriched
125+
#api-token = <YOUR_API_TOKEN_WHERE>
126+
#no-archive = true
127+
128+
#[supybot]
129+
#raw_index = supybot_demo_raw
130+
#enriched_index = supybot_demo_enriched
131+
132+
#[twitter]
133+
#raw_index = twitter_demo_raw
134+
#enriched_index = twitter_demo_enriched
135+
#api-token = <YOUR_API_TOKEN_WHERE>
136+
#no-archive = true
137+
#sleep-for-rate = true
138+
#sleep-time = 300
139+
140+
## studies based on enriched indexes
141+
142+
[enrich_demography:git]
143+
144+
[enrich_areas_of_code:git]
145+
in_index = git_demo_raw
146+
out_index = git-aoc_demo_enriched
147+
148+
[enrich_onion:git]
149+
in_index = git
150+
out_index = git-onion_demo_enriched
151+
contribs_field = hash

src/grimoireLab/config/setup.cfg

Lines changed: 153 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,153 @@
1+
[general]
2+
short_name = GrimoireLab
3+
update = true
4+
min_update_delay = 60
5+
debug = false
6+
logs_dir = /home/grimoire/logs
7+
bulk_size = 100
8+
scroll_size = 100
9+
aliases_file = /home/grimoire/aliases.json
10+
11+
[projects]
12+
projects_file = /home/grimoire/conf/projects.json
13+
14+
[es_collection]
15+
url = http://localhost:9200
16+
17+
[es_enrichment]
18+
url = http://localhost:9200
19+
autorefresh = true
20+
21+
[sortinghat]
22+
host = localhost
23+
user = root
24+
password = root
25+
port = 8000
26+
path = /identities/api/
27+
ssl = false
28+
database = sortinghat_db
29+
autoprofile = [github, git]
30+
matching = [email,name,username]
31+
sleep_for = 100
32+
unaffiliated_group = Unknown
33+
affiliate = true
34+
35+
[panels]
36+
kibiter_time_from =
37+
kibiter_default_index =
38+
kibiter_url =
39+
kibiter_version =
40+
github-repos = true
41+
42+
43+
[phases]
44+
collection = true
45+
identities = true
46+
enrichment = true
47+
panels = false
48+
49+
#[bugzillarest]
50+
#raw_index = bugzillarest_demo_raw
51+
#enriched_index = bugzillarest_demo_enriched
52+
#no-archive = true
53+
54+
#[confluence]
55+
#no-archive = true
56+
#raw_index = confluence_demo_raw
57+
#enriched_index = confluence_demo_enriched
58+
59+
#[discourse]
60+
#raw_index = discourse_demo_raw
61+
#enriched_index = discourse_demo_enriched
62+
#no-archive = true
63+
64+
[git]
65+
raw_index = git_demo_raw
66+
enriched_index = git_demo_enriched
67+
latest-items = true
68+
studies = [enrich_demography:git, enrich_areas_of_code:git, enrich_onion:git]
69+
70+
#[github]
71+
#api-token = <YOUR_API_TOKEN_WHERE>
72+
#enterprise-url = <YOUR_GITHUB_ENTERPRISE_URL>
73+
#raw_index = github_demo_raw
74+
#sleep-for-rate = true
75+
#sleep-time = "300"
76+
#enriched_index = github_demo_enriched
77+
78+
#[gitlab:issues]
79+
#api-token = <YOUR_API_TOKEN_HERE>
80+
#raw_index = gitlab_issues_demo_raw
81+
#enriched_index = gitlab_issues_demo_enriched
82+
#no-archive = true
83+
#enterprise-url = <YOUR_GITLAB_INSTANCE_URL>
84+
#sleep-for-rate = true
85+
86+
#[gitlab:merge]
87+
#api-token = <YOUR_API_TOKEN_HERE>
88+
#raw_index = gitlab_merges_demo_raw
89+
#enriched_index = gitlab_merges_demo_enriched
90+
#no-archive = true
91+
#enterprise-url = <YOUR_GITLAB_INSTANCE_URL>
92+
#category = merge_request
93+
#sleep-for-rate = true
94+
95+
#[jira]
96+
#raw_index = jira_demo_raw
97+
#enriched_index = jira_demo_enriched
98+
#no-archive = true
99+
100+
#[pipermail]
101+
#raw_index = pipermail_demo_raw
102+
#enriched_index = pipermail_demo_enriched
103+
#no-verify = true
104+
105+
#[mediawiki]
106+
#raw_index = mediawiki_demo_raw
107+
#enriched_index = mediawiki_demo_enriched
108+
#no-archive = true
109+
110+
#[meetup]
111+
#raw_index = meetup_demo_raw
112+
#enriched_index = meetup_demo_enriched
113+
#api-token = <YOUR_API_TOKEN_WHERE>
114+
#no-archive = true
115+
#sleep-for-rate = true
116+
#sleep-time = "300"
117+
118+
#[stackexchange]
119+
#raw_index = stackexchange_demo_raw
120+
#enriched_index = stackexchange_demo_enriched
121+
#api-token = <YOUR_API_TOKEN_WHERE>
122+
#no-archive = true
123+
124+
#[slack]
125+
#raw_index = slack_demo_raw
126+
#enriched_index = slack_demo_enriched
127+
#api-token = <YOUR_API_TOKEN_WHERE>
128+
#no-archive = true
129+
130+
#[supybot]
131+
#raw_index = supybot_demo_raw
132+
#enriched_index = supybot_demo_enriched
133+
134+
#[twitter]
135+
#raw_index = twitter_demo_raw
136+
#enriched_index = twitter_demo_enriched
137+
#api-token = <YOUR_API_TOKEN_WHERE>
138+
#no-archive = true
139+
#sleep-for-rate = true
140+
#sleep-time = 300
141+
142+
## studies based on enriched indexes
143+
144+
[enrich_demography:git]
145+
146+
[enrich_areas_of_code:git]
147+
in_index = git_demo_raw
148+
out_index = git-aoc_demo_enriched
149+
150+
[enrich_onion:git]
151+
in_index = git
152+
out_index = git-onion_demo_enriched
153+
contribs_field = hash
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
uwsgi_param QUERY_STRING $query_string;
2+
uwsgi_param REQUEST_METHOD $request_method;
3+
uwsgi_param CONTENT_TYPE $content_type;
4+
uwsgi_param CONTENT_LENGTH $content_length;
5+
uwsgi_param REQUEST_URI $request_uri;
6+
uwsgi_param PATH_INFO $document_uri;
7+
uwsgi_param DOCUMENT_ROOT $document_root;
8+
uwsgi_param SERVER_PROTOCOL $server_protocol;
9+
uwsgi_param HTTPS $https if_not_empty;
10+
uwsgi_param REMOTE_ADDR $remote_addr;
11+
uwsgi_param REMOTE_PORT $remote_port;
12+
uwsgi_param SERVER_PORT $server_port;
13+
uwsgi_param SERVER_NAME $server_name;

0 commit comments

Comments
 (0)