Open
Description
By running the command docker run --rm -v "$PWD:/gitbook" -p 4000:4000 billryan/gitbook gitbook install && gitbook serve
one can entirely circumvent installing node.js and gitbook. Maybe this should be added as an alternative to the wiki explaining how to contribute?
The command is probably not perfect as one needs to install
everytime one wants to serve
which increases build time. I didn't quickly find a way around that. Maybe somebody else can?
Activity
PudottaPommin commentedon Nov 26, 2019
I would recommend using
docker compose
command as it allows a bit easier access to machine and managing it separately.With that, unless I'm mistaken, you can make build process for docker image, which installs gitbook and next runs only invoke
serve
command.graue70 commentedon Nov 27, 2019
I don't see how
docker-compose
helps in this case, but feel free to post instructions on how to build AAA with it.ntindle commentedon Aug 28, 2021
I can look at setting this up if we are still interested
ntindle commentedon Aug 28, 2021
I’d probably implement it as a dev container
berquist commentedon Sep 6, 2021
Related: #691 (comment)
ntindle commentedon Sep 6, 2021
Here's my first pass on a handful of languages. It's not perfect but may help others so I'm putting it here for now. Will open a PR with more languages soonish.
leios commentedon Oct 9, 2021
Since we have the docker container now, I believe this can be done. I am adding a hacktoberfest label to this.
I think this can also be added to the How to contribute chapter because I will be adding in the wiki contents to the chapter soon.
Guzzler commentedon Oct 23, 2021
what is supposed to done here exactly @leios I would like to pick this up if possible.
ntindle commentedon Oct 23, 2021
Howdy! Write some documentation for the resources linked in Contributing.md on how to build the dockerfile, and run some of the code within the book. Some of the expectations would be that someone without docker experience could look at the docs you write and be able to build and run the container and use it to run code in the algorithm archive
ntindle commentedon Dec 3, 2021
Add docker run instructions to how to contribute
docker run -v $(pwd):/tmp -it ghcr.io/algorithm-archivists/aaa-langs:latest bash