From 719eb6ce84900ef76273cff8715ef3da11d4a0c1 Mon Sep 17 00:00:00 2001 From: charltonaustin Date: Thu, 6 Oct 2016 10:43:25 -0400 Subject: [PATCH 1/5] Adding in some changes from my on boarding process. --- README.md | 35 +++++++++++++++++------------------ 1 file changed, 17 insertions(+), 18 deletions(-) diff --git a/README.md b/README.md index b50ad3b76..0efc4cf85 100644 --- a/README.md +++ b/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 From 5366ba63d90cb27546239e4dcfc83d6f0397a31e Mon Sep 17 00:00:00 2001 From: charltonaustin Date: Thu, 6 Oct 2016 10:56:58 -0400 Subject: [PATCH 2/5] Adding in the comment that I removed from the other section. --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 0efc4cf85..ac2d14eac 100644 --- a/README.md +++ b/README.md @@ -86,6 +86,8 @@ if [ ! -e /usr/include ]; then sudo ln -s `xcrun --show-sdk-path`/usr/include /u pyenv install 2.7.11 pyenv virtualenv 2.7.11 quay pyenv activate quay + +# 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 From 6d649f4bc9d5d84889efc6e03cf383f5e90ea469 Mon Sep 17 00:00:00 2001 From: charltonaustin Date: Thu, 6 Oct 2016 10:59:39 -0400 Subject: [PATCH 3/5] can't have links in escaped code --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index ac2d14eac..100ac3b50 100644 --- a/README.md +++ b/README.md @@ -65,7 +65,7 @@ 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 [pyenv] [pyenv-virtualenv] [docker] [docker-machine] +brew install libevent libmagic postgresql gpgme [pyenv] pyenv-virtualenv docker docker-machine # create a default virtualmachine for docker docker-machine create -d virtualbox default From 6cc08d5247ca2f82f0830e85337255257c343c35 Mon Sep 17 00:00:00 2001 From: charltonaustin Date: Thu, 6 Oct 2016 11:02:58 -0400 Subject: [PATCH 4/5] Moving links for our docks. --- README.md | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 100ac3b50..99a331d50 100644 --- a/README.md +++ b/README.md @@ -55,10 +55,6 @@ macOS developers will need: [command line tools]: https://developer.apple.com/downloads [xcode]: https://developer.apple.com/downloads [brew]: https://github.com/Homebrew/brew -[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 ``` # Download the code @@ -96,6 +92,14 @@ git clone git@github.com:coreos-inc/quay-config.git ../quay-config ln -s ../../quay-config/local conf/stack ``` +### Useful docs + +[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) + + ### Linux TODO From 8d7c32c7554afa8b0c6021849ce4ffd204591eba Mon Sep 17 00:00:00 2001 From: charltonaustin Date: Thu, 6 Oct 2016 11:04:11 -0400 Subject: [PATCH 5/5] Missed one --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 99a331d50..844ad279c 100644 --- a/README.md +++ b/README.md @@ -61,7 +61,7 @@ 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 [pyenv] pyenv-virtualenv docker docker-machine +brew install libevent libmagic postgresql gpgme pyenv pyenv-virtualenv docker docker-machine # create a default virtualmachine for docker docker-machine create -d virtualbox default