You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@arrow.apache.org by GitBox <gi...@apache.org> on 2022/10/06 10:58:07 UTC

[GitHub] [arrow-site] alamb commented on a diff in pull request #251: [MINOR] Add instructions for building site locally using docker

alamb commented on code in PR #251:
URL: https://github.com/apache/arrow-site/pull/251#discussion_r988889271


##########
README.md:
##########
@@ -111,3 +111,21 @@ rsync -r doc/ ../../arrow-site/asf-site/docs/js
 ```
 
 Then add/commit/push from the `asf-site/` git checkout.
+
+
+## Using Docker
+
+If you don't wish to change or install `ruby` and `nodejs` locally, you can use docker to build and preview the site with a command like:
+
+```shell
+docker run -v `pwd`:/arrow-site -p 4000:4000 -it ruby bash
+cd arrow-site
+apt-get update
+apt-get install -y npm
+gem install bundler
+bundle install
+# Serve using local container address
+bundle exec rake HOST=0.0.0.0

Review Comment:
   Nice! Thanks @kou  -- I was trying to figure that out



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org