mirror of
https://github.com/balena-io/balena-cli.git
synced 2025-02-11 13:16:12 +00:00
Make emulated builds reliable in the presence for WORKDIR comands
Connects-To: #558 Change-Type: patch
This commit is contained in:
parent
f465e74a87
commit
b756f2a597
@ -15,6 +15,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).
|
|||||||
### Fixed
|
### Fixed
|
||||||
|
|
||||||
- Ensure emulated builds use the correct relative path to qemu when called from any location
|
- Ensure emulated builds use the correct relative path to qemu when called from any location
|
||||||
|
- Make emulated builds reliable in the presence for WORKDIR comands
|
||||||
|
|
||||||
## [5.10.2] - 2017-05-31
|
## [5.10.2] - 2017-05-31
|
||||||
|
|
||||||
|
@ -228,7 +228,7 @@ exports.runBuild = function(params, options, getBundleInfo, logStreams) {
|
|||||||
if (options.emulated && platformNeedsQemu()) {
|
if (options.emulated && platformNeedsQemu()) {
|
||||||
return transpose.transposeTarStream(buildStream, {
|
return transpose.transposeTarStream(buildStream, {
|
||||||
hostQemuPath: qemuPath,
|
hostQemuPath: qemuPath,
|
||||||
containerQemuPath: "./" + QEMU_BIN_NAME
|
containerQemuPath: "/tmp/" + QEMU_BIN_NAME
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
return buildStream;
|
return buildStream;
|
||||||
@ -243,7 +243,7 @@ exports.runBuild = function(params, options, getBundleInfo, logStreams) {
|
|||||||
if (options.emulated && platformNeedsQemu()) {
|
if (options.emulated && platformNeedsQemu()) {
|
||||||
buildThroughStream = transpose.getBuildThroughStream({
|
buildThroughStream = transpose.getBuildThroughStream({
|
||||||
hostQemuPath: qemuPath,
|
hostQemuPath: qemuPath,
|
||||||
containerQemuPath: "./" + QEMU_BIN_NAME
|
containerQemuPath: "/tmp/" + QEMU_BIN_NAME
|
||||||
});
|
});
|
||||||
newStream = stream.pipe(buildThroughStream);
|
newStream = stream.pipe(buildThroughStream);
|
||||||
} else {
|
} else {
|
||||||
|
@ -234,7 +234,7 @@ exports.runBuild = (params, options, getBundleInfo, logStreams) ->
|
|||||||
if options.emulated and platformNeedsQemu()
|
if options.emulated and platformNeedsQemu()
|
||||||
return transpose.transposeTarStream buildStream,
|
return transpose.transposeTarStream buildStream,
|
||||||
hostQemuPath: qemuPath
|
hostQemuPath: qemuPath
|
||||||
containerQemuPath: "./#{QEMU_BIN_NAME}"
|
containerQemuPath: "/tmp/#{QEMU_BIN_NAME}"
|
||||||
else
|
else
|
||||||
return buildStream
|
return buildStream
|
||||||
.then (buildStream) ->
|
.then (buildStream) ->
|
||||||
@ -250,7 +250,7 @@ exports.runBuild = (params, options, getBundleInfo, logStreams) ->
|
|||||||
if options.emulated and platformNeedsQemu()
|
if options.emulated and platformNeedsQemu()
|
||||||
buildThroughStream = transpose.getBuildThroughStream
|
buildThroughStream = transpose.getBuildThroughStream
|
||||||
hostQemuPath: qemuPath
|
hostQemuPath: qemuPath
|
||||||
containerQemuPath: "./#{QEMU_BIN_NAME}"
|
containerQemuPath: "/tmp/#{QEMU_BIN_NAME}"
|
||||||
|
|
||||||
newStream = stream.pipe(buildThroughStream)
|
newStream = stream.pipe(buildThroughStream)
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user