added info for docker

This commit is contained in:
mik-tf 2024-10-22 23:51:12 -04:00
parent 800022e588
commit c6d20f36d7

View File

@ -34,6 +34,8 @@ Note that you will need to adjust the local path of the git repo and the docker
- On a terminal window, create the code repository on the local machine - On a terminal window, create the code repository on the local machine
``` ```
mkdir -p ~/code/git.ourworld.tf/tfgrid mkdir -p ~/code/git.ourworld.tf/tfgrid
cd ~/code/git.ourworld.tf/tfgrid
git clone https://git.ourworld.tf/tfgrid/info_tfgrid
``` ```
- Start Hero docker - Start Hero docker
``` ```
@ -49,26 +51,26 @@ Note that you will need to adjust the local path of the git repo and the docker
``` ```
- Change directory - Change directory
``` ```
cd ~/code/git.ourworld.tf/tfgrid cd ~/code/git.ourworld.tf/tfgrid/info_tfgrid
``` ```
- Git configuration - Git configuration
- Set git lobally with a safe directory - Set git lobally with a safe directory
``` ```
git config --global --add safe.directory /root/code/git.ourworld.tf/tfgrid/info_tfgrid git config --global --add safe.directory /root/code/git.ourworld.tf/tfgrid/info_tfgrid
``` ```
- You can now use Hero normally, e.g. with **projectinca** - You can now use Hero normally, e.g. with **tech**
- With a URL: - With a URL:
``` ```
hero mdbook -u https://git.ourworld.tf/tfgrid/info_tfgrid/src/branch/main/heroscript/projectinca hero mdbook -u https://git.ourworld.tf/tfgrid/info_tfgrid/src/branch/main/heroscript/tech
``` ```
- With a path: - With a path:
``` ```
hero mdbook -p /root/code/git.ourworld.tf/tfgrid/info_tfgrid/heroscript/projectinca hero mdbook -p /root/code/git.ourworld.tf/tfgrid/info_tfgrid/heroscript/tech
``` ```
- In this case, you can modify the mdbook on the local machine's git repo that you set in the prerequisites section and the changes will be shown on the docker path - In this case, you can modify the mdbook on the local machine's git repo that you set in the prerequisites section and the changes will be shown on the docker path
- To view the mdbook on your local browser, run the lines: - To view the mdbook on your local browser, run the lines:
``` ```
cd ~/hero/var/mdbuild/projectinca/ cd ~/hero/var/mdbuild/tech/
mdbook serve -n 0.0.0.0 mdbook serve -n 0.0.0.0
``` ```
- You should be able to view the rendered book at - You should be able to view the rendered book at