jueves, 27 de agosto de 2015

OS X - Illegal instruction: 4 - Docker Compose



Hi!

The new age has arrived! I am posting in english and I've moved to the Mac world

Well.. The thing is that I have an old (and super cool) Macbook pro, I was playing with docker:

docker-compose build

And a wild pokemon error appeared:

Illegal instruction: 4

So after searching a while I found that it could be because of some issue related to my old Mac, docker-compose, fig and pip. What? So lets update all this shit :)

brew install python

When installing python with Homebrew, it will also install pip

If you have some issue with your PATH (maybe you don't have /usr/local/bin in PATH) pip is in /usr/local/bin/pip anyway

I've read something about installing directly with:sudo easy_install pip
so you wouldn't have any PATH issue, but it worked like a charm for me with brew.
Finally:
pip install docker-compose

That's it! Docker compose working here

OS X - Illegal instruction: 4 - Docker Compose - ES



Buenas gente!

Me mudé al mundo de OS X y cia.

Tengo una macbook pro medio viejita y hace poco empecé a trabajar con docker, al ejecutar:

docker-compose build

Para armar una imagen. Me deparo con el siguiente error:

Illegal instruction: 4

Después de investigar un mucho, encuentro que este es un issue relacionado a docker-compose, a fig parece y a pip. Toda una confusión. Entonces la solución es instalar la última versión de python para instalar la última versión de pip para instalar la última versión de docker-compose, vamos con las últimas versiones!

Instalar python:

brew install python


Al instalar python con homebrew ya te instalas pip.


Hay que tener en cuenta si pip estará en el PATH, si tienes /usr/local/bin en tu PATH todo bien, o podrás encontrar a pip en /usr/local/bin/pip

También leí por ahí que se puede instalar con:

sudo easy_install pip

Pero como suelo usar hombrew y no tuve problemas, ni siquiera probé eso.
Bueno finalmente ejecutan:

pip install docker-compose

Listo! Problema resuelto!

miércoles, 11 de febrero de 2015

gsusmonzon: Using STI on Rails. Tips

gsusmonzon: Using STI on Rails. Tips: If you ever think of using Single Table Inheritance on Rails, forget about it . It will cause more headaches than benefits. It is simply th...