-
Notifications
You must be signed in to change notification settings - Fork 151
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1713 from CBATeam/docs_config_update
Add Script to Build Docs via Docker
- Loading branch information
Showing
8 changed files
with
62 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,6 @@ | |
*.png binary | ||
*.jpg binary | ||
*.paa binary | ||
|
||
/tools/make_docs eol=lf | ||
/tools/make_docs_docker eol=lf |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/bin/bash | ||
|
||
docker build . -t natural-docs-1-52 -f tools/natural-docs.dockerfile | ||
|
||
docker run -d -i -t -v "$(pwd)/:/cba" --name CBA_A3_Make_Docs natural-docs-1-52 | ||
|
||
docker exec CBA_A3_Make_Docs apt install fakeroot -y; | ||
docker exec CBA_A3_Make_Docs chmod +x cba/tools/make_docs | ||
docker exec CBA_A3_Make_Docs /bin/bash -c "cd cba/tools/; ./make_docs" | ||
|
||
docker kill CBA_A3_Make_Docs | ||
|
||
docker rm CBA_A3_Make_Docs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
FROM debian:latest | ||
|
||
RUN apt update | ||
|
||
RUN apt install wget unzip perl -y | ||
|
||
RUN wget https://sourceforge.net/projects/naturaldocs/files/Stable%20Releases/1.52/NaturalDocs-1.52.zip/download -O /NaturalDocs.zip | ||
|
||
RUN unzip NaturalDocs.zip -d NaturalDocs | ||
|
||
RUN rm NaturalDocs.zip | ||
|
||
RUN chmod +x /NaturalDocs/NaturalDocs | ||
|
||
ENV PATH=/NaturalDocs:$PATH | ||
|
||
CMD ["/bin/bash"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters