blob: d0ebf393971961dcdee9170e0e69b46a19d3f599 [file] [log] [blame]
#!/bin/bash
set -x -e
APPNAME=thanos
IMAGE=$(dirname "$0")
# Copy files into the right locations in ${ROOT}.
copy_release_files()
{
INSTALL="install -D --verbose --backup=none"
if [ ! -f ./thanos-0.10.0-rc.0.linux-amd64/thanos ]; then
wget https://github.com/thanos-io/thanos/releases/download/v0.18.0/thanos-0.18.0.linux-amd64.tar.gz
tar -xf thanos-0.18.0.linux-amd64.tar.gz
fi
# Add the dockerfile and binary.
${INSTALL} --mode=644 -T ${IMAGE}/Dockerfile ${ROOT}/Dockerfile
${INSTALL} --mode=755 -T ./thanos-0.18.0.linux-amd64/thanos ${ROOT}/usr/local/bin/thanos
}
source ../bash/docker_build.sh