From 2fc94cd5ef7f1b8d8cca6523a1409f7dba91546f Mon Sep 17 00:00:00 2001 From: abdfnx Date: Tue, 12 Jan 2021 05:47:27 +0000 Subject: [PATCH] M core files --- .gitpod.yml | 4 ++-- .theia/settings.json | 3 --- Dockerfile | 13 +++++++++---- signin/signin.go | 2 +- 4 files changed, 12 insertions(+), 10 deletions(-) delete mode 100644 .theia/settings.json diff --git a/.gitpod.yml b/.gitpod.yml index 37c49ab3..0ddabb23 100644 --- a/.gitpod.yml +++ b/.gitpod.yml @@ -2,8 +2,8 @@ image: file: Dockerfile tasks: - - init: git config pull.ff only && cd core && go get - command: go build + - init: git config pull.ff only && cd core && go get && cd .. + command: go build vscode: extensions: diff --git a/.theia/settings.json b/.theia/settings.json deleted file mode 100644 index 27c5cd2b..00000000 --- a/.theia/settings.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "editor.autoSave": "on" -} \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index 02ee1743..8e3b4b42 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,14 +1,13 @@ -# The reason of choosing gitpod/workspace-full, Because it contains everything, like brew, apt, npm +# The reason of choosing gitpod/workspace-full, Because it contains everything, like brew, apt/apt-get, npm FROM gitpod/workspace-full -WORKDIR ../ -# curl & wget - +# pkgs ARG PKGS="curl wget" ARG GITHUB_URL="https://raw.githubusercontent.com" RUN sudo apt-get update RUN sudo apt-get install $PKGS -y +RUN brew install dep RUN sudo apt-get update # install cli apps (gh, corgit, manx, verx) @@ -16,7 +15,13 @@ RUN brew install gh RUN /bin/bash -c "$(curl -fsSL $GITHUB_URL/Dev-x-Team/corgit/main/setup)" RUN npm i -g @abdfnx/manx RUN /bin/bash -c "$(curl -fsSL $GITHUB_URL/abdfnx/verx/HEAD/install.sh)" +RUN sudo apt-get update + +# zsh +RUN brew install zsh # secman RUN /bin/bash -c "$(curl -fsSL $GITHUB_URL/abdfnx/secman/HEAD/packages/install_linux.sh)" RUN sudo apt-get update + +WORKDIR /core diff --git a/signin/signin.go b/signin/signin.go index 7d2289fa..4c9f1e93 100644 --- a/signin/signin.go +++ b/signin/signin.go @@ -5,7 +5,7 @@ import ( "fmt" ) -func auth() { +func Auth() { cmd := exec.Command("gh", "auth", "login") stdout, err := cmd.Output()