Hosting an lxr service with docker
lxr
is a tool for reading source code.
Since opengrok requires much resource and htags is too slow, I decided to switch to lxr
.
steps
create a folder for the source code. Say,
~/src
move the repo directory to this location. e.g.
~/src/linux-rpi
pull the lxr docker image.
$ docker pull hwchiu/docker-lxr
- start the docker
$ docker run --name lxr -it -d -v /home/cyanide/src:/source -p 8001:80 hwchiu/docker-lxr 0.0.0.0 linux-rpi
It works. Although it is ugly as f**k
May 21, 2021