Skip to content

Compiling Source

Shih Yu Ho edited this page Oct 15, 2019 · 7 revisions

Slctl 是使用 Go 寫的, 需要事先安裝好:

  • Go 1.12.x
  • Git - 程式碼管理
  • make - For easy build (Optional)
  • Docker - For Sandbox testing (Optional)

環境建置

下載 Source:

$ git clone git@github.com:softleader/slctl.git
$ cd slctl

取得依賴的 Dependencies:

$ make bootstrap

執行專案測試, 確保一切正常:

$ make test

Sandbox

Slctl 會使用 Docker 開啟 Alpine 環境, 並將執行檔編譯好放入 container 中, 你可以在其中測試並不用擔會干擾當前的環境

$ make sanbox
Clone this wiki locally