diff --git a/.apk b/.apk new file mode 100644 index 00000000..a03e9c54 --- /dev/null +++ b/.apk @@ -0,0 +1,5 @@ +gcc +g++ +linux-headers +make +musl-dev diff --git a/Gemfile b/Gemfile index a40567be..21b49425 100644 --- a/Gemfile +++ b/Gemfile @@ -1,3 +1,6 @@ source 'https://rubygems.org' gem 'github-pages', group: :jekyll_plugins gem 'json', '~> 2.0' +install_if -> { ENV["LOCAL_QUBES_DOCS"] == '1' } do + gem 'webrick' +end diff --git a/Makefile b/Makefile index 006f6045..45e5f547 100644 --- a/Makefile +++ b/Makefile @@ -4,4 +4,7 @@ all: clean: $(RM) -r _site -.PHONY: all clean +rootless: + podman run --rm --interactive --tty --publish 4000:4000 --volume .:/srv/jekyll:Z --env JEKYLL_ROOTLESS=1 --env LOCAL_QUBES_DOCS=1 jekyll/jekyll:pages jekyll serve + +.PHONY: all clean rootless diff --git a/README.md b/README.md index d36c15a1..b637ff94 100644 --- a/README.md +++ b/README.md @@ -56,6 +56,25 @@ Git submodules for content: ## Instructions +### Rootless Podman + +Tested with a Fedora 38 XFCE qube. + +1. Install `podman`. + +2. Clone this repo, including all submodules, and enter it: + + $ git clone --recursive https://github.com/QubesOS/qubesos.github.io.git + $ cd qubesos.github.io/ + +3. Build and serve the website: + + $ make rootless + +4. Open your browser and navigate to: + + http://127.0.0.1:4000/ + ### Podman Compose These instructions have been tested on a Fedora 33 qube. Podman is not