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

Build website locally with rootless podman #207

Open
wants to merge 6 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
5 changes: 5 additions & 0 deletions .apk
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
gcc
g++
linux-headers
make
musl-dev
3 changes: 3 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -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
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down