commit
21505353dd
1 changed files with 22 additions and 17 deletions
39
README.md
39
README.md
|
@ -51,31 +51,40 @@ macOS developers will need:
|
||||||
|
|
||||||
* [command line tools] or [xcode]
|
* [command line tools] or [xcode]
|
||||||
* [brew]
|
* [brew]
|
||||||
* [Docker For Mac] or [Docker Machine]
|
|
||||||
* [pyenv] with [pyenv-virtualenv]
|
|
||||||
|
|
||||||
[command line tools]: https://developer.apple.com/downloads
|
[command line tools]: https://developer.apple.com/downloads
|
||||||
[xcode]: https://developer.apple.com/downloads
|
[xcode]: https://developer.apple.com/downloads
|
||||||
[brew]: https://github.com/Homebrew/brew
|
[brew]: https://github.com/Homebrew/brew
|
||||||
[Docker For Mac]: https://beta.docker.com/docs/mac/getting-started://beta.docker.com/docs/mac/getting-started
|
|
||||||
[Docker Machine]: https://docs.docker.com/machine/install-machine://docs.docker.com/machine/install-machine
|
|
||||||
[pyenv]: https://github.com/yyuu/pyenv
|
|
||||||
[pyenv-virtualenv]: https://github.com/yyuu/pyenv-virtualenv
|
|
||||||
|
|
||||||
```
|
```
|
||||||
# Download the code
|
# Download the code
|
||||||
git clone git@github.com:coreos-inc/quay.git && cd quay
|
git clone git@github.com:coreos-inc/quay.git && cd quay
|
||||||
|
|
||||||
# Install the system dependencies
|
# Install the system dependencies
|
||||||
brew install libevent libmagic postgresql gpgme
|
brew install libevent libmagic postgresql gpgme pyenv pyenv-virtualenv docker docker-machine
|
||||||
|
|
||||||
|
# create a default virtualmachine for docker
|
||||||
|
docker-machine create -d virtualbox default
|
||||||
|
|
||||||
|
# setup brew dependencies
|
||||||
|
# note you may want to add these to your bashrc or zshrc file
|
||||||
|
eval "$(pyenv virtualenv-init -)"
|
||||||
|
eval "$(pyenv init -)"
|
||||||
|
eval $(/usr/local/bin/docker-machine env default)
|
||||||
|
|
||||||
# Some installs don't have /usr/include, required for finding SASL header files
|
# Some installs don't have /usr/include, required for finding SASL header files
|
||||||
|
# http://apple.stackexchange.com/questions/196224/unix-ln-s-command-not-permitted-in-osx-el-capitan-beta3
|
||||||
|
# note this command might fail because of new OSx write protections here above is a link that explains
|
||||||
|
# how to fix that
|
||||||
if [ ! -e /usr/include ]; then sudo ln -s `xcrun --show-sdk-path`/usr/include /usr/include; fi
|
if [ ! -e /usr/include ]; then sudo ln -s `xcrun --show-sdk-path`/usr/include /usr/include; fi
|
||||||
|
|
||||||
# Install the Python dependencies
|
# Install the Python dependencies
|
||||||
|
pyenv install 2.7.11
|
||||||
pyenv virtualenv 2.7.11 quay
|
pyenv virtualenv 2.7.11 quay
|
||||||
pyenv activate quay
|
pyenv activate quay
|
||||||
pip install -r requirements.txt
|
|
||||||
|
# Some packages may fail to build with clang (which now defaults to C11).
|
||||||
|
CFLAGS='-std=c99' pip install -r requirements.txt
|
||||||
pip install -r requirements-dev.txt
|
pip install -r requirements-dev.txt
|
||||||
|
|
||||||
# Setup a local config
|
# Setup a local config
|
||||||
|
@ -83,17 +92,13 @@ git clone git@github.com:coreos-inc/quay-config.git ../quay-config
|
||||||
ln -s ../../quay-config/local conf/stack
|
ln -s ../../quay-config/local conf/stack
|
||||||
```
|
```
|
||||||
|
|
||||||
#### clang errors
|
### Useful docs
|
||||||
|
|
||||||
Some packages may fail to build with clang (which now defaults to C11).
|
[docker](https://beta.docker.com/docs/mac/getting-started://beta.docker.com/docs/mac/getting-started)
|
||||||
|
[docker-machine](https://docs.docker.com/machine/install-machine://docs.docker.com/machine/install-machine)
|
||||||
|
[pyenv](https://github.com/yyuu/pyenv)
|
||||||
|
[pyenv-virtualenv](https://github.com/yyuu/pyenv-virtualenv)
|
||||||
|
|
||||||
They can be installed with C99 with:
|
|
||||||
|
|
||||||
```
|
|
||||||
CFLAGS='-std=c99' pip install --no-cache --no-binary :all: gevent
|
|
||||||
CFLAGS='-std=c99' pip install --no-cache --no-binary :all: cffi
|
|
||||||
CFLAGS='-std=c99' pip install --no-cache --no-binary :all: cryptography
|
|
||||||
```
|
|
||||||
|
|
||||||
### Linux
|
### Linux
|
||||||
|
|
||||||
|
|
Reference in a new issue