Skip to content

Commit

Permalink
feat: add docker-compose (#253)
Browse files Browse the repository at this point in the history
  • Loading branch information
gengjiawen authored Apr 6, 2024
1 parent 4715340 commit d1861f0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions src/helpers/virtualization.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,14 @@ module.exports = {
]).then(v => utils.determineFound('Docker', v[0], v[1]));
},

getDockerComposeInfo: () => {
utils.log('trace', 'getDockerComposeInfo');
return Promise.all([
utils.run('docker-compose --version').then(utils.findVersion),
utils.which('docker-compose'),
]).then(v => utils.determineFound('Docker Compose', v[0], v[1]));
},

getParallelsInfo: () => {
utils.log('trace', 'getParallelsInfo');
return Promise.all([
Expand Down
2 changes: 1 addition & 1 deletion src/presets.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ module.exports = {
'Curl',
],
Servers: ['Apache', 'Nginx'],
Virtualization: ['Docker', 'Parallels', 'VirtualBox', 'VMware Fusion'],
Virtualization: ['Docker', 'Docker Compose', 'Parallels', 'VirtualBox', 'VMware Fusion'],
SDKs: ['iOS SDK', 'Android SDK', 'Windows SDK'],
IDEs: [
'Android Studio',
Expand Down

0 comments on commit d1861f0

Please sign in to comment.