tldr-pages / tldr-c-client

C command-line client for tldr pages
MIT License
293 stars 50 forks source link

Use Docker container to help tldr-c-client development #115

Closed jimmychang851129 closed 2 months ago

jimmychang851129 commented 2 months ago

I created a dockerfile that have tools to help tldr-c-client development. Please let me know if it benefits developers, and I will send PR if it is beneficial.

Benefits with Dockerfile:

  1. isolate source directory from build directory.
  2. cgdb installed in the docker image, developers can debug tldr-c-client within docker containers
  3. all compiled files, packages can be removed when docker container removed, no need to worry and file left.

Steps to run docker container

$ docker build -t tldr-c-client .
$ docker run -it --rm -volume <local source directory path>:/root/src` tldr-c-client /bin/bash
$ cgdb --args tldr scriptreplay