Testing Multiple Python Version with Docker on Travis CI

Post by Saul Shanabrook

docker, travis

Travis CI makes it super easy to use Docker [Compose] in your tests. In a recent Django library I was working on, however, I wanted to test on multiple Python versions, but use Docker. Normally, to test on Python versions in Travis you can do python: - 2.7 -…

Access PG in Docker from a GUI

Post by Saul Shanabrook

docker

Update: Since changing from links to Docker Compose's new networking, the command would be: docker run -it -p 5432:5432 --rm --net=djangodiet_ verb/socat:alpine TCP-LISTEN:5432 TCP:djangodiet_db_1:5432. I was recently trying to debug the state of my Django database, which was running in a…

NPM & Docker: Sharing volumes

Post by Saul Shanabrook

nodejs, docker

Update: This is probably a better idea, though I haven't tried it. Many different people have had trouble working with node and Docker. The basic issue is this. I want to run npm install in my Dockerfile so that when I do a docker run ... it doesn't have to reinstall…

CPython Dev w/ Docker

Post by Saul Shanabrook

python, docker, cpython

TLDR To start developing on CPython (requires working Docker install): sudo pip install hg-git echo '[extensions] hgext.bookmarks = hggit = eol = ' > ~/.hgrc hg clone -U https://hg.python.org/cpython cd cpython # this is needed on windows hosts so that they use linux # line endings. however it means…

boot2docker Fix Startup Failure

Post by Saul Shanabrook

docker, boot2docker

When you starte boot2docker are getting this? 2014/02/05 16:19:18 dial unix /var/run/docker.sock: no such file or directory And then, when you try to run boot2docker up|start|stop|reset are you getting this? error in run: Failed to initialize machine "boot2docker-vm": exit status…

The Full Wipe

Post by Saul Shanabrook

docker, osx, homebrew, cask

I recently upgraded to Yosemite and wiped my whole computer. I have everything backed up, so I could do a restore, but it is so freeing to start fresh. I made a few delibrate decisions when reinstalling to see if I couldn't preserve the cleanliness a little more effectively this…