Skip to content

Commit c2a5fea

Browse files
authored
Merge pull request #550 from src-d/meyskens-patch-1
Add instructions how to run in docker with bblfsh
2 parents ad6b4ae + c2493a7 commit c2a5fea

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

docs/using-gitbase/getting-started.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,12 @@ docker run --rm --name gitbase -p 3306:3306 -v /my/git/repos:/opt/repos srcd/git
1919

2020
**Note:** remember to replace `/my/git/repos` with the local path where your repositories are stored in your computer.
2121

22+
If you want to use [bblfsh](https://github.com/bblfsh/bblfshd) with running in Docker you can do so by linking the 2 containers.
23+
Fist you need to start following [the bblfsh quick start](https://github.com/bblfsh/bblfshd#quick-start). After that you can run gitbase using:
24+
```
25+
docker run --rm --name gitbase -p 3306:3306 --link bblfshd:bblfshd -e BBLFSH_ENDPOINT=bblfshd:9432 -v /my/git/repos/go:/opt/repos srcd/gitbase:latest
26+
```
27+
2228
### Download and use the binary
2329

2430
Check the [Releases](https://github.com/src-d/gitbase/releases) page to download the gitbase binary.

0 commit comments

Comments
 (0)