An hands-on lab about Microcks and Apicurio
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

22 lines
602 B

#!/bin/bash
# Exit on any error
set -e
hugo_version=${HUGO_VERSION:-0.54.0}
hugo_bin_name=${HUGO_BIN_NAME:-hugo_${hugo_version}_Linux-64bit.tar.gz}
hugo_bin_url=${HUGO_BIN_URL:-https://github.com/gohugoio/hugo/releases/download/v${hugo_version}/${hugo_bin_name}}
# Download Hugo
curl -s -o "/tmp/${hugo_bin_name}" -L "${hugo_bin_url}"
# Install Hugo
tar -C /tmp -xf "/tmp/${hugo_bin_name}" hugo
# Build the website
mv /tmp/src/ /tmp/git
/tmp/hugo -s /tmp/git/lab-instructions/
ln -s /tmp/git/lab-instructions/public /tmp/src
# Call the default S2I assemble script
exec /usr/libexec/s2i/assemble