scripts: add a local setup script for OSX
This commit is contained in:
parent
0875d3dce1
commit
e8b25ad7ff
1 changed files with 19 additions and 0 deletions
19
local-setup-osx.sh
Executable file
19
local-setup-osx.sh
Executable file
|
@ -0,0 +1,19 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
# Install Docker and C libraries on which Python libraries are dependent
|
||||||
|
brew update
|
||||||
|
brew install boot2docker docker libevent libmagic postgresql
|
||||||
|
|
||||||
|
# Some OSX installs don't have /usr/include, which is required for finding SASL headers for our LDAP library
|
||||||
|
if [ ! -e /usr/include ]; then
|
||||||
|
sudo ln -s `xcrun --show-sdk-path`/usr/include /usr/include
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Install Python dependencies
|
||||||
|
sudo pip install -r requirements.txt
|
||||||
|
|
||||||
|
# Put the local testing config in place
|
||||||
|
git clone git@github.com:coreos-inc/quay-config.git ../quay-config
|
||||||
|
ln -s ../../quay-config/local conf/stack
|
Reference in a new issue