docs-seed/start-docs.sh

14 строки
492 B
Bash

#!/bin/bash
config_file="_config.yml"
if [ ! -z "$1" ]
then
config_file+=",$1"
echo "Using configuration from: $config_file"
fi
rm -rf _site/ .sass-cache .jekyll-cache .asset-cache
docker pull tmitev/docs-seed:site
docker build -t tmitev/docs-seed:site .
docker run --rm -it --env CONFIG_FILE=$config_file --env JEKYLL_COMMAND="serve" --env JEKYLL_EXTRA="--watch --incremental --host 0.0.0.0" --name docs_site -t -i -v /$(pwd):/app_root -p 4000:4000 -t tmitev/docs-seed:site