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

Commit

Permalink
Fix site build scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
gonzalobg committed Aug 10, 2022
1 parent ff743f0 commit e90171c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
3 changes: 2 additions & 1 deletion docs/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
FROM jekyll/jekyll:4.0
COPY Gemfile /Gemfile
RUN /bin/bash -l -c "bundle install"
RUN /bin/bash -l -c "bundle install"
RUN /bin/bash -l -c "bundle add webrick"
7 changes: 6 additions & 1 deletion docs/serve
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,13 @@

set -ex

mkdir -p build/docs
(
cd build/docs
cp ../../docs/Gemfile .
docker build -f ../../docs/Dockerfile -t libcudacxx:docs .
)
(
cd docs
docker build -f Dockerfile -t libcudacxx:docs .
docker run --rm -p 4000:4000 -v $(pwd):/srv/jekyll -u $(id -u):$(id -g) -it libcudacxx:docs bash -c "jekyll serve --watch --host 0.0.0.0"
)

0 comments on commit e90171c

Please sign in to comment.