Skip to content

Commit

Permalink
addresses #177 - ensure curator package can compile without internet …
Browse files Browse the repository at this point in the history
…access
  • Loading branch information
David Laing committed Oct 18, 2015
1 parent 3bf496a commit 4ddbe43
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions packages/curator/packaging
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,13 @@ set -u # report the usage of uninitialized variables

export PATH=/var/vcap/packages/python3/bin:$PATH

pip3 install --install-option="--prefix=$BOSH_INSTALL_TARGET" curator/urllib3-1.8.3.tar.gz
pip3 install --install-option="--prefix=$BOSH_INSTALL_TARGET" curator/click-3.3.tar.gz
pip3 install --install-option="--prefix=$BOSH_INSTALL_TARGET" curator/elasticsearch-py.tar.gz
pip3 install --install-option="--prefix=$BOSH_INSTALL_TARGET" curator/elasticsearch-curator.tar.gz
echo "All dependancies should be in $BOSH_COMPILE_TARGET/curator"
find $BOSH_COMPILE_TARGET/curator

# --no-index prevents contacting pypi to download packages
# --find-links tells pip where to look for the dependancies
pip3 install --no-index --find-links $BOSH_COMPILE_TARGET/curator --install-option="--prefix=$BOSH_INSTALL_TARGET" elasticsearch-curator

echo "Installed to $BOSH_INSTALL_TARGET"
find $BOSH_INSTALL_TARGET

0 comments on commit 4ddbe43

Please sign in to comment.