This repository has been archived on 2023-02-07. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
blender-my-data/docker/deploy.sh
Sybren A. Stüvel 1d56da62fd docker/deploy → docker/staging
For clarity, and to be in sync with what we do in the Blender Dev Fund
website.
2018-11-06 18:31:28 +01:00

18 lines
521 B
Bash
Executable File

#!/bin/sh -ex
# Everything to deploy in one script. Just takes some presses on the ENTER key.
MODE="${1:-quick}"
# If we can't connect to the Docker daemon continuing is futile.
if ! docker info > /dev/null 2>&1; then
echo "Unable to connect to the Docker daemon, start it please." >&2
exit 42
fi
# Only required when we update elastic, or first deploy from this machine.
[ -e ./staging/elasticsearch-* ] || ./prep_elastic.sh
./prep_docker_img.sh
./build_docker_img.sh "$MODE"
./2server.sh sintel.blender.org