forked from linux-kernel-labs/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
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 linux-kernel-labs#151 from tavip/lkt-docker-docs
Add support for building documentation via docker
- Loading branch information
Showing
6 changed files
with
66 additions
and
9 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
FROM ubuntu:18.04 | ||
|
||
RUN apt-get update | ||
RUN apt-get install -y software-properties-common | ||
RUN apt-get install -y sudo | ||
RUN apt-get install -y make | ||
RUN apt-get install -y git | ||
RUN apt-get install -y python | ||
RUN apt-get install -y python-pip | ||
RUN apt-get install -y ditaa | ||
RUN apt-get install -y graphviz | ||
RUN pip install Sphinx==1.6.7 sphinx_rtd_theme hieroglyph==1.0 | ||
# append new packages here, to minimize docker rebuild time | ||
RUN rm -rf /var/lib/apt/lists/* | ||
|
||
RUN useradd -ms /bin/bash ubuntu && adduser ubuntu sudo && echo -n 'ubuntu:ubuntu' | chpasswd | ||
|
||
# Enable passwordless sudo for users under the "sudo" group | ||
RUN sed -i.bkp -e \ | ||
's/%sudo\s\+ALL=(ALL\(:ALL\)\?)\s\+ALL/%sudo ALL=NOPASSWD:ALL/g' \ | ||
/etc/sudoers | ||
|
||
USER ubuntu | ||
WORKDIR /home/ubuntu/ | ||
|
||
ENV PATH ${PATH}:/home/ubuntu/.local |
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,12 @@ | ||
version: '3' | ||
services: | ||
docs-build: | ||
build: | ||
context: . | ||
dockerfile: Dockerfile | ||
volumes: | ||
- ../../../:/linux | ||
environment: | ||
# workaround for binfmt_misc support in containers | ||
- SPHINX_DITAA_CMD=jexec | ||
- SPHINX_DITAA_ARG=/usr/bin/ditaa |
This file was deleted.
Oops, something went wrong.