Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use a Dockerfile to generate the docs #18

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions api/generate/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
FROM ruby:3.0.3-alpine3.15

RUN apk update && \
apk upgrade --no-cache && \
apk add --no-cache \
build-base \
nodejs \
yarn \
rsync

WORKDIR /src
COPY Gemfile .
COPY Gemfile.lock .

RUN gem install bundler:1.17.1
RUN gem install ffi:1.9.25
RUN bundle install
RUN yarn global add @2fd/graphdoc

COPY . /src/

CMD [ "/bin/sh", "./generate.sh" ]
6 changes: 6 additions & 0 deletions api/generate/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
build:
docker build -t docs-generate .

generate: build
docker run --name docs-generate docs-generate && \
docker cp docs-generate:/src/source/index.html.md source/index.html.md
Loading