#!/bin/sh
rm -rf dockerize
mkdir dockerize
export GOPATH=`pwd`/dockerize
# go get -v -d github.com/jwilder/dockerize/...
# glock sync github.com/jwilder/dockerize
cd dockerize
git clone https://github.com/jwilder/dockerize src/github.com/jwilder/dockerize
( cd src/github.com/jwilder/dockerize
  # export GO111MODULE=on
  # go mod vendor -v
  go get -v -d
)
cd ..
tar cf - --exclude .git dockerize | xz -9 >dockerize-`date '+%Y%m%d'`.tar.xz
rm -rf dockerize
