forked from p4lang/p4-spec
-
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.
Add Dockerfiles for AsciiDoc, they are failing bhot for the same error
Signed-off-by: Davide Scano <d.scano89@gmail.com> Signed-off-by: Andy Fingerhut <andy_fingerhut@alum.wustl.edu>
- Loading branch information
1 parent
a3e3ec4
commit 2fa4c05
Showing
2 changed files
with
29 additions
and
7 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
FROM ruby:3.3.5 | ||
LABEL maintainer="Language Design Working Group <p4-design@lists.p4.org>" | ||
LABEL description="Dockerfile used for building the asciidoc specification" | ||
|
||
RUN apt-get update && \ | ||
apt-get install -y cmake flex bison libglib2.0-dev libcairo2-dev libpango1.0-dev libxml2-dev libwebp-dev libzstd-dev libgdk-pixbuf-2.0-dev | ||
|
||
RUN gem install asciidoctor \ | ||
gem install asciidoctor-pdf \ | ||
gem install asciidoctor-mathematical \ | ||
gem install asciidoctor-bibtex\ | ||
gem install asciidoctor-lists\ | ||
git clone https://github.com/rouge-ruby/rouge &&\ | ||
cd rouge \ | ||
git log -n 1 | cat \ | ||
gem build rouge.gemspec \ | ||
gem install rouge-4.4.0.gem | ||
|
||
VOLUME ["/usr/src/p4-spec"] | ||
WORKDIR /usr/src/p4-spec |