Skip to content

Commit 3af1bab

Browse files
authored
Merge pull request #12 from bzz/documentation
doc: initial pass over participants instructions
2 parents 6fc08ce + 00b8c00 commit 3af1bab

File tree

2 files changed

+82
-19
lines changed

2 files changed

+82
-19
lines changed

README.md

Lines changed: 57 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -24,23 +24,28 @@ Workshop given at [DevFest Nantes 2019](https://devfest.gdgnantes.com/sessions/u
2424
2525
</details>
2626

27-
## Setup
27+
Slides: on [gDrive](https://docs.google.com/presentation/d/1vF0JMagmXXzn-h-OaJu6CsDt78oSQSg58YFJsBUaHxk/edit#slide=id.g4f0d75b8b4_0_0)
2828

29-
### With make
29+
OSS tools covered:
30+
- [gitbase](https://docs.sourced.tech/gitbase)
31+
- [bblfsh](https://doc.bblf.sh)
32+
- [BigARTM](http://bigartm.org)
33+
- [OpenNMT](http://opennmt.net)
3034

31-
To build the workshop image and launch the 3 required containers
35+
## Prerequisites
36+
- Docker
3237

33-
```shell
34-
make build-and-run
35-
```
38+
## Dependencies
3639

37-
To only launch the 3 required containers
40+
Import Docker images (works offline):
3841

39-
```shell
40-
make
4142
```
43+
docker load -i images/jupyter.tgz
44+
docker load -i images/gitbase.tgz
45+
docker load -i images/bblfshd-with-drivers.tgz
4246
43-
### Without make
47+
docker images
48+
```
4449

4550
Run bblfsh
4651

@@ -66,16 +71,10 @@ docker run \
6671
--link devfest_bblfshd:devfest_bblfshd \
6772
--env BBLFSH_ENDPOINT=devfest_bblfshd:9432 \
6873
--env MAX_MEMORY=1024 \
69-
--volume /home/mog/work/devfest2019-workshop/repos:/opt/repos \
74+
--volume $(pwd)/repos:/opt/repos \
7075
srcd/gitbase:v0.24.0-rc2
7176
```
7277

73-
Build the jupyter image
74-
75-
```shell
76-
docker build -t devfest .
77-
```
78-
7978
Run the jupyter image
8079

8180
```shell
@@ -85,7 +84,46 @@ docker run \
8584
--publish 8888:8888 \
8685
--link devfest_bblfshd:devfest_bblfshd \
8786
--link devfest_gitbase:devfest_gitbase \
88-
--volume /home/mog/work/devfest2019-workshop/notebooks:/devfest/notebooks \
89-
--volume /home/mog/work/devfest2019-workshop/repos:/devfest/repos \
87+
--volume $(pwd)/notebooks:/devfest/notebooks \
88+
--volume $(pwd)/repos:/devfest/repos \
9089
devfest
9190
```
91+
92+
<details>
93+
<summary>With make</summary>
94+
95+
To build the workshop image and launch the 3 required containers
96+
97+
```shell
98+
make build-and-run
99+
```
100+
101+
To only launch the 3 required containers
102+
103+
```shell
104+
make
105+
```
106+
</details>
107+
108+
109+
## Workflow
110+
111+
### 1. Download the data
112+
113+
We are going to use top XXX repositories from Apache Software Foundation though this workshop.
114+
115+
[Notebook 1: data collection pipeline](#link to local jupyther)
116+
117+
### 2. Project and Developer Similarities
118+
119+
TBD
120+
121+
[Notebook 2: project and developer similarities](#link to local jupyther)
122+
123+
124+
### 3. Function Name Suggestion
125+
126+
TBD
127+
128+
[Notebook 2: function name suggestion](#link to local jupyther)
129+

images/README.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
Images, created for workshop to be used offline.
2+
3+
# bblfshd + drivers image
4+
5+
```
6+
docker pull bblfsh/bblfshd:v2.15.0-drivers
7+
docker save -o images/bblfshd-with-drivers.tgz bblfsh/bblfshd:v2.15.0-drivers
8+
```
9+
10+
11+
# gitbase image
12+
13+
```
14+
docker pull srcd/gitbase:v0.24.0-rc2
15+
docker save -o images/engine.tgz srcd/gitbase:v0.24.0-rc2
16+
```
17+
18+
# jupyter image
19+
20+
Build the jupyter image:
21+
22+
```shell
23+
docker build -t devfest .
24+
docker save -o images/jupyter.tgz devfest
25+
```

0 commit comments

Comments
 (0)