{
  // See https://go.microsoft.com/fwlink/?LinkId=733558
  // for the documentation about the tasks.json format
  "version": "2.0.0",
  "tasks": [
    {
      "label": "Docker: Start Web Server",
      "type": "shell",
      "command": "docker-compose up --build",
      "group": "none",
      "problemMatcher": []
    },
    {
      "label": "Docker: Update Web Server",
      "type": "shell",
      "command": "docker-compose exec bmo.test rsync -avz --exclude .git --exclude local /mnt/sync/ /app/",
      "group": {
        "kind": "build",
        "isDefault": true
      },
      "problemMatcher": []
    },
    {
      "label": "Docker: Generate new cpanfile and cpanfile.snapshot",
      "type": "shell",
      "command": "docker build -t bmo-cpanfile -f Dockerfile.cpanfile . ; docker run -it -v $(pwd):/app/result bmo-cpanfile cp cpanfile cpanfile.snapshot /app/result",
      "group": "none",
      "problemMatcher": []
    },
    {
      "label": "Docker: Generate mozillabteam/bmo-perl-slim image",
      "type": "shell",
      "command": "docker build -t mozillabteam/bmo-perl-slim:$(date +%Y%m%d.1) -f Dockerfile.bmo-slim .",
      "group": "none",
      "problemMatcher": []
    },
  ]
}
