centos7系统下rancher ui编译

1. 安装watchman

yum install autoconf automake libtool -y
wget https://github.com/facebook/watchman/archive/v4.9.0.tar.gz
tar zxvf v4.9.0.tar.gz
cd watchman-4.9.0
./autogen.sh
./configure
make && make install

2. 安装npm

wget https://nodejs.org/dist/latest-v10.x/node-v10.16.0-linux-x64.tar.gz -O /usr/local/node-v10.16.0-linux-x64.tar.gz
cd /usr/local/
tar zxvf node-v10.16.0-linux-x64.tar.gz
echo 'export NODE_HOME="/usr/local/node-v10.16.0-linux-x64"' >> /etc/profile
echo 'export PATH=$PATH:$NODE_HOME/bin' >> /etc/profile
source /etc/profile

3. 安装chrom

yum install  google-chrome-stable_current_x86_64.rpm

4. 安装yarn、bower

npm install --global yarn
yarn global add bower

5. 下载rancher ui源码并编译

git clone 'https://github.com/rancher/ui'
cd ui
git checkout v2.2.41
./scripts/update-dependencies
./scripts/build-static -s -f

 

最后,在dist/static目录下,即生成编译后的代码

你可能感兴趣的:(k8s)