This is an automated email from the ASF dual-hosted git repository.

alamb pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/datafusion-site.git


The following commit(s) were added to refs/heads/main by this push:
     new f95b8cd  Minor: Add instructions for building with docker (#5)
f95b8cd is described below

commit f95b8cd6fd2cd05fbd2191a935c81cdb9a916f4a
Author: Andrew Lamb <[email protected]>
AuthorDate: Wed Jul 24 10:27:30 2024 -0400

    Minor: Add instructions for building with docker (#5)
---
 README.md | 19 +++++++++++++++++--
 1 file changed, 17 insertions(+), 2 deletions(-)

diff --git a/README.md b/README.md
index d75e91c..621acb1 100644
--- a/README.md
+++ b/README.md
@@ -1,6 +1,6 @@
 # Apache DataFusion Blog Content
 
-This repository contains the Apache DataFusion blog content.
+This repository contains the Apache DataFusion blog at 
https://datafusion.apache.org/blog/
 
 ## Setup for Mac
 
@@ -30,12 +30,27 @@ Should be `ruby 3.1.3p185 (2022-11-24 revision 1a6b16756e) 
[arm64-darwin23]` or
 gem install jekyll bundler
 ```
 
-## Preview site locally
+### Preview site locally
 
 ```shell
 bundle exec jekyll serve
 ```
 
+## Setup for 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`:/datafusion-site -p 4000:4000 -it ruby bash
+cd datafusion-site
+gem install jekyll bundler
+bundle install
+# Serve using local container address
+bundle exec jekyll serve --host 0.0.0.0
+```
+
+Then open http://localhost:4000/blog/ to see the blog locally
+
 ## Publish site
 
 TBD, but create the html with `bundle exec jekyll build` then check the 
content into `asf-site` branch
\ No newline at end of file


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to