Bez popisu

Aanand Prasad a68b4e6dde Merge pull request #128 from orchardup/better-error-message-when-service-is-not-dict před 12 roky
bin 9550387e39 Add script to build an OS X binary před 12 roky
docs 348ba0818f Reformat comments in YAML reference for readability před 12 roky
fig 3e7360c2c6 Improve error when service is not a dict před 12 roky
script 431ce67f85 Add script to build Linux binary před 12 roky
tests 3e7360c2c6 Improve error when service is not a dict před 12 roky
.gitignore 9550387e39 Add script to build an OS X binary před 12 roky
.travis.yml 049a10136c Test Docker 0.8.0 on Travis před 12 roky
CHANGES.md d368e2fca9 Ship 0.2.2 před 12 roky
Dockerfile ba66c849b5 Use Python base image and run as normal user před 12 roky
LICENSE 84ea31dc92 Add license před 12 roky
MANIFEST.in 229b59bd6e remove tests from distribution build před 12 roky
README.md f79e0e588e Reword port warning in YAML reference, remove it from README před 12 roky
requirements-dev.txt 431ce67f85 Add script to build Linux binary před 12 roky
requirements.txt 8e42d6fbb3 Remove six from requirements před 12 roky
setup.py 274728e5fb Update homepage in setup.py před 12 roky
tox.ini bf8875d930 Added tox file před 12 roky

README.md

Fig

Build Status PyPI version

Fast, isolated development environments using Docker.

Define your app's environment with Docker so it can be reproduced anywhere:

FROM orchardup/python:2.7
ADD . /code
WORKDIR /code
RUN pip install -r requirements.txt
CMD python app.py

Define the services that make up your app so they can be run together in an isolated environment:

web:
  build: .
  links:
   - db
  ports:
   - "8000:8000"
   - "49100:22"
db:
  image: orchardup/postgresql

(No more installing Postgres on your laptop!)

Then type fig up, and Fig will start and run your entire app:

example fig run

There are commands to:

  • start, stop and rebuild services
  • view the status of running services
  • tail running services' log output
  • run a one-off command on a service

Fig is a project from Orchard, a Docker hosting service. Follow us on Twitter to keep up to date with Fig and other Docker news.

Installation and documentation

Full documentation is available on Fig's website.

Running the test suite

$ script/test

Building OS X binaries

$ script/build-osx

Note that this only works on Mountain Lion, not Mavericks, due to a bug in PyInstaller.