docker-build without container commit. It's not needed

This commit is contained in:
Joan Sanchez 2018-04-27 07:27:29 +02:00
parent 21080b740f
commit 27659cdfa1
1 changed files with 3 additions and 8 deletions

View File

@ -423,10 +423,10 @@ gulp.task('docker', async () => {
});
/**
* Rebuilds the docker image, if these already exist, destroys and
* rebuilds them.
* Rebuilds the docker image, if already exists, destroys and
* rebuild it.
*/
gulp.task('docker-image', async () => {
gulp.task('docker-build', async () => {
try {
await execP('docker rm -f dblocal');
} catch (e) {}
@ -436,11 +436,6 @@ gulp.task('docker-image', async () => {
log('Building image...');
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');
});
/**