Sem descrição

Ben Firshman 45b2712032 Merge pull request #720 from dnephin/upstream_minor_fixes há 11 anos atrás
bin 9550387e39 Add script to build an OS X binary há 12 anos atrás
docs 481a8cb7ab Merge pull request #713 from leishman/add-favicon-headers há 11 anos atrás
fig 3c0f297ba6 Some minor cleanup from yelp/fig há 11 anos atrás
script c12d1d73f0 Remove containers in scripts há 11 anos atrás
tests 3c0f297ba6 Some minor cleanup from yelp/fig há 11 anos atrás
.dockerignore e66c0452d5 Add .dockerignore há 11 anos atrás
.gitignore 779f4bda01 Fix cli for python 2.6 há 11 anos atrás
CHANGES.md 46433c70b6 Ship 1.0.1 há 11 anos atrás
CONTRIBUTING.md 899670fc6c Move building binaries instructions há 11 anos atrás
Dockerfile bb85e238e0 Add fig as entrypoint to Dockerfile há 11 anos atrás
LICENSE 99064d17dd Docker, Inc. há 11 anos atrás
MAINTAINERS 06a1b32c12 Make @dnephin a maintainer há 11 anos atrás
MANIFEST.in 0150b38b8f Add tests to sdist. há 11 anos atrás
README.md 6b600faf0b Update wercker badge há 11 anos atrás
requirements-dev.txt 7fd37c89b9 Remove fig.packages replace with real deps. há 11 anos atrás
requirements.txt 788741025e Upgrade to docker-py 0.6.0 há 11 anos atrás
setup.py 788741025e Upgrade to docker-py 0.6.0 há 11 anos atrás
tox.ini 3c0f297ba6 Some minor cleanup from yelp/fig há 11 anos atrás
wercker.yml b4fbab4b56 Run pyinstaller build as normal user há 11 anos atrás

README.md

Fig

wercker status

Fast, isolated development environments using Docker.

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

FROM 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: postgres

(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

Installation and documentation

Full documentation is available on Fig's website.