Giter VIP home page Giter VIP logo

osinstall's Introduction

DEMO

http://cloudboot.idcos.com/#/login (建议使用最新版的Google Chrome浏览器访问,以获得最佳体验)

user:admin

password:admin

Online communication

QQ群:120556005

Download:http://www.idcos.com/store/cloudboot

一键部署安装

如果没有二次开发的需求,请直接下载RPM包一键安装,几分钟即可搞定。一键部署文档:

http://idcos.github.io/osinstall-doc/environment/%E4%B8%80%E9%94%AE%E9%83%A8%E7%BD%B2.html

Prerequisites

You will need the following things properly installed on your computer.

1.Initialization DB

  • Install Mysql
yum install mysql-server
service mysqld start
chkconfig mysqld on
  • Import Data
mkdir -p /usr/yunji/
cd /usr/yunji
git clone https://github.com/idcos/osinstall-server.git
mysql -uroot < /usr/yunji/osinstall-server/doc/db/cloudboot.sql.sql

2.Deploy Server

  • Install Go
#Download the latest stable version source code
wget https://storage.googleapis.com/golang/go1.4.2.src.tar.gz

#Copied to the user's work directory
cp go1.4.2.src.tar.gz /home/<USER>/

#Unzip
tar xf go1.4.2.src.tar.gz

#Compile
cd go/src/ && ./make.bash
  • Configuration environment variable
vim ~/.bashrc
#Append
export GOROOT=~/go
export GOPATH=~/golibs
export PATH=$GOROOT/bin:$GOPATH/bin:$PATH

Restart terminal

  • Install gb tool

go get github.com/constabulary/gb/...

  • Deploy Server
cd /usr/yunji
git clone https://github.com/idcos/osinstall-server.git
cd /usr/yunji/osinstall-server/

Configuring database connection:

mkdir /etc/cloudboot-server/
cp osinstall-server/conf/cloudboot-server.conf /etc/cloudboot-server/cloudboot-server.conf
vim /etc/cloudboot-server/cloudboot-server.conf
"repo": {
    "connection": "user:password@tcp(localhost:3306)/cloudboot?charset=utf8&parseTime=True&loc=Local"
},

Configuring PXE config directory:

"osInstall":{
    "pxeConfigDir":"/var/lib/tftpboot/pxelinux.cfg"
}

Build and run

gb build
cd ./bin/
./cloudboot-server

Test

#Then visit the test url:
http://localhost:8083/api/osinstall/v1/device/getNetworkBySn?sn=xxx&type=json

#Output:
{
  "Content": "",
  "Message": "record not found",
  "Status": "error"
}

3.Deploy UI

cd /usr/yunji
git clone https://github.com/idcos/osinstall-ui.git
cd /usr/yunji/osinstall-ui/
npm install
npm install -g ember-cli
npm install -g bower
bower install
ember server --proxy=http://localhost:8083/

4.Visit your app at

http://localhost:4200/#/dashboard/main

osinstall's People

Contributors

yunji-devin avatar alexanderchen1989 avatar companycy avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.