google / oss-fuzz

OSS-Fuzz - continuous fuzzing for open source software.
https://google.github.io/oss-fuzz
Apache License 2.0
10.15k stars 2.16k forks source link

infra: add set up for blog #11981

Closed DavidKorczynski closed 1 month ago

DavidKorczynski commented 1 month ago

Adds a blog set up that will make it easy to publish new posts.

You can test this locally by running the build_blog.sh script from the directory of the script. You'll need to have hugo for this, which you can do in the same way as the Dockerfile:

RUN mkdir -p hugo-bin && \
    cd hugo-bin && \
    wget https://github.com/gohugoio/hugo/releases/download/v0.126.1/hugo_extended_0.126.1_linux-amd64.tar.gz && \
    tar -xzf hugo_extended_0.126.1_linux-amd64.tar.gz

ENV PATH="${PATH}:/hugo-bin/"
DavidKorczynski commented 1 month ago

I'm not sure if we want to use gunicorn? python3 -m http.server seemed like an easy solution in this case, am not sure if there are any drawbacks.

DavidKorczynski commented 1 month ago

Screenshot 2024-05-21 000454

DavidKorczynski commented 1 month ago

Screenshot 2024-05-21 000534

oliverchang commented 1 month ago

I'm not sure if we want to use gunicorn? python3 -m http.server seemed like an easy solution in this case, am not sure if there are any drawbacks.

Seems like overkill for just local rendering. We can just use http.server for now.

oliverchang commented 1 month ago

/gcbrun skip