Files
devstack-gate/slave_scripts/update-pip-cache.sh
James E. Blair 7874c0cec0 Add bare metal deployment scripts.
Add ping.py so we can test when a host is up.  ping -c 2 -w 90 will
almost do the right thing, but will exit on a icmp host unreachable.
We need to continue to wait.  ping.py just waits for an answer to a
ping.

Parallelize building the compute nodes (but not the head node).

Kill ping process in ping.py.

Copy PIP cache to host before running.

Add syslog artifacts.
Remove known_host weirdness, depend on .ssh/config instead.

Change-Id: I65a12074cf80feb3ae69d15c81ba32a81566b22a
2011-10-19 20:59:08 -04:00

11 lines
215 B
Bash
Executable File

#!/bin/bash
mkdir -p ~/cache/pip
VENV=`mktemp -d`
virtualenv --no-site-packages $VENV
cd $VENV
. bin/activate
PIP_DOWNLOAD_CACHE=~/cache/pip pip install `cat ~/devstack/files/pips/*`
cd
rm -fr $VENV