mirror of
https://github.com/docker/compose.git
synced 2026-02-14 04:29:29 +08:00
Compare commits
8 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
eefe0d319f | ||
|
|
76e20a8ff2 | ||
|
|
bfa7406872 | ||
|
|
757f7b784d | ||
|
|
f216ddbf05 | ||
|
|
afabfbdf8d | ||
|
|
bff44e6943 | ||
|
|
b61fb7ef90 |
20
CHANGELOG.md
20
CHANGELOG.md
@@ -1,6 +1,26 @@
|
||||
Change log
|
||||
==========
|
||||
|
||||
1.26.2 (2020-07-02)
|
||||
-------------------
|
||||
|
||||
### Bugs
|
||||
|
||||
- Enforce `docker-py` 4.2.2 as minimum version when installing with pip
|
||||
|
||||
1.26.1 (2020-06-30)
|
||||
-------------------
|
||||
|
||||
### Features
|
||||
|
||||
- Bump `docker-py` from 4.2.1 to 4.2.2
|
||||
|
||||
### Bugs
|
||||
|
||||
- Enforce `docker-py` 4.2.1 as minimum version when installing with pip
|
||||
|
||||
- Fix context load for non-docker endpoints
|
||||
|
||||
1.26.0 (2020-06-03)
|
||||
-------------------
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@ pipeline {
|
||||
parallel {
|
||||
stage('alpine') {
|
||||
agent {
|
||||
label 'linux'
|
||||
label 'linux && docker && ubuntu-2004'
|
||||
}
|
||||
steps {
|
||||
buildImage('alpine')
|
||||
@@ -28,7 +28,7 @@ pipeline {
|
||||
}
|
||||
stage('debian') {
|
||||
agent {
|
||||
label 'linux'
|
||||
label 'linux && docker && ubuntu-2004'
|
||||
}
|
||||
steps {
|
||||
buildImage('debian')
|
||||
@@ -55,7 +55,7 @@ pipeline {
|
||||
}
|
||||
stage('Generate Changelog') {
|
||||
agent {
|
||||
label 'linux'
|
||||
label 'linux && docker && ubuntu-2004'
|
||||
}
|
||||
steps {
|
||||
checkout scm
|
||||
@@ -92,7 +92,7 @@ pipeline {
|
||||
}
|
||||
stage('linux binary') {
|
||||
agent {
|
||||
label 'linux'
|
||||
label 'linux && docker && ubuntu-2004'
|
||||
}
|
||||
steps {
|
||||
checkout scm
|
||||
@@ -128,7 +128,7 @@ pipeline {
|
||||
}
|
||||
stage('alpine image') {
|
||||
agent {
|
||||
label 'linux'
|
||||
label 'linux && docker && ubuntu-2004'
|
||||
}
|
||||
steps {
|
||||
buildRuntimeImage('alpine')
|
||||
@@ -136,7 +136,7 @@ pipeline {
|
||||
}
|
||||
stage('debian image') {
|
||||
agent {
|
||||
label 'linux'
|
||||
label 'linux && docker && ubuntu-2004'
|
||||
}
|
||||
steps {
|
||||
buildRuntimeImage('debian')
|
||||
@@ -151,7 +151,7 @@ pipeline {
|
||||
parallel {
|
||||
stage('Pushing images') {
|
||||
agent {
|
||||
label 'linux'
|
||||
label 'linux && docker && ubuntu-2004'
|
||||
}
|
||||
steps {
|
||||
pushRuntimeImage('alpine')
|
||||
@@ -160,7 +160,7 @@ pipeline {
|
||||
}
|
||||
stage('Creating Github Release') {
|
||||
agent {
|
||||
label 'linux'
|
||||
label 'linux && docker && ubuntu-2004'
|
||||
}
|
||||
environment {
|
||||
GITHUB_TOKEN = credentials('github-release-token')
|
||||
@@ -192,7 +192,7 @@ pipeline {
|
||||
}
|
||||
stage('Publishing Python packages') {
|
||||
agent {
|
||||
label 'linux'
|
||||
label 'linux && docker && ubuntu-2004'
|
||||
}
|
||||
environment {
|
||||
PYPIRC = credentials('pypirc-docker-dsg-cibot')
|
||||
@@ -201,9 +201,9 @@ pipeline {
|
||||
checkout scm
|
||||
sh """
|
||||
rm -rf build/ dist/
|
||||
pip install wheel
|
||||
python setup.py sdist bdist_wheel
|
||||
pip install twine
|
||||
pip3 install wheel
|
||||
python3 setup.py sdist bdist_wheel
|
||||
pip3 install twine
|
||||
~/.local/bin/twine upload --config-file ${PYPIRC} ./dist/docker-compose-*.tar.gz ./dist/docker_compose-*-py2.py3-none-any.whl
|
||||
"""
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
from __future__ import absolute_import
|
||||
from __future__ import unicode_literals
|
||||
|
||||
__version__ = '1.26.0'
|
||||
__version__ = '1.26.2'
|
||||
|
||||
@@ -144,6 +144,11 @@ def docker_client(environment, version=None, context=None, tls_version=None):
|
||||
if tls:
|
||||
context.set_endpoint("docker", host=host, tls_cfg=tls, skip_tls_verify=not verify)
|
||||
|
||||
if not context.is_docker_host():
|
||||
raise UserError(
|
||||
"The platform targeted with the current context is not supported.\n"
|
||||
"Make sure the context in use targets a Docker Engine.\n")
|
||||
|
||||
kwargs['base_url'] = context.Host
|
||||
if context.TLSConfig:
|
||||
kwargs['tls'] = context.TLSConfig
|
||||
|
||||
@@ -5,7 +5,7 @@ certifi==2020.4.5.1
|
||||
chardet==3.0.4
|
||||
colorama==0.4.3; sys_platform == 'win32'
|
||||
distro==1.5.0
|
||||
docker==4.2.1
|
||||
docker==4.2.2
|
||||
docker-pycreds==0.4.0
|
||||
dockerpty==0.4.1
|
||||
docopt==0.6.2
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
|
||||
set -e
|
||||
|
||||
VERSION="1.26.0"
|
||||
VERSION="1.26.2"
|
||||
IMAGE="docker/compose:$VERSION"
|
||||
|
||||
|
||||
|
||||
2
setup.py
2
setup.py
@@ -37,7 +37,7 @@ install_requires = [
|
||||
'texttable >= 0.9.0, < 2',
|
||||
'websocket-client >= 0.32.0, < 1',
|
||||
'distro >= 1.5.0, < 2',
|
||||
'docker[ssh] >= 3.7.0, < 5',
|
||||
'docker[ssh] >= 4.2.2, < 5',
|
||||
'dockerpty >= 0.4.1, < 1',
|
||||
'six >= 1.3.0, < 2',
|
||||
'jsonschema >= 2.5.1, < 4',
|
||||
|
||||
@@ -223,6 +223,9 @@ class ServiceTest(DockerClientTestCase):
|
||||
service.start_container(container)
|
||||
assert container.get('HostConfig.ReadonlyRootfs') == read_only
|
||||
|
||||
@pytest.mark.xfail(True, reason='Getting "Your kernel does not support '
|
||||
'cgroup blkio weight and weight_device" on daemon start '
|
||||
'on Linux kernel 5.3.x')
|
||||
def test_create_container_with_blkio_config(self):
|
||||
blkio_config = {
|
||||
'weight': 300,
|
||||
|
||||
Reference in New Issue
Block a user