Adding in some changes from my on boarding process.
This commit is contained in:
parent
91caa4c55c
commit
719eb6ce84
1 changed files with 17 additions and 18 deletions
35
README.md
35
README.md
|
@ -51,14 +51,12 @@ macOS developers will need:
|
|||
|
||||
* [command line tools] or [xcode]
|
||||
* [brew]
|
||||
* [Docker For Mac] or [Docker Machine]
|
||||
* [pyenv] with [pyenv-virtualenv]
|
||||
|
||||
[command line tools]: https://developer.apple.com/downloads
|
||||
[xcode]: https://developer.apple.com/downloads
|
||||
[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
|
||||
[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
|
||||
|
||||
|
@ -67,15 +65,28 @@ macOS developers will need:
|
|||
git clone git@github.com:coreos-inc/quay.git && cd quay
|
||||
|
||||
# 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
|
||||
# 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
|
||||
|
||||
# Install the Python dependencies
|
||||
pyenv install 2.7.11
|
||||
pyenv virtualenv 2.7.11 quay
|
||||
pyenv activate quay
|
||||
pip install -r requirements.txt
|
||||
CFLAGS='-std=c99' pip install -r requirements.txt
|
||||
pip install -r requirements-dev.txt
|
||||
|
||||
# Setup a local config
|
||||
|
@ -83,18 +94,6 @@ git clone git@github.com:coreos-inc/quay-config.git ../quay-config
|
|||
ln -s ../../quay-config/local conf/stack
|
||||
```
|
||||
|
||||
#### clang errors
|
||||
|
||||
Some packages may fail to build with clang (which now defaults to C11).
|
||||
|
||||
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
|
||||
|
||||
TODO
|
||||
|
|
Reference in a new issue