Created
September 16, 2020 05:28
-
-
Save darrensapalo/f2d4da2d9165e60ffe7a04f5905bde27 to your computer and use it in GitHub Desktop.
task json for building golang handlers for hasura services
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
// See https://go.microsoft.com/fwlink/?LinkId=733558 | |
// for the documentation about the tasks.json format | |
"version": "2.0.0", | |
"tasks": [ | |
{ | |
"label": "Download dependencies", | |
"type": "shell", | |
"command": "${env:GOROOT}/bin/go", | |
"args": [ | |
"mod", | |
"vendor" | |
], | |
"options": { | |
"cwd": "${workspaceFolder}/transaction-service-handler" | |
}, | |
"runOptions": { | |
"instanceLimit": 1 | |
}, | |
"problemMatcher": [] | |
}, | |
{ | |
"label": "Wire up dependencies", | |
"type": "shell", | |
"command": "${env:GOPATH}/bin/wire", | |
"args": [], | |
"options": { | |
"cwd": "${workspaceFolder}/transaction-service-handler/cmd" | |
}, | |
"runOptions": { | |
"instanceLimit": 1 | |
}, | |
"dependsOn": [ | |
"Download dependencies" | |
], | |
"problemMatcher": [] | |
}, | |
{ | |
"label": "Make Package", | |
"type": "shell", | |
"command": "make", | |
"args": [ | |
"package-image" | |
], | |
"options": { | |
"cwd": "${workspaceFolder}/transaction-service-handler" | |
}, | |
"runOptions": { | |
"instanceLimit": 1 | |
}, | |
"dependsOn": [ | |
"Wire up dependencies" | |
] | |
}, | |
{ | |
"label": "Restart container", | |
"type": "shell", | |
"command": "docker-compose", | |
"args": [ | |
"up", | |
"-d", | |
"--force-recreate", | |
"transaction-service-handler" | |
], | |
"options": { | |
"cwd": "${workspaceFolder}/transaction-service-handler" | |
}, | |
"dependsOn": [ | |
"Make Package" | |
], | |
"problemMatcher": [] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment