This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Change the REPO variable to your desired repo | |
REPO="https://github.com/canonical/chisel-releases" # example | |
workdir=`mktemp -d` | |
>&2 echo "Cloning repo ${REPO} into ${workdir}" | |
git clone $REPO $workdir | |
(cd $workdir && \ | |
git fetch --all --quiet && \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3.4' | |
services: | |
video-analysis: | |
image: sixsq/faces:0.2-arm32v7 | |
ports: | |
- 80:5000 | |
restart: on-failure | |
devices: | |
- /dev/video0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -e | |
stack_name=$(docker stack ls --format '{{.Name}}') | |
mountpoint=$(docker volume inspect ${stack_name}_pgdocker --format '{{.Mountpoint}}') | |
tarball=$1_$(date +'%d%m%Y').tar.gz |