Skip to content

Commit

Permalink
Merge pull request #1 from docker/master
Browse files Browse the repository at this point in the history
Update
  • Loading branch information
oscarpicas committed Nov 23, 2014
2 parents cb275b8 + 65ae22e commit 84d6b37
Show file tree
Hide file tree
Showing 18 changed files with 98 additions and 713 deletions.
7 changes: 7 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
Change log
==========

1.0.1 (2014-11-04)
------------------

- Added an `--allow-insecure-ssl` option to allow `fig up`, `fig run` and `fig pull` to pull from insecure registries.
- Fixed `fig run` not showing output in Jenkins.
- Fixed a bug where Fig couldn't build Dockerfiles with ADD statements pointing at URLs.

1.0.0 (2014-10-16)
------------------

Expand Down
1 change: 1 addition & 0 deletions MAINTAINERS
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
Aanand Prasad <[email protected]> (@aanand)
Ben Firshman <[email protected]> (@bfirsh)
Chris Corbyn <[email protected]> (@d11wtq)
Daniel Nephin <[email protected]> (@dnephin)
Nathan LeClaire <[email protected]> (@nathanleclaire)
4 changes: 3 additions & 1 deletion docs/cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@ Get help on a command.

### kill

Force stop service containers.
Force stop running containers by sending a `SIGKILL` signal. Optionally the signal can be passed, for example:

$ fig kill -s SIGINT

### logs

Expand Down
2 changes: 1 addition & 1 deletion docs/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ There are also guides for [Ubuntu](https://docs.docker.com/installation/ubuntuli

Next, install Fig:

curl -L https://github.com/docker/fig/releases/download/1.0.0/fig-`uname -s`-`uname -m` > /usr/local/bin/fig; chmod +x /usr/local/bin/fig
curl -L https://github.com/docker/fig/releases/download/1.0.1/fig-`uname -s`-`uname -m` > /usr/local/bin/fig; chmod +x /usr/local/bin/fig

Releases are available for OS X and 64-bit Linux. Fig is also available as a Python package if you're on another platform (or if you prefer that sort of thing):

Expand Down
2 changes: 1 addition & 1 deletion fig/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from __future__ import unicode_literals
from .service import Service # noqa:flake8

__version__ = '1.0.0'
__version__ = '1.0.1'
14 changes: 10 additions & 4 deletions fig/cli/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from operator import attrgetter

from inspect import getdoc
from fig.packages import dockerpty
import dockerpty

from .. import __version__
from ..project import NoSuchService, ConfigurationError
Expand Down Expand Up @@ -133,9 +133,15 @@ def kill(self, project, options):
"""
Force stop service containers.
Usage: kill [SERVICE...]
Usage: kill [options] [SERVICE...]
Options:
-s SIGNAL SIGNAL to send to the container.
Default signal is SIGKILL.
"""
project.kill(service_names=options['SERVICE'])
signal = options.get('-s', 'SIGKILL')

project.kill(service_names=options['SERVICE'], signal=signal)

def logs(self, project, options):
"""
Expand Down Expand Up @@ -323,7 +329,7 @@ def run(self, project, options):
print(container.name)
else:
service.start_container(container, ports=None, one_off=True)
dockerpty.start(project.client, container.id)
dockerpty.start(project.client, container.id, interactive=not options['-T'])
exit_code = container.wait()
if options['--rm']:
log.info("Removing %s..." % container.name)
Expand Down
4 changes: 2 additions & 2 deletions fig/container.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,8 @@ def start(self, **options):
def stop(self, **options):
return self.client.stop(self.id, **options)

def kill(self):
return self.client.kill(self.id)
def kill(self, **options):
return self.client.kill(self.id, **options)

def restart(self):
return self.client.restart(self.id)
Expand Down
Empty file removed fig/packages/__init__.py
Empty file.
27 changes: 0 additions & 27 deletions fig/packages/dockerpty/__init__.py

This file was deleted.

Loading

0 comments on commit 84d6b37

Please sign in to comment.