gridstudio安裝


----------前言-------------

gridstudio是開源項目,主頁地址為:

https://github.com/ricklamers/gridstudio

readme里面有安裝說明。下載使用是免費的,如果不想下載,可以用網頁版,不過網頁版的會按小時收費。

----------1.--------------

gridstudio是基於docker的,因此首先要安裝docker。對於windows,推薦直接安裝docker for windows,但是我的win10家庭版無法安裝,解決方法一是安裝docker toolbox,一是偽裝成win10專業版來安裝docker for windows。偽裝安裝可參考:

https://blog.csdn.net/zhuiyisinian/article/details/88700889

我用的是toolbox方法。下載docker toolbox地址:

http://mirrors.aliyun.com/docker-toolbox/windows/docker-toolbox/

ce(community edition)為免費版。

安裝完成后,點擊docker quickstart terminal圖標,彈出命令窗口,提示:

(default) Image cache directory does not exist, creating it at C:\Users\wanghl\.docker\machine\cache...
(default) No default Boot2Docker ISO found locally, downloading the latest release...
(default) Latest release for github.com/boot2docker/boot2docker is v19.03.1
(default) Downloading C:\Users\wanghl\.docker\machine\cache\boot2docker.iso from https://github.com/boot2docker/boot2docker/releases/download/v19.03.1/boot2docker.iso...

我從github下載總是不順暢,這個iso一直沒下完,所以復制地址自己用迅雷下載完拷到上面的目錄下。再次點擊terminal,成功后會有個小魚:

                        ##         .
                  ## ## ##        ==
               ## ## ## ## ##    ===
           /"""""""""""""""""\___/ ===
      ~~~ {~~ ~~~~ ~~~ ~~~~ ~~~ ~ /  ===- ~~~
           \______ o           __/
             \    \         __/
              \____\_______/

 

docker is configured to use the default machine with IP 192.168.99.100
For help getting started, check out the docs at https://docs.docker.com

注意這個ip是有用的。

另外,docker的基本命令要自學一下,比如:查看/刪除/停止鏡像/容器,進入虛擬機。

---------------2.-------------------

下載gridstudio的mirror:

docker pull ricklamers/gridstudio:release

下載會比較慢,可以設置一下docker的國內加速鏡像,我用的是道客雲的加速鏡像。設置方式可以參考這篇文章的中間部分:

https://www.jianshu.com/p/b18122eaddc3

不過他這里給的加速地址對我來說沒用,我用道客雲的有用。(上https://www.daocloud.io/mirror找)

然后為了避免重啟電腦之后丟失這個鏡像配置,需要修改toolbox下面的start.sh文件,同樣參考上一個鏈接。

-------------3.-------------

下載gridstudio的git包:

git clone https://github.com/ricklamers/gridstudio
(其實根據下面的運行方法,不指定-v路徑的話,這個包也是不需要下載的)

------------4.---------------

運行:

直接運行run.sh是會報錯的,查了一下git上的問答,可能還是docker toolbox對windows路徑解析和linux會不一致的問題,關於這個問題可以看下這個issue:

https://github.com/ricklamers/gridstudio/issues/57

我們直接運行命令:

docker run --name=gridstudio --rm=false -p 8080:8080 -p 4430:4430 ricklamers/gridstudio:release

(省略了-v指定source和userdata的路徑)

然后在windows的瀏覽器中輸入http://第一步中的ip:8080

Username: admin password: admin

 下次啟動時因為已有container,直接輸入命令:

 docker start gridstudio

 

ps: 關於docker搭建開發環境的,這篇文章可參考:

https://www.jianshu.com/p/7ca57e4f66c5


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM