From bba8989c525266ede6db46904a5060f19d072233 Mon Sep 17 00:00:00 2001 From: r2dev2 Date: Mon, 24 Jun 2024 13:53:35 -0700 Subject: [PATCH] add docker setup --- Makefile | 10 ++++++++++ README.md | 6 +++--- 2 files changed, 13 insertions(+), 3 deletions(-) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..6acb109 --- /dev/null +++ b/Makefile @@ -0,0 +1,10 @@ +JEKYLL_VERSION := 4.2.2 +docker = docker + +build: + ${docker} run --rm --volume="${PWD}:/srv/jekyll" -it jekyll/jekyll:${JEKYLL_VERSION} jekyll build + +serve: + ${docker} run --rm --name pbrucla --volume="${PWD}:/srv/jekyll" -p 4000:4000 -it jekyll/jekyll:${JEKYLL_VERSION} jekyll serve --watch --drafts + +.PHONY: build serve diff --git a/README.md b/README.md index 802dbdd..482e36a 100644 --- a/README.md +++ b/README.md @@ -18,8 +18,8 @@ This site is built using [Jekyll](https://jekyllrb.com/) and hosted on [GitHub P git clone https://github.com/pbrucla/pbrucla.github.io.git cd pbrucla.github.io ``` -2. Install all _Prerequisites_ and follow the _Instructions_ at [https://jekyllrb.com/docs/](https://jekyllrb.com/docs/) -3. To build the site and make it available on a local server, run ```bundle exec jekyll serve``` and check out [http://localhost:4000](http://localhost:4000) +2. Install [Docker](https://www.docker.com/products/docker-desktop/) +3. Run `make serve` and check out [http://localhost:4000](http://localhost:4000) ## Contributing 1. Before making any changes, run `git pull` to ensure your local repository is up to date. @@ -45,4 +45,4 @@ If you see any issues or have any questions, feel free to contact us or open a p **Discord**: [https://discord.gg/j9dgf2q](https://discord.gg/j9dgf2q) ## Acknowledgments -This website would not have been possible without the many contributions from our members. Thank you to Benson Liu, Andrew Kuai, Joshua Zhu, Juliet Zhang, Jason An, Ronak Badhe, Konstantin Tzantchev, & Joshua Yin for their contributions to this website! Special thanks to Juliet Zhang for helping to put together the original design! For a full list of contributors, check out the [contributors page](https://github.com/pbrucla/pbrucla.github.io/graphs/contributors). \ No newline at end of file +This website would not have been possible without the many contributions from our members. Thank you to Benson Liu, Andrew Kuai, Joshua Zhu, Juliet Zhang, Jason An, Ronak Badhe, Konstantin Tzantchev, & Joshua Yin for their contributions to this website! Special thanks to Juliet Zhang for helping to put together the original design! For a full list of contributors, check out the [contributors page](https://github.com/pbrucla/pbrucla.github.io/graphs/contributors).