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

  1. create a folder for the source code. Say, ~/src

  2. move the repo directory to this location. e.g. ~/src/linux-rpi

  3. pull the lxr docker image.

   $ docker pull hwchiu/docker-lxr
  1. 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

image-20210521152209395

It works. Although it is ugly as f**k

May 21, 2021

HOME