* Find out what uid the docker machine is using * @param {string} bindPath * @return {boolean}
(bindPath, pluginInstance)
| 191 | * @return {boolean} |
| 192 | */ |
| 193 | async function getDockerUid(bindPath, pluginInstance) { |
| 194 | const options = [ |
| 195 | 'run', |
| 196 | '--rm', |
| 197 | '-v', |
| 198 | `${bindPath}:/test`, |
| 199 | 'alpine', |
| 200 | 'stat', |
| 201 | '-c', |
| 202 | '%u', |
| 203 | '/bin/sh', |
| 204 | ] |
| 205 | const ps = await dockerCommand(options, pluginInstance) |
| 206 | return ps.stdoutBuffer.toString().trim() |
| 207 | } |
| 208 | |
| 209 | export { buildImage, getBindPath, getDockerUid } |
no test coverage detected
searching dependent graphs…