зеркало из https://github.com/docker/kitematic.git
Fix flash of big image
This commit is contained in:
Родитель
d454335f4b
Коммит
61944b7a2c
|
@ -2,9 +2,11 @@
|
|||
|
||||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
|
||||
sudo rm -f /usr/local/bin/docker
|
||||
sudo rm -f /usr/local/bin/boot2docker
|
||||
rm -rf ~/Library/Application\ Support/Kitematic/
|
||||
rm -rf ~/.boot2docker
|
||||
rm -rf ~/VirtualBox\ VMs/boot2docker-vm
|
||||
pkill VBox
|
||||
pkill VirtualBox
|
||||
$DIR/VirtualBox_Uninstall.tool
|
||||
rm -rf ~/.boot2docker
|
||||
rm -rf ~/VirtualBox\ VMs/boot2docker-vm
|
||||
|
|
|
@ -48,7 +48,7 @@ var Setup = React.createClass({
|
|||
}
|
||||
return (
|
||||
<div className="contents">
|
||||
<RetinaImage src={img}/>
|
||||
<RetinaImage src={img} checkIfRetinaImgExists={false}/>
|
||||
<div className="detail">
|
||||
<Radial progress={SetupStore.percent()} thick={true} gray={true}/>
|
||||
</div>
|
||||
|
@ -97,7 +97,7 @@ var Setup = React.createClass({
|
|||
<Header />
|
||||
<div className="image">
|
||||
<div className="contents">
|
||||
<RetinaImage img src="install-error.png"/>
|
||||
<RetinaImage src="install-error.png" checkIfRetinaImgExists={false}/>
|
||||
<div className="detail">
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -40,6 +40,10 @@ var _steps = [{
|
|||
if (!virtualBox.installed() || setupUtil.compareVersions(yield virtualBox.version(), packagejson['virtualbox-required-version']) < 0) {
|
||||
yield virtualBox.killall();
|
||||
cmd += ' && ' + setupUtil.installVirtualBoxCmd();
|
||||
} else {
|
||||
if (!setupUtil.needsBinaryFix()) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
try {
|
||||
progressCallback(50); // TODO: detect when the installation has started so we can simulate progress
|
||||
|
@ -139,7 +143,7 @@ var SetupStore = assign(Object.create(EventEmitter.prototype), {
|
|||
var required = {};
|
||||
var vboxfile = path.join(util.supportDir(), packagejson['virtualbox-filename']);
|
||||
required.download = !virtualBox.installed() && (!fs.existsSync(vboxfile) || setupUtil.checksum(vboxfile) !== packagejson['virtualbox-checksum']);
|
||||
required.install = !virtualBox.installed() || setupUtil.needsBinaryFix();
|
||||
required.install = !virtualBox.installed() || setupUtil.needsBinaryFix() || setupUtil.compareVersions(yield virtualBox.version(), packagejson['virtualbox-required-version']) < 0;
|
||||
required.init = !(yield boot2docker.exists()) || !isoversion || setupUtil.compareVersions(isoversion, boot2docker.version()) < 0;
|
||||
required.start = required.init || (yield boot2docker.status()) !== 'running';
|
||||
|
||||
|
@ -181,9 +185,9 @@ var SetupStore = assign(Object.create(EventEmitter.prototype), {
|
|||
step.percent = 100;
|
||||
break;
|
||||
} catch (err) {
|
||||
console.log('Setup encountered an error.');
|
||||
console.log(err);
|
||||
if (err) {
|
||||
console.log(err);
|
||||
console.log(err.stack);
|
||||
_error = err;
|
||||
this.emit(this.ERROR_EVENT);
|
||||
} else {
|
||||
|
|
|
@ -15,6 +15,11 @@
|
|||
padding-right: 40px;
|
||||
padding-left: 80px;
|
||||
|
||||
img {
|
||||
width: 399px;
|
||||
height: 340px;
|
||||
}
|
||||
|
||||
.contents {
|
||||
position: relative;
|
||||
.detail {
|
||||
|
|
Загрузка…
Ссылка в новой задаче