grim/local-pipelines
Clone
Summary
Browse
Changes
Graph
pipeline: actually kill the docker process with ctrl-c
2016-07-26, Sean Farley
7b8b7a7c65e9
pipeline: actually kill the docker process with ctrl-c
By using '-it' to the docker process, ctrl-c is directly sent to docker
so that it kills itself and automatically cleans up.
# vi:et:ts=4 sw=4 sts=4
from
setuptools
import
setup
,
find_packages
from
pipelines
import
__version__
_DESC
=
"""local-pipelines is a parser for bitbucket-pipelines.yml files that
will run the pipeline using your local docker-engine.
"""
def
main
():
""" Creates our package """
install_requires
=
[]
with
open
(
'requirements.txt'
)
as
ifp
:
for
dependency
in
ifp
.
readlines
():
dependency
=
dependency
.
strip
()
if
len
(
dependency
)
==
0
or
dependency
.
startswith
(
'#'
):
continue
install_requires
.
append
(
dependency
)
setup
(
name
=
'local-pipelines'
,
version
=
__version__
,
description
=
_DESC
,
packages
=
find_packages
(
'.'
),
install_requires
=
install_requires
,
zip_safe
=
True
,
author
=
'Gary Kramlich'
,
author_email
=
'grim@reaperworld.com'
,
url
=
'http://bitbucket.org/rw_grim/local-pipelines'
,
entry_points
=
{
'console_scripts'
:
[
'pipelines=pipelines.core:main'
],
}
)
if
__name__
==
'__main__'
:
main
()