Skip to content
This repository has been archived by the owner on Apr 25, 2024. It is now read-only.

Commit

Permalink
Add updated dockerfile that builds the repo and leaves it sitting in …
Browse files Browse the repository at this point in the history
…container for upload to a registry and later use.
  • Loading branch information
marekr authored and nickoe committed Feb 24, 2019
1 parent 875817e commit 9424c5f
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 46 deletions.
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.git
13 changes: 13 additions & 0 deletions Dockerfile
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
8 changes: 0 additions & 8 deletions utils/docker/Dockerfile

This file was deleted.

11 changes: 11 additions & 0 deletions utils/docker/Dockerfile.kicad-doc-builder-base
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."
15 changes: 3 additions & 12 deletions utils/docker/README.adoc
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.
26 changes: 0 additions & 26 deletions utils/docker/make.docker.sh

This file was deleted.

0 comments on commit 9424c5f

Please sign in to comment.