To use Wax in a container, make sure you are familiar with Docker and have Docker installed.
- Clone the repo and change directory into it
$ cd ~/Desktop
$ git clone https://github.com/nyu-dss/black-solidarity-day.git
$ cd black-solidarity-day
- Next, build the
wax_image
base image:
$ docker build -t ubuntu/wax .
- You will run all of the Wax tasks and commands within an interactive bash container, which you can create and access by running:
$ docker run -it --rm -v "$PWD":/wax --name wax -p 4000:4000 ubuntu/wax bash
- To serve the site, you can run the following command in the guest container and view it in your host browser:
$ bundle exec jekyll serve --host 0.0.0.0 --verbose
You can exit the container at any time with $ exit
, which will automatically stop and remove the container.
- Enter a Wax Docker container (step 3 above)
- Tear down the existing collection
$ bundle exec rake wax:clobber bsd
- In your local site directory (
~/Desktop/black-solidarity-day
), replace_data/bsd-data.csv
with the new/updated CSV of records and add/replace any items in_data/raw_images
as needed. - Regenerate the image derivatives
$ bundle exec rake wax:derivatives:iiif bsd
- Regenerate the item pages
$ bundle exec rake wax:pages bsd
- Serve the site to make sure it looks right
bundle exec jekyll serve --host 0.0.0.0 --verbose
- Exit the container with
$ exit
, then commit and push your changes.