Skip to content

Commit

Permalink
dist: dont mkdir in container
Browse files Browse the repository at this point in the history
  • Loading branch information
ebuchman committed Jun 2, 2017
1 parent 1f34535 commit 2655bf8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
5 changes: 5 additions & 0 deletions scripts/dist.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@ DIR="$( cd -P "$( dirname "$SOURCE" )/.." && pwd )"
# Change into that dir because we expect that.
cd "$DIR"

# Delete the old dir
echo "==> Removing old directory..."
rm -rf build/pkg
mkdir -p build/pkg

# Do a hermetic build inside a Docker container.
docker build -t tendermint/${REPO_NAME}-builder scripts/${REPO_NAME}-builder/
docker run --rm -e "BUILD_TAGS=$BUILD_TAGS" -v "$(pwd)":/go/src/github.com/tendermint/${REPO_NAME} tendermint/${REPO_NAME}-builder ./scripts/dist_build.sh
Expand Down
5 changes: 0 additions & 5 deletions scripts/dist_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,6 @@ GIT_IMPORT="github.com/tendermint/basecoin/version"
XC_ARCH=${XC_ARCH:-"386 amd64 arm"}
XC_OS=${XC_OS:-"solaris darwin freebsd linux windows"}

# Delete the old dir
echo "==> Removing old directory..."
rm -rf build/pkg
mkdir -p build/pkg

# Make sure build tools are available.
make tools

Expand Down

0 comments on commit 2655bf8

Please sign in to comment.