#!/usr/bin/env bash
set -e

cd $(dirname $0)

docker pull registry.gitlab.com/garpix/projects/garpix3dscan/garpix3dscan-back:latest

ID=$(docker create --rm  --name=garpix3dscan registry.gitlab.com/garpix/projects/garpix3dscan/garpix3dscan-back:latest)

docker cp ${ID}:/code/update.tar .

docker rm garpix3dscan

docker image rm registry.gitlab.com/garpix/projects/garpix3dscan/garpix3dscan-back:latest
#./download-newcore.sh
