mirror of https://github.com/docker/docs.git
Merge pull request #182 from kitematic/fix-volumes
Fix volume changing in container settings
This commit is contained in:
commit
d33ecb68d9
|
@ -34,7 +34,11 @@ gulp.task('js', function () {
|
||||||
.pipe(babel({blacklist: ['regenerator']}))
|
.pipe(babel({blacklist: ['regenerator']}))
|
||||||
.pipe(gulpif(options.dev || options.test, sourcemaps.write('.')))
|
.pipe(gulpif(options.dev || options.test, sourcemaps.write('.')))
|
||||||
.pipe(gulp.dest((options.dev || options.test) ? './build' : './dist/osx/' + options.filename + '/Contents/Resources/app/build'))
|
.pipe(gulp.dest((options.dev || options.test) ? './build' : './dist/osx/' + options.filename + '/Contents/Resources/app/build'))
|
||||||
.pipe(gulpif(options.dev, livereload()));
|
.pipe(gulpif(options.dev, livereload()))
|
||||||
|
.pipe(plumber(function(error) {
|
||||||
|
gutil.log(gutil.colors.red('Error (' + error.plugin + '): ' + error.message));
|
||||||
|
this.emit('end');
|
||||||
|
}));
|
||||||
});
|
});
|
||||||
|
|
||||||
gulp.task('images', function() {
|
gulp.task('images', function() {
|
||||||
|
|
14
package.json
14
package.json
|
@ -25,17 +25,17 @@
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"jest": {
|
"jest": {
|
||||||
"scriptPreprocessor": "preprocessor.js",
|
"scriptPreprocessor": "<rootDir>/preprocessor.js",
|
||||||
"unmockedModulePathPatterns": [
|
"unmockedModulePathPatterns": [
|
||||||
"tty",
|
"tty",
|
||||||
"net",
|
"net",
|
||||||
"crypto",
|
"crypto",
|
||||||
"stream",
|
"stream",
|
||||||
"object-assign",
|
"<rootDir>/node_modules/object-assign",
|
||||||
"underscore",
|
"<rootDir>/node_modules/underscore",
|
||||||
"node_modules/react",
|
"<rootDir>/node_modules/react",
|
||||||
"node_modules/bluebird",
|
"<rootDir>/node_modules/bluebird",
|
||||||
"node_modules/6to5"
|
"<rootDir>/node_modules/babel"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"docker-version": "1.5.0",
|
"docker-version": "1.5.0",
|
||||||
|
@ -50,7 +50,7 @@
|
||||||
"async": "^0.9.0",
|
"async": "^0.9.0",
|
||||||
"babel": "^4.0.1",
|
"babel": "^4.0.1",
|
||||||
"bluebird": "^2.9.6",
|
"bluebird": "^2.9.6",
|
||||||
"bugsnag-js": "git+https://git@github.com/bugsnag/bugsnag-js",
|
"bugsnag-js": "^2.4.7",
|
||||||
"dockerode": "2.0.4",
|
"dockerode": "2.0.4",
|
||||||
"download": "^4.0.0",
|
"download": "^4.0.0",
|
||||||
"exec": "0.1.2",
|
"exec": "0.1.2",
|
||||||
|
|
|
@ -29,6 +29,7 @@ var ContainerListItem = React.createClass({
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}.bind(this));
|
}.bind(this));
|
||||||
|
return false;
|
||||||
},
|
},
|
||||||
render: function () {
|
render: function () {
|
||||||
var self = this;
|
var self = this;
|
||||||
|
|
|
@ -91,10 +91,15 @@ var ContainerStore = assign(Object.create(EventEmitter.prototype), {
|
||||||
callback(err);
|
callback(err);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
var binds = [];
|
var binds = containerData.Binds || [];
|
||||||
if (data.Config.Volumes) {
|
if (data.Config.Volumes) {
|
||||||
_.each(data.Config.Volumes, function (value, key) {
|
_.each(data.Config.Volumes, function (value, key) {
|
||||||
binds.push(path.join(process.env.HOME, 'Kitematic', containerData.name, key)+ ':' + key);
|
var existingBind = _.find(binds, b => {
|
||||||
|
return b.indexOf(':' + key) !== -1;
|
||||||
|
});
|
||||||
|
if (!existingBind) {
|
||||||
|
binds.push(path.join(process.env.HOME, 'Kitematic', containerData.name, key)+ ':' + key);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
docker.client().createContainer(containerData, function (err, container) {
|
docker.client().createContainer(containerData, function (err, container) {
|
||||||
|
|
|
@ -29,7 +29,6 @@ var ImageCard = React.createClass({
|
||||||
var $tagOverlay = $(this.getDOMNode()).find('.tag-overlay');
|
var $tagOverlay = $(this.getDOMNode()).find('.tag-overlay');
|
||||||
$tagOverlay.fadeIn(300);
|
$tagOverlay.fadeIn(300);
|
||||||
$.get('https://registry.hub.docker.com/v1/repositories/' + name + '/tags', function (result) {
|
$.get('https://registry.hub.docker.com/v1/repositories/' + name + '/tags', function (result) {
|
||||||
console.log(result);
|
|
||||||
this.setState({
|
this.setState({
|
||||||
tags: result
|
tags: result
|
||||||
});
|
});
|
||||||
|
|
|
@ -911,7 +911,8 @@
|
||||||
flex: 1 auto;
|
flex: 1 auto;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
.settings-menu {
|
.settings-menu {
|
||||||
min-width: 160px;
|
min-width: 180px;
|
||||||
|
flex: 0 auto;
|
||||||
ul {
|
ul {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
|
@ -958,8 +959,8 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.settings-panel {
|
.settings-panel {
|
||||||
padding-left: 40px;
|
padding-left: 20px;
|
||||||
width: 100%;
|
flex: 1 auto;
|
||||||
overflow-x: hidden;
|
overflow-x: hidden;
|
||||||
.settings-section {
|
.settings-section {
|
||||||
margin-bottom: 40px;
|
margin-bottom: 40px;
|
||||||
|
@ -1084,13 +1085,11 @@
|
||||||
.label-left {
|
.label-left {
|
||||||
flex: 0 auto;
|
flex: 0 auto;
|
||||||
margin-right: 30px;
|
margin-right: 30px;
|
||||||
width: 30%;
|
|
||||||
}
|
}
|
||||||
.label-right {
|
.label-right {
|
||||||
flex: 1 auto;
|
flex: 1 auto;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
margin-left: 10px;
|
margin-left: 10px;
|
||||||
width: 60%;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.table-values {
|
.table-values {
|
||||||
|
@ -1099,14 +1098,12 @@
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
margin: 8px 0;
|
margin: 8px 0;
|
||||||
.value-left {
|
.value-left {
|
||||||
width: 30%;
|
|
||||||
flex: 0 auto;
|
flex: 0 auto;
|
||||||
padding: 0px;
|
padding: 0px;
|
||||||
}
|
}
|
||||||
.value-right {
|
.value-right {
|
||||||
flex: 1 auto;
|
flex: 1 auto;
|
||||||
-webkit-user-select: text;
|
-webkit-user-select: text;
|
||||||
width: 60%;
|
|
||||||
padding: 0px;
|
padding: 0px;
|
||||||
}
|
}
|
||||||
.btn {
|
.btn {
|
||||||
|
|
Loading…
Reference in New Issue