Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
D
docker-py
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
docker-py
Commits
7cc0a1b6
Unverified
Kaydet (Commit)
7cc0a1b6
authored
Eki 17, 2018
tarafından
Joffrey F
Kaydeden (comit)
GitHub
Eki 17, 2018
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Sade Fark
Merge pull request #2156 from docker/3.5.1-release
3.5.1 release
üst
e0495a91
f097ea5b
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
78 additions
and
52 deletions
+78
-52
container.py
docker/api/container.py
+6
-6
containers.py
docker/models/containers.py
+6
-6
images.py
docker/models/images.py
+3
-3
services.py
docker/models/services.py
+27
-26
version.py
docker/version.py
+1
-1
api.rst
docs/api.rst
+1
-0
change-log.md
docs/change-log.md
+13
-1
services.rst
docs/services.rst
+3
-0
requirements.txt
requirements.txt
+1
-1
release.sh
scripts/release.sh
+16
-7
setup.py
setup.py
+1
-1
No files found.
docker/api/container.py
Dosyayı görüntüle @
7cc0a1b6
...
...
@@ -465,7 +465,7 @@ class ContainerApiMixin(object):
dns_opt (:py:class:`list`): Additional options to be added to the
container's ``resolv.conf`` file
dns_search (:py:class:`list`): DNS search domains.
extra_hosts (dict): Addtional hostnames to resolve inside the
extra_hosts (dict): Add
i
tional hostnames to resolve inside the
container, as a mapping of hostname to IP address.
group_add (:py:class:`list`): List of additional group names and/or
IDs that the container process will run as.
...
...
@@ -765,16 +765,16 @@ class ContainerApiMixin(object):
Args:
container (str): The container to get logs from
stdout (bool): Get ``STDOUT``
stderr (bool): Get ``STDERR``
stream (bool): Stream the response
timestamps (bool): Show timestamps
stdout (bool): Get ``STDOUT``
. Default ``True``
stderr (bool): Get ``STDERR``
. Default ``True``
stream (bool): Stream the response
. Default ``False``
timestamps (bool): Show timestamps
. Default ``False``
tail (str or int): Output specified number of lines at the end of
logs. Either an integer of number of lines or the string
``all``. Default ``all``
since (datetime or int): Show logs since a given datetime or
integer epoch (in seconds)
follow (bool): Follow log output
follow (bool): Follow log output
. Default ``False``
until (datetime or int): Show logs that occurred before the given
datetime or integer epoch (in seconds)
...
...
docker/models/containers.py
Dosyayı görüntüle @
7cc0a1b6
...
...
@@ -253,16 +253,16 @@ class Container(Model):
generator you can iterate over to retrieve log output as it happens.
Args:
stdout (bool): Get ``STDOUT``
stderr (bool): Get ``STDERR``
stream (bool): Stream the response
timestamps (bool): Show timestamps
stdout (bool): Get ``STDOUT``
. Default ``True``
stderr (bool): Get ``STDERR``
. Default ``True``
stream (bool): Stream the response
. Default ``False``
timestamps (bool): Show timestamps
. Default ``False``
tail (str or int): Output specified number of lines at the end of
logs. Either an integer of number of lines or the string
``all``. Default ``all``
since (datetime or int): Show logs since a given datetime or
integer epoch (in seconds)
follow (bool): Follow log output
follow (bool): Follow log output
. Default ``False``
until (datetime or int): Show logs that occurred before the given
datetime or integer epoch (in seconds)
...
...
@@ -558,7 +558,7 @@ class ContainerCollection(Collection):
environment (dict or list): Environment variables to set inside
the container, as a dictionary or a list of strings in the
format ``["SOMEVARIABLE=xxx"]``.
extra_hosts (dict): Addtional hostnames to resolve inside the
extra_hosts (dict): Add
i
tional hostnames to resolve inside the
container, as a mapping of hostname to IP address.
group_add (:py:class:`list`): List of additional group names and/or
IDs that the container process will run as.
...
...
docker/models/images.py
Dosyayı görüntüle @
7cc0a1b6
...
...
@@ -64,9 +64,9 @@ class Image(Model):
Get a tarball of an image. Similar to the ``docker save`` command.
Args:
chunk_size (int): The
number of bytes returned by each iteration
of the generator. If ``None``, data will be streamed as it is
received. Default: 2 MB
chunk_size (int): The
generator will return up to that much data
per iteration, but may return less. If ``None``, data will be
streamed as it is
received. Default: 2 MB
Returns:
(generator): A stream of raw archive data.
...
...
docker/models/services.py
Dosyayı görüntüle @
7cc0a1b6
...
...
@@ -42,7 +42,7 @@ class Service(Model):
``label``, and ``desired-state``.
Returns:
(:py:class:`list`)
: List of task dictionaries.
:py:class:`list`
: List of task dictionaries.
Raises:
:py:class:`docker.errors.APIError`
...
...
@@ -84,26 +84,27 @@ class Service(Model):
def
logs
(
self
,
**
kwargs
):
"""
Get log stream for the service.
Note: This method works only for services with the ``json-file``
or ``journald`` logging drivers.
Args:
details (bool): Show extra details provided to logs.
Default: ``False``
follow (bool): Keep connection open to read logs as they are
sent by the Engine. Default: ``False``
stdout (bool): Return logs from ``stdout``. Default: ``False``
stderr (bool): Return logs from ``stderr``. Default: ``False``
since (int): UNIX timestamp for the logs staring point.
Default: 0
timestamps (bool): Add timestamps to every log line.
tail (string or int): Number of log lines to be returned,
counting from the current end of the logs. Specify an
integer or ``'all'`` to output all log lines.
Default: ``all``
Returns (generator): Logs for the service.
Get log stream for the service.
Note: This method works only for services with the ``json-file``
or ``journald`` logging drivers.
Args:
details (bool): Show extra details provided to logs.
Default: ``False``
follow (bool): Keep connection open to read logs as they are
sent by the Engine. Default: ``False``
stdout (bool): Return logs from ``stdout``. Default: ``False``
stderr (bool): Return logs from ``stderr``. Default: ``False``
since (int): UNIX timestamp for the logs staring point.
Default: 0
timestamps (bool): Add timestamps to every log line.
tail (string or int): Number of log lines to be returned,
counting from the current end of the logs. Specify an
integer or ``'all'`` to output all log lines.
Default: ``all``
Returns:
generator: Logs for the service.
"""
is_tty
=
self
.
attrs
[
'Spec'
][
'TaskTemplate'
][
'ContainerSpec'
]
.
get
(
'TTY'
,
False
...
...
@@ -118,7 +119,7 @@ class Service(Model):
replicas (int): The number of containers that should be running.
Returns:
``True``
if successful.
bool: ``True``
if successful.
"""
if
'Global'
in
self
.
attrs
[
'Spec'
][
'Mode'
]
.
keys
():
...
...
@@ -134,7 +135,7 @@ class Service(Model):
Force update the service even if no changes require it.
Returns:
``True``
if successful.
bool: ``True``
if successful.
"""
return
self
.
update
(
force_update
=
True
,
fetch_current_spec
=
True
)
...
...
@@ -206,7 +207,7 @@ class ServiceCollection(Collection):
containers.
Returns:
(:py:class:`Service`)
The created service.
:py:class:`Service`:
The created service.
Raises:
:py:class:`docker.errors.APIError`
...
...
@@ -228,7 +229,7 @@ class ServiceCollection(Collection):
into the output.
Returns:
(:py:class:`Service`)
: The service.
:py:class:`Service`
: The service.
Raises:
:py:class:`docker.errors.NotFound`
...
...
@@ -253,7 +254,7 @@ class ServiceCollection(Collection):
Default: ``None``.
Returns:
(list of :py:class:`Service`)
: The services.
list of :py:class:`Service`
: The services.
Raises:
:py:class:`docker.errors.APIError`
...
...
docker/version.py
Dosyayı görüntüle @
7cc0a1b6
version
=
"3.5.
0
"
version
=
"3.5.
1
"
version_info
=
tuple
([
int
(
d
)
for
d
in
version
.
split
(
"-"
)[
0
]
.
split
(
"."
)])
docs/api.rst
Dosyayı görüntüle @
7cc0a1b6
...
...
@@ -145,6 +145,7 @@ Configuration types
.. autoclass:: Privileges
.. autoclass:: Resources
.. autoclass:: RestartPolicy
.. autoclass:: RollbackConfig
.. autoclass:: SecretReference
.. autoclass:: ServiceMode
.. autoclass:: SwarmExternalCA
...
...
docs/change-log.md
Dosyayı görüntüle @
7cc0a1b6
Change log
==========
3.
5.1
-----
[
List of PRs / issues for this release
](
https://github.com/docker/docker-py/milestone/54?closed=1
)
### Miscellaneous
*
Bumped version of
`pyOpenSSL`
in
`requirements.txt`
and
`setup.py`
to prevent
installation of a vulnerable version
*
Docs fixes
3.
5.0
-----
[
List of PRs / issues for this release
](
https://github.com/docker/docker-py/milestone
=
53?closed=1
)
[
List of PRs / issues for this release
](
https://github.com/docker/docker-py/milestone
/
53?closed=1
)
### Deprecation warning
...
...
docs/services.rst
Dosyayı görüntüle @
7cc0a1b6
...
...
@@ -30,7 +30,10 @@ Service objects
The raw representation of this object from the server.
.. automethod:: force_update
.. automethod:: logs
.. automethod:: reload
.. automethod:: remove
.. automethod:: scale
.. automethod:: tasks
.. automethod:: update
requirements.txt
Dosyayı görüntüle @
7cc0a1b6
...
...
@@ -10,7 +10,7 @@ idna==2.5
ipaddress
==1.0.18
packaging
==16.8
pycparser
==2.17
pyOpenSSL
==1
7
.0.0
pyOpenSSL
==1
8
.0.0
pyparsing
==2.2.0
pypiwin32
==219; sys_platform == 'win32' and python_version < '3.6'
pypiwin32
==223; sys_platform == 'win32' and python_version >= '3.6'
...
...
scripts/release.sh
Dosyayı görüntüle @
7cc0a1b6
...
...
@@ -22,7 +22,15 @@ echo "##> Removing stale build files"
rm
-rf
./build
||
exit
1
echo
"##> Tagging the release as
$VERSION
"
git tag
$VERSION
||
exit
1
git tag
$VERSION
if
[[
$?
!=
0
]]
;
then
head_commit
=
$(
git show
--pretty
=
format:%H HEAD
)
tag_commit
=
$(
git show
--pretty
=
format:%H
$VERSION
)
if
[[
$head_commit
!=
$tag_commit
]]
;
then
echo
"ERROR: tag already exists, but isn't the current HEAD"
exit
1
fi
fi
if
[[
$2
==
'upload'
]]
;
then
echo
"##> Pushing tag to github"
git push
$GITHUB_REPO
$VERSION
||
exit
1
...
...
@@ -30,10 +38,10 @@ fi
pandoc
-f
markdown
-t
rst README.md
-o
README.rst
||
exit
1
echo
"##> sdist & wheel"
python setup.py sdist bdist_wheel
if
[[
$2
==
'upload'
]]
;
then
echo
"##> Uploading sdist to pypi"
python setup.py sdist bdist_wheel upload
else
echo
"##> sdist & wheel"
python setup.py sdist bdist_wheel
fi
echo
'##> Uploading sdist to pypi'
twine upload dist/docker-
$VERSION
*
fi
\ No newline at end of file
setup.py
Dosyayı görüntüle @
7cc0a1b6
...
...
@@ -40,7 +40,7 @@ extras_require = {
# https://github.com/pypa/pip/issues/4391). Once that's fixed, instead of
# installing the extra dependencies, install the following instead:
# 'requests[security] >= 2.5.2, != 2.11.0, != 2.12.2'
'tls'
:
[
'pyOpenSSL>=
0.14
'
,
'cryptography>=1.3.4'
,
'idna>=2.0.0'
],
'tls'
:
[
'pyOpenSSL>=
17.5.0
'
,
'cryptography>=1.3.4'
,
'idna>=2.0.0'
],
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment