summaryrefslogtreecommitdiffstatshomepage
path: root/tools/local-env/scripts/docker.js
blob: 60cb305b7f4987aae0c36cd60c11fa83f760888f (plain) (blame)
1
2
3
4
5
6
7
8
const dotenv       = require( 'dotenv' );
const dotenvExpand = require( 'dotenv-expand' );
const { execSync } = require( 'child_process' );

dotenvExpand( dotenv.config() );

// Execute any docker-compose command passed to this script.
execSync( 'docker-compose ' + process.argv.slice( 2 ).join( ' ' ), { stdio: 'inherit' } );