Codebase list docker-compose / 5985d04
Merge pull request #6065 from docker/bump-1.22.0-rc2 Bump 1.22.0-rc2 Matthieu Nottale authored 5 years ago GitHub committed 5 years ago
10 changed file(s) with 31 addition(s) and 23 deletion(s). Raw diff Collapse all Expand all
4848
4949 - Fixed an issue that prevented proper parsing of UTF-8 BOM encoded
5050 Compose files on Windows
51
52 - Fixed an issue with handling of the double-wildcard (`**`) pattern in `.dockerignore` files when using `docker-compose build`
53
54 - Fixed a bug that caused auth values in legacy `.dockercfg` files to be ignored
55 - `docker-compose build` will no longer attempt to create image names starting with an invalid character
5156
5257 1.21.2 (2018-05-03)
5358 -------------------
00 from __future__ import absolute_import
11 from __future__ import unicode_literals
22
3 __version__ = '1.22.0-rc1'
3 __version__ = '1.22.0-rc2'
362362
363363 @property
364364 def image_name(self):
365 return self.options.get('image', '{s.project}_{s.name}'.format(s=self))
365 return self.options.get('image', '{project}_{s.name}'.format(
366 s=self, project=self.project.lstrip('_-')
367 ))
366368
367369 @property
368370 def platform(self):
11 cached-property==1.3.0
22 certifi==2017.4.17
33 chardet==3.0.4
4 docker==3.4.0
4 docker==3.4.1
55 docker-pycreds==0.3.0
66 dockerpty==0.4.1
77 docopt==0.6.2
2424 'desc': 'Automated release for {}: {}'.format(NAME, repo_name),
2525 'labels': ['docker-compose', 'docker', 'release-bot'],
2626 }
27 result = self.post_json(url, data)
28 result.raise_for_status()
29 return result
30
31 def repository_exists(self, subject, repo_name):
32 url = '{base}/repos/{subject}/{repo_name}'.format(
33 base=self.base_url, subject=subject, repo_name=repo_name,
34 )
35 result = self.get(url)
36 if result.status_code == 404:
37 return False
38 result.raise_for_status()
39 return True
27 return self.post_json(url, data)
4028
4129 def delete_repository(self, subject, repo_name):
4230 url = '{base}/repos/{subject}/{repo_name}'.format(
5757 repository.push_branch_to_remote(release_branch)
5858
5959 bintray_api = BintrayAPI(os.environ['BINTRAY_TOKEN'], bintray_user)
60 if not bintray_api.repository_exists(bintray_org, release_branch.name):
61 print('Creating data repository {} on bintray'.format(release_branch.name))
62 bintray_api.create_repository(bintray_org, release_branch.name, 'generic')
63 else:
64 print('Bintray repository {} already exists. Skipping'.format(release_branch.name))
60 print('Creating data repository {} on bintray'.format(release_branch.name))
61 bintray_api.create_repository(bintray_org, release_branch.name, 'generic')
6562
6663
6764 def monitor_pr_status(pr_data):
1616
1717 docker run -e GITHUB_TOKEN=$GITHUB_TOKEN -e BINTRAY_TOKEN=$BINTRAY_TOKEN -e SSH_AUTH_SOCK=$SSH_AUTH_SOCK -it \
1818 --mount type=bind,source=$(pwd),target=/src \
19 --mount type=bind,source=$(pwd)/.git,target=/src/.git \
1920 --mount type=bind,source=$HOME/.docker,target=/root/.docker \
2021 --mount type=bind,source=$HOME/.gitconfig,target=/root/.gitconfig \
2122 --mount type=bind,source=/var/run/docker.sock,target=/var/run/docker.sock \
1414
1515 set -e
1616
17 VERSION="1.22.0-rc1"
17 VERSION="1.22.0-rc2"
1818 IMAGE="docker/compose:$VERSION"
1919
2020
3535 'requests >= 2.6.1, != 2.11.0, != 2.12.2, != 2.18.0, < 2.19',
3636 'texttable >= 0.9.0, < 0.10',
3737 'websocket-client >= 0.32.0, < 1.0',
38 'docker >= 3.4.0, < 4.0',
38 'docker >= 3.4.1, < 4.0',
3939 'dockerpty >= 0.4.1, < 0.5',
4040 'six >= 1.3.0, < 2',
4141 'jsonschema >= 2.5.1, < 3',
11361136 service.build()
11371137 assert service.image()
11381138
1139 def test_build_with_illegal_leading_chars(self):
1140 base_dir = tempfile.mkdtemp()
1141 self.addCleanup(shutil.rmtree, base_dir)
1142 with open(os.path.join(base_dir, 'Dockerfile'), 'w') as f:
1143 f.write('FROM busybox\nRUN echo "Embodiment of Scarlet Devil"\n')
1144 service = Service(
1145 'build_leading_slug', client=self.client,
1146 project='___-composetest', build={
1147 'context': text_type(base_dir)
1148 }
1149 )
1150 assert service.image_name == 'composetest_build_leading_slug'
1151 service.build()
1152 assert service.image()
1153
11391154 def test_start_container_stays_unprivileged(self):
11401155 service = self.create_service('web')
11411156 container = create_and_start_container(service).inspect()