-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
infra: add set up for blog #11981
infra: add set up for blog #11981
Conversation
I'm not sure if we want to use |
Signed-off-by: David Korczynski <david@adalogics.com>
Seems like overkill for just local rendering. We can just use http.server for now. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks!
COPY build_blog.sh /build_blog.sh | ||
RUN /build_blog.sh | ||
|
||
CMD exec python3 -m http.server 8011 -d /oss-fuzz-blog/page/public |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For our infra, we probably want to build a simple Cloud Build integration that just dumps the static site to a GCS bucket instead. We can do this later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep sounds good, would you be able to do this? /oss-fuzz-blog/page/public
holds the static website content.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep, we can handle this!
Signed-off-by: David Korczynski <david@adalogics.com>
/gcbrun skip |
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: