From c4bb7fc554c21a29896765b83d2cdf66019b0485 Mon Sep 17 00:00:00 2001 From: slaventius Date: Tue, 14 Feb 2023 17:04:47 +0300 Subject: [PATCH] * --- .vscode/extensions.json | 6 +-- .vscode/launch.json | 6 +-- .vscode/settings.json | 48 ++++++++--------- .vscode/tasks.json | 117 ++++++++++++++++++++++------------------ 4 files changed, 94 insertions(+), 83 deletions(-) diff --git a/.vscode/extensions.json b/.vscode/extensions.json index 51fbfcc..d426dfb 100644 --- a/.vscode/extensions.json +++ b/.vscode/extensions.json @@ -1,5 +1,3 @@ { - "recommendations": [ - "johnpapa.vscode-peacock" - ] -} \ No newline at end of file + "recommendations": ["johnpapa.vscode-peacock"] +} diff --git a/.vscode/launch.json b/.vscode/launch.json index cb09d93..9b0ae6f 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -11,9 +11,9 @@ "mode": "debug", "program": "${workspaceRoot}/cmd/main.go", "env": { - "APP_PORT":"9995", - "KAFKA_PORT":"9092", - "KAFKA_HOST":"37.143.12.169", + "APP_PORT": "9995", + "KAFKA_PORT": "9092", + "KAFKA_HOST": "37.143.12.169", "SENTRY_DSN": "https://3f4b31dbbd9a4a6b8a71f9881d962f25@o4504654569799680.ingest.sentry.io/4504654572683264" }, "args": [] diff --git a/.vscode/settings.json b/.vscode/settings.json index bf19f1d..1de8427 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,25 +1,25 @@ { - "workbench.colorCustomizations": { - "activityBar.activeBackground": "#0bba5d", - "activityBar.activeBorder": "#eee1fd", - "activityBar.background": "#0bba5d", - "activityBarBadge.background": "#eee1fd", - "activityBarBadge.foreground": "#15202b", - "statusBar.background": "#088a45", - "statusBarItem.hoverBackground": "#0bba5d", - "titleBar.activeBackground": "#088a45", - "titleBar.inactiveBackground": "#088a4599", - "activityBar.foreground": "#e7e7e7", - "activityBar.inactiveForeground": "#e7e7e799", - "statusBar.foreground": "#e7e7e7", - "titleBar.activeForeground": "#e7e7e7", - "titleBar.inactiveForeground": "#e7e7e799", - "statusBarItem.remoteBackground": "#088a45", - "statusBarItem.remoteForeground": "#e7e7e7", - "sash.hoverBorder": "#0bba5d", - "commandCenter.border": "#e7e7e799" - }, - "peacock.color": "#088a45", - "todo-tree.tree.disableCompactFolders": false, - "todo-tree.tree.showBadges": true -} \ No newline at end of file + "workbench.colorCustomizations": { + "activityBar.activeBackground": "#0bba5d", + "activityBar.activeBorder": "#eee1fd", + "activityBar.background": "#0bba5d", + "activityBarBadge.background": "#eee1fd", + "activityBarBadge.foreground": "#15202b", + "statusBar.background": "#088a45", + "statusBarItem.hoverBackground": "#0bba5d", + "titleBar.activeBackground": "#088a45", + "titleBar.inactiveBackground": "#088a4599", + "activityBar.foreground": "#e7e7e7", + "activityBar.inactiveForeground": "#e7e7e799", + "statusBar.foreground": "#e7e7e7", + "titleBar.activeForeground": "#e7e7e7", + "titleBar.inactiveForeground": "#e7e7e799", + "statusBarItem.remoteBackground": "#088a45", + "statusBarItem.remoteForeground": "#e7e7e7", + "sash.hoverBorder": "#0bba5d", + "commandCenter.border": "#e7e7e799" + }, + "peacock.color": "#088a45", + "todo-tree.tree.disableCompactFolders": false, + "todo-tree.tree.showBadges": true +} diff --git a/.vscode/tasks.json b/.vscode/tasks.json index cd64240..7b8b3c4 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -1,55 +1,68 @@ { - // See https://go.microsoft.com/fwlink/?LinkId=733558 - // for the documentation about the tasks.json format - "version": "2.0.0", - "tasks": [ - { - "label": "build linux", - "type": "shell", - "group": { - "kind": "build", - "isDefault": true - }, - "presentation": { - "echo": true, - "panel": "new" - }, - "options": { - "cwd": "${workspaceRoot}", - "env": { - "APP": "pakitara", - "GOOS": "linux", - "GOARCH": "amd64", - "GOBIN": "${env:GOPATH}/bin" - }, - "args": [ - "ldflags '-s -w'" - ] - }, - "command": "go build -o $GOBIN/$APP-$GOOS-$GOARCH -ldflags \"-s -w\" $APP.go", - "problemMatcher": [] + "version": "2.0.0", + "tasks": [ + { + "label": "build", + "type": "shell", + "group": { + "kind": "build", + "isDefault": true + }, + "presentation": { + "echo": true, + "panel": "new" + }, + "options": { + "cwd": "${workspaceRoot}", + "env": { + "APP": "authDBService", + "GOOS": "linux", + "GOARCH": "amd64", + "GOBIN": "${env:GOPATH}/bin" }, - { - "label": "build windows", - "type": "shell", - "group": "build", - "presentation": { - "echo": true, - "panel": "new" - }, - "options": { - "cwd": "${workspaceRoot}", - "env": { - "APP": "pakitara", - "GOOS": "windows", - "GOARCH": "amd64", - "GOBIN": "${env:GOPATH}/bin" - }, - "args": [ - "ldflags '-s -w'" - ] - }, - "command": "go build -o $GOBIN\\$APP-$GOOS-$GOARCH.exe -ldflags \"-s -w\" $APP.go" + "args": ["ldflags '-s -w'"] + }, + "command": "go build -o $GOBIN/$APP-$GOOS-$GOARCH -ldflags \"-s -w\" ./cmd/main.go", + "problemMatcher": [] + }, + { + "label": "docker-build", + "type": "shell", + "group": { + "kind": "build" + }, + "presentation": { + "echo": true, + "panel": "new" + }, + "options": { + "cwd": "${workspaceRoot}", + "env": { + "TAG": "slaventius/test3k_auth_db:latest" + }, + "args": ["--no-cache", "--tag $TAG"] + }, + "command": "sudo docker build --no-cache --tag $TAG ./build/", + "problemMatcher": [] + }, + { + "label": "docker-push", + "type": "shell", + "group": { + "kind": "build" + }, + "presentation": { + "echo": true, + "panel": "new" + }, + "options": { + "cwd": "${workspaceRoot}", + "env": { + "TAG": "slaventius/test3k_auth_db:latest" } - ] -} \ No newline at end of file + }, + "command": "sudo docker push $TAG", + "problemMatcher": [] + } + ] +}