This repository has been archived by the owner on Apr 25, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 116
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add updated dockerfile that builds the repo and leaves it sitting in …
…container for upload to a registry and later use.
- Loading branch information
Showing
6 changed files
with
28 additions
and
46 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 |
---|---|---|
@@ -0,0 +1 @@ | ||
.git |
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 @@ | ||
FROM kicadeda/kicad-doc-builder-base:latest as doc-build-env | ||
|
||
WORKDIR /src | ||
COPY . . | ||
|
||
RUN mkdir -p build | ||
WORKDIR /src/build | ||
RUN cmake -DBUILD_FORMATS="pdf;epub" ../ | ||
RUN make | ||
|
||
FROM scratch as output-image | ||
|
||
COPY --from=doc-build-env /src/build/src /src |
This file was deleted.
Oops, something went wrong.
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,11 @@ | ||
FROM debian:latest | ||
|
||
RUN apt update && apt install asciidoc cmake dblatex fonts-freefont-ttf \ | ||
fonts-vlgothic gettext git make po4a source-highlight \ | ||
texlive-lang-cyrillic texlive-lang-english texlive-lang-european \ | ||
texlive-lang-french texlive-lang-german texlive-lang-italian \ | ||
texlive-lang-japanese texlive-lang-other texlive-lang-polish \ | ||
texlive-lang-spanish texlive-xetex texlive-lang-chinese \ | ||
ruby-full rubygems -y | ||
|
||
CMD echo "Placeholder." |
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 |
---|---|---|
@@ -1,13 +1,4 @@ | ||
This is a Docker image builder that produces an environment capable of building | ||
the KiCad documentation. | ||
|
||
.Method | ||
* Install Docker. On Ubuntu: `sudo apt-get install docker.io` | ||
* Clone the docs | ||
** `git clone https://github.com/ciampix/kicad-doc` | ||
* Build the Docker image (you only need to do this once, or if you change the Dockerfile | ||
or files that go into the image: | ||
** `sudo docker build -t kicad-img kicad-doc/utils/docker` | ||
* Run the build script within docker: | ||
** `sudo docker run -v $(pwd)/kicad-doc:/mnt/kicad-doc kicad-img` | ||
# Readme | ||
## kicad-doc-builder-base | ||
|
||
This creates a base container image with the tools required to build the docs repo without going through the process of installing over a gigabyte of tools each time. |
This file was deleted.
Oops, something went wrong.