|
|
před 11 roky | |
|---|---|---|
| bin | před 11 roky | |
| docs | před 11 roky | |
| fig | před 11 roky | |
| script | před 11 roky | |
| tests | před 11 roky | |
| .gitignore | před 11 roky | |
| .travis.yml | před 11 roky | |
| CHANGES.md | před 11 roky | |
| CONTRIBUTING.md | před 11 roky | |
| Dockerfile | před 11 roky | |
| LICENSE | před 11 roky | |
| MANIFEST.in | před 11 roky | |
| README.md | před 11 roky | |
| requirements-dev.txt | před 11 roky | |
| requirements.txt | před 11 roky | |
| setup.py | před 11 roky | |
| tox.ini | před 11 roky |
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:
There are commands to:
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.
Full documentation is available on Fig's website.