Collection of workshops to demonstrate best practices in using Amazon EC2 Spot Instances. https://aws.amazon.com/ec2/spot/
Website for this workshops is available at https://ec2spotworkshops.com
The content of the workshops is built using hugo.
To build the content
-
clone this repository
-
install hugo. The website is currently running on Hugo 0.92, since we have some markdown issues with the latest versions. You can download the exact version here:
- Linux: https://github.com/gohugoio/hugo/releases/download/v0.92.0/hugo_0.92.0_Linux-64bit.tar.gz
- MacOS (Intel): https://github.com/gohugoio/hugo/releases/download/v0.92.0/hugo_0.92.0_macOS-64bit.tar.gz
- MacOS (ARM): https://github.com/gohugoio/hugo/releases/download/v0.92.0/hugo_0.92.0_macOS-ARM64.tar.gz
- Windows: https://github.com/gohugoio/hugo/releases/download/v0.92.0/hugo_0.92.0_Windows-64bit.zip
-
The project uses hugo learn template as a git submodule. To update the content, execute the following code
pushd themes/learn
git submodule init
git submodule update --checkout --recursive
popd
- Run hugo to generate the site, and point your browser to http://localhost:1313
hugo serve -D
The image can also serve as a development environment using docker-compose.
The following command will spin up a container exposing the website at localhost:1313 and mount config.toml
and the directories ./content
, ./layouts
and ./static
, so that local changes will automatically be picked up by the development container.
$ docker-compose up -d ## To see the logs just drop '-d'
Starting ec2-spot-workshops_hugo_1 ... done
This library is licensed under the Amazon Software License.