From d1709c4f9e2826ad335064eed42cbe1e9aa19abd Mon Sep 17 00:00:00 2001 From: troymc Date: Thu, 12 May 2016 12:07:16 +0200 Subject: [PATCH 1/3] Added .gitattributes file to ignore files when doing git archive --- .gitattributes | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 00000000..c82148e4 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,10 @@ +benchmarking-tests export-ignore +deploy-cluster-aws export-ignore +docs export-ignore export-ignore +speed-tests export-ignore +tests export-ignore +.gitattributes export-ignore +.gitignore export-ignore +.travis.yml export-ignore +*.md export-ignore +codecov.yml export-ignore \ No newline at end of file From fbce1712491bf20c25821069b71fe3b64ebd6b35 Mon Sep 17 00:00:00 2001 From: troymc Date: Thu, 12 May 2016 12:18:41 +0200 Subject: [PATCH 2/3] Removed TODO comment about excluding more files in git archive --- deploy-cluster-aws/awsdeploy.sh | 2 -- 1 file changed, 2 deletions(-) diff --git a/deploy-cluster-aws/awsdeploy.sh b/deploy-cluster-aws/awsdeploy.sh index 6290d01e..5c3787fd 100755 --- a/deploy-cluster-aws/awsdeploy.sh +++ b/deploy-cluster-aws/awsdeploy.sh @@ -92,8 +92,6 @@ else cd .. rm -f bigchaindb-archive.tar.gz git archive $BRANCH --format=tar --output=bigchaindb-archive.tar - # TODO: the archive could exclude more files besides the .gitignore ones - # such as the docs. See http://tinyurl.com/zo6fxeg gzip bigchaindb-archive.tar mv bigchaindb-archive.tar.gz deploy-cluster-aws cd deploy-cluster-aws From 8a98ab65df368269e8fad09b90a8145f6f080e63 Mon Sep 17 00:00:00 2001 From: troymc Date: Thu, 12 May 2016 12:19:41 +0200 Subject: [PATCH 3/3] rm bigchaindb-archive.tar.gz after installing on remote server --- deploy-cluster-aws/fabfile.py | 1 + 1 file changed, 1 insertion(+) diff --git a/deploy-cluster-aws/fabfile.py b/deploy-cluster-aws/fabfile.py index 9e4a1d47..89aef15b 100644 --- a/deploy-cluster-aws/fabfile.py +++ b/deploy-cluster-aws/fabfile.py @@ -124,6 +124,7 @@ def install_bigchaindb_from_git_archive(): run('tar xvfz bigchaindb-archive.tar.gz') sudo('pip3 install .') # sudo('python3 setup.py install') + run('rm bigchaindb-archive.tar.gz') # Configure BigchainDB