Skip to content

Commit

Permalink
build(dev): vscode task to up/down with .dockerenv
Browse files Browse the repository at this point in the history
  • Loading branch information
PiTrem committed Feb 4, 2025
1 parent 382cb40 commit 9bab4b3
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,18 @@
"label": "mocha - unit tests current file",
"type": "shell",
"command": "NODE_PATH=./spec/javascripts:./app/javascript yarn mocha --watch --exit --require '@babel/register' './spec/javascripts/helper/setup.js' '${file}'"
},
{
"label": "Dev Docker Compose Up",
"type": "shell",
"command": "docker",
"args": ["compose", "-f", "docker-compose.dev.yml", "--env-file", ".dockerenv", "up", "-d"]
},
{
"label": "Dev Docker Compose Down",
"type": "shell",
"command": "docker",
"args": ["compose", "-f", "docker-compose.dev.yml", "--env-file", ".dockerenv", "down", "--remove-orphans"]
}
]
}

0 comments on commit 9bab4b3

Please sign in to comment.