docker-build without container commit. It's not needed
This commit is contained in:
parent
21080b740f
commit
27659cdfa1
11
gulpfile.js
11
gulpfile.js
|
@ -423,10 +423,10 @@ gulp.task('docker', async () => {
|
||||||
});
|
});
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Rebuilds the docker image, if these already exist, destroys and
|
* Rebuilds the docker image, if already exists, destroys and
|
||||||
* rebuilds them.
|
* rebuild it.
|
||||||
*/
|
*/
|
||||||
gulp.task('docker-image', async () => {
|
gulp.task('docker-build', async () => {
|
||||||
try {
|
try {
|
||||||
await execP('docker rm -f dblocal');
|
await execP('docker rm -f dblocal');
|
||||||
} catch (e) {}
|
} catch (e) {}
|
||||||
|
@ -436,11 +436,6 @@ gulp.task('docker-image', async () => {
|
||||||
|
|
||||||
log('Building image...');
|
log('Building image...');
|
||||||
await execP('docker build -t dblocal:latest ./services/db');
|
await execP('docker build -t dblocal:latest ./services/db');
|
||||||
log('Starting container...');
|
|
||||||
await execP('docker run -d --name dblocal -p 3306:3306 dblocal');
|
|
||||||
await runSequenceP('docker-wait');
|
|
||||||
log('Making container snapshot...');
|
|
||||||
await execP('docker commit dblocal dblocal:latest');
|
|
||||||
});
|
});
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue