Skip to content
Merged
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
2 changes: 1 addition & 1 deletion .devcontainer/Containerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM quay.io/crc-org/mdbook:0.4.43
FROM ghcr.io/crc-org/mdbook:latest

RUN dnf install -y git-core \
&& dnf clean all \
Expand Down
27 changes: 27 additions & 0 deletions .github/workflows/container.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Build Container

on:
workflow_dispatch:

jobs:
build:
name: Build Container
runs-on: 'ubuntu-latest'

steps:
- name: Check out repository code
uses: actions/checkout@v4

- name: Build container
run: |
podman build -t ghcr.io/${{ github.repository_owner }}/mdbook:latest \
-f containers/Containerfile

- name: Login to container registry
run: |
podman login ghcr.io -u ${{ github.actor }} -p ${{ secrets.GITHUB_TOKEN }}

- name: Push to registry
run: |
podman push ghcr.io/${{ github.repository_owner }}/mdbook:latest

4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ For example, it is easy to use `.` to start the GitHub Web Editor to read and ed
To create the HTML output, you can use:

```
$ podman run --rm -v $PWD:/workspace quay.io/crc-org/mdbook:0.4.43 build
$ podman run --rm -v $PWD:/workspace ghcr.io/crc-org/mdbook:latest build
```

This will create a `book` folder that contains the output for a static webpage like GitHub Pages.
Expand All @@ -41,4 +41,4 @@ $ npm install -g @devcontainers/cli
$ devcontainer up --workspace-folder .
```

After the container has been started, you can use `mdbook build` to generate the output, and `mdbook serve` to open a preview using the forward of port 3000.
After the container has been started, you can use `mdbook build` to generate the output, and `mdbook serve` to open a preview using the forward of port 3000.
8 changes: 4 additions & 4 deletions containers/Containerfile
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
FROM registry.fedoraproject.org/fedora:40 AS builder
FROM registry.access.redhat.com/ubi9:latest AS builder


RUN dnf install -y cargo openssl-devel \
&& cargo install mdbook \
&& cargo install mdbook --locked \
&& cargo install mdbook-callouts \
&& cargo install mdbook-mermaid \
&& cargo install mdbook-kroki-preprocessor
&& cargo install mdbook-kroki-preprocessor --locked


FROM registry.fedoraproject.org/fedora:40
FROM registry.access.redhat.com/ubi9:latest

COPY --from=builder /root/.cargo/bin/mdbook /usr/bin
COPY --from=builder /root/.cargo/bin/mdbook-callouts /usr/bin
Expand Down
1 change: 0 additions & 1 deletion content/SUMMARY.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ CRC Engineering docs
- [macOS code signing](macOS-code-signing.md)
- [Windows installation process](Windows-installation.md)
- [Networking]()
- [Track TCP proxy connections](Using-tcpconnect-to-track-TCP-proxy-connections.md)
- [User-mode network stack](Usermode-networking-stack.md)
- [Blocking traffic with nwfilter](Blocking-traffic-with-nwfilter.md)
- [Using tcpconnect to track TCP proxy connections](Using-tcpconnect-to-track-TCP-proxy-connections.md)
Expand Down