Skip to content

Commit

Permalink
Bind mount build directory, used by functional tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jbudz committed Sep 18, 2017
1 parent ffedce6 commit 5a1c7d5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions tasks/build/docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ services:
- node_version=$KIBANA_NODE_VERSION
volumes:
- $KIBANA_BUILD_CONTEXT/target:/home/kibana/repo/target
- $KIBANA_BUILD_CONTEXT/build:/home/kibana/repo/build
4 changes: 4 additions & 0 deletions tasks/build/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,13 @@ module.exports = function (grunt) {
});

const useCache = grunt.option('cache');

const targetDir = join(grunt.config.get('root'), 'target');
const buildDir = join(grunt.config.get('root'), 'build');
rimraf.sync(targetDir);
rimraf.sync(buildDir);
mkdirp.sync(targetDir);
mkdirp.sync(buildDir);

exec('docker-compose', [
'-f', composePath,
Expand Down

0 comments on commit 5a1c7d5

Please sign in to comment.