forked from YaoApp/yao
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
51 additions
and
0 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/bin/bash | ||
# version cat /etc/issue | ||
apt-get update | ||
apt-get -y install curl vim git iputils-ping build-essential gcc-arm-linux-gnueabi | ||
|
||
# Install Go | ||
cd /usr/local && tar xvfz /code/xiang/docker/go1.17.3.linux-amd64.tar.gz | ||
ln -s /usr/local/go/bin/go /usr/local/bin/go | ||
ln -s /usr/local/go/bin/gofmt /usr/local/bin/gofmt | ||
|
||
# Install Node | ||
|
||
export GO111MODULE="on" | ||
export GOPATH="/root/go" | ||
export GOPROXY="https://goproxy.cn" | ||
export http_proxy="socks5://192.168.199.178:1080" | ||
export https_proxy="socks5://192.168.199.178:1080" | ||
export NODE_OPTIONS="--max-old-space-size=5120" | ||
|
||
export PATH=~/go/bin:$PATH |