3 changed files with 74 additions and 0 deletions
@ -0,0 +1,28 @@
@@ -0,0 +1,28 @@
|
||||
#!/bin/bash |
||||
### |
||||
# @Author: Alvis Zhao |
||||
# @Date: 2020-08-17 13:26:13 |
||||
# @LastEditTime: 2020-08-17 13:31:35 |
||||
# @Description: Docker安装配置脚本 |
||||
### |
||||
|
||||
# 安装docker |
||||
sudo apt-get update |
||||
sudo apt-get -y install apt-transport-https ca-certificates curl software-properties-common |
||||
curl -fsSL https://mirrors.aliyun.com/docker-ce/linux/ubuntu/gpg | sudo apt-key add - |
||||
sudo add-apt-repository "deb [arch=amd64] https://mirrors.aliyun.com/docker-ce/linux/ubuntu $(lsb_release -cs) stable" |
||||
sudo apt-get -y update |
||||
sudo apt-get -y install docker-ce |
||||
|
||||
# 用户配置 |
||||
sudo usermod -aG docker $USER |
||||
|
||||
# 加速器 |
||||
sudo mkdir -p /etc/docker |
||||
sudo tee /etc/docker/daemon.json <<-'EOF' |
||||
{ |
||||
"registry-mirrors": ["https://3i2eoxxr.mirror.aliyuncs.com"] |
||||
} |
||||
EOF |
||||
sudo systemctl daemon-reload |
||||
sudo systemctl restart docker |
@ -0,0 +1,30 @@
@@ -0,0 +1,30 @@
|
||||
#!/bin/bash |
||||
### |
||||
# @Author: Alvis Zhao |
||||
# @Date: 2020-08-17 13:42:57 |
||||
# @LastEditTime: 2020-08-17 13:44:50 |
||||
# @Description: 安装node |
||||
### |
||||
|
||||
sudo apt update |
||||
|
||||
echo 'export NVM_NODEJS_ORG_MIRROR=https://npm.taobao.org/mirrors/node' >> ~/.bashrc |
||||
|
||||
curl -o- https://gitee.com/mirrors/nvm/raw/v0.35.3/install.sh | bash |
||||
|
||||
nvm install 12.8.0 |
||||
nvm use 12.8.0 |
||||
|
||||
npm config set registry https://registry.npm.taobao.org |
||||
npm config set disturl https://npm.taobao.org/dist |
||||
npm config set electron_mirror https://npm.taobao.org/mirrors/electron/ |
||||
npm config set sass_binary_site https://npm.taobao.org/mirrors/node-sass/ |
||||
npm config set phantomjs_cdnurl https://npm.taobao.org/mirrors/phantomjs/ |
||||
npm config set chromedriver_cdnurl https://npm.taobao.org/mirrors/chromedriver |
||||
npm config set operadriver_cdnurl https://npm.taobao.org/mirrors/operadriver |
||||
npm config set selenium_cdnurl https://npm.taobao.org/mirrors/selenium |
||||
|
||||
# git commit 工具 |
||||
npm install -g commitizen |
||||
npm install -g cz-conventional-changelog |
||||
echo '{ "path": "cz-conventional-changelog" }' > ~/.czrc |
@ -0,0 +1,16 @@
@@ -0,0 +1,16 @@
|
||||
#!/bin/bash |
||||
### |
||||
# @Author: Alvis Zhao |
||||
# @Date: 2020-08-17 13:41:08 |
||||
# @LastEditTime: 2020-08-17 13:42:42 |
||||
# @Description: python环境配置 |
||||
### |
||||
|
||||
|
||||
sudo apt update |
||||
sudo apt install -y python3.8 python-pip |
||||
|
||||
sudo tee /etc/pip.conf <<-'EOF' |
||||
[global] |
||||
index-url = https://mirrors.aliyun.com/pypi/simple/ |
||||
EOF |
Loading…
Reference in new issue