Aanand Prasad
d7e2a77907
Refactor connection errors
...
Makes command.py a lot more readable.
2014-02-26 15:31:14 +00:00
Ben Firshman
05e15e27ef
Use sys.exit instead of global
2014-02-19 22:42:21 +00:00
Ben Firshman
d52f73b29a
Merge pull request #79 from orchardup/strict-config
...
Throw an error if you specify an unrecognised option in `fig.yml`
2014-02-04 18:10:42 -08:00
Aanand Prasad
edf8f14ac0
Throw an error if you specify an unrecognised option in `fig.yml`
...
Closes #27 .
2014-02-04 17:46:04 -08:00
Aanand Prasad
2bac1c10b0
Show installation instructions if it looks like Docker isn't installed
2014-02-04 15:19:50 -08:00
Aanand Prasad
5126649de4
Friendlier connection error for docker-osx users
2014-02-04 14:42:55 -08:00
Chris Adams
239da2ef69
Add missing return value for filename check
...
Oh my, how embarrassing.
2014-01-28 09:51:33 +00:00
Chris Adams
1d18d747a5
Support loading in Figfiles with .yaml extension
...
Add basic boilerplate text - feel free to change
2014-01-28 00:43:23 +00:00
Aanand Prasad
3e2fd6a2a1
Use DOCKER_HOST environment variable to find Docker daemon
...
Removed all "smart" connection logic. Fig either uses the DOCKER_HOST
environment variable if it's present, or passes `None` to docker-py,
which does the "right thing" (i.e. falls back to the Unix socket).
This means we no longer know at URL-deciding time whether we can connect
to the Docker daemon, so we wrap `dispatch` in a `try/except` which
catches `requests.exceptions.ConnectionError`.
2014-01-16 16:40:55 +00:00
Aanand Prasad
21528f08d4
Vendor docker-py
...
From 9dc03c5737
2014-01-16 13:30:01 +00:00
Aanand Prasad
892677a9d3
Very basic CLI smoke test
...
See #8 .
2014-01-09 15:32:24 +00:00
Christopher Grebs
93b9b6fd9f
First version with python3 support.
...
* Moved requirements*.txt files to proper spec definitions in setup.py
* Added a new fig.compat module to store some compatibility code
2014-01-06 17:58:49 +00:00
Tom Stuart
490742b892
Emit a friendly error when fig.yml is missing
...
I keep doing this by accident, so I'd rather not see the stack trace.
2014-01-03 11:59:03 +00:00
Aanand Prasad
9ed6538693
Extract docker URL logic, use it in tests as well
2013-12-31 12:37:17 +00:00
Aanand Prasad
ff65a3e1b0
Check default socket and localhost:4243 for Docker daemon
2013-12-31 12:18:27 +00:00
Aanand Prasad
ebf9bf387c
Remove unused import
2013-12-31 11:51:52 +00:00
Aanand Prasad
0cafdc9c6c
plum -> fig
2013-12-20 20:28:24 +00:00