| 168 | |
| 169 | @requires_api_version('1.22') |
| 170 | def test_build_shmsize(self): |
| 171 | script = io.BytesIO('\n'.join([ |
| 172 | 'FROM scratch', |
| 173 | 'CMD sh -c "echo \'Hello, World!\'"', |
| 174 | ]).encode('ascii')) |
| 175 | |
| 176 | tag = 'shmsize' |
| 177 | shmsize = 134217728 |
| 178 | |
| 179 | stream = self.client.build( |
| 180 | fileobj=script, tag=tag, shmsize=shmsize |
| 181 | ) |
| 182 | self.tmp_imgs.append(tag) |
| 183 | for _chunk in stream: |
| 184 | pass |
| 185 | |
| 186 | # There is currently no way to get the shmsize |
| 187 | # that was used to build the image |
| 188 | |
| 189 | @requires_api_version('1.24') |
| 190 | def test_build_isolation(self): |