任务一:
Setup SDE (Software Development Environment) onLinux host for our product (E-Series Access Platform)
Building E7 on a Docker is nearlyidentical to building on any other Linux host.
Docker 即自己的linux服务器
第一步:找Youtao给自己分配Docker server账号
第二步: Initial Login and Setup
登陆自己的Dockerserver
注:在Docker server下有32位开发环境和64位开发环境
Make sure to ssh into both the 32and 64 bit containers ("e7bld-pet-xx-32"and "e7bld-pet-xx-64") to ensure "ssh" is set up
详细资料配置参考网址:http://wiki.calix.local/display/CPGE/Building+E7+on+Docker+Hosts
HOWTO: SetUp DevelopmentEnvironment on Linux Server
Once you get the login on LinuxServer, you can access any Linux Server using your login and password.
第一步:copy profile template /tools/sw/opt/config/bashrc.template and rename it to .bashrc in your home directory
见附带文件:ATT81508.bash_profile ATT16805.bashrc
第二步: 打开ATT16805.bashrc 进行环境变量配置
•Set the environment variables SW_PROJECT in your profile. Theenvironment variable SW_PROJECT specifies the project name you work on. Sincewe are working on E-Series Access Platform, SW_PROJECT will be set to e7, andE7_HOME will be set to the root of your working directory for E7 project (for example,/sandbox/<your_login>/e7).
•Add your additional environment variables and aliases into yourprivate file, named .bashrc.mine or .cshrc.mine. In this file, we should atleast set the environment variable XXX_HOME to your workspace. where XXX is theproject name in upper case. For example, set environment E7_HOME to/sandbox/<your_login>/e7.
• 模板参考已配置好的同事的.bashrc文件
第三步:建立第一个工作站:E7
Use command mkdir/sandbox/<your_login>/<workspace_name>to create your workspace.
cd /sandbox-local/ztang
新建自己的project :mkdir e7 / mkdir e7w2
cd e7 往里下载内容
Use gitall clone -f to setup your first E7 workspace on "/sandbox-local/ztang/e7".
详细资料配置参考网址:
http://wiki.calix.local/display/~eli/HOWTO%3A+SetUp+Development+Environment+on+Linux+Server
任务二:
Setup CAFE (Calix Automation FrameworkEnvironment) Development Environment
两种工具:
1:pycharm.sh 一般用来写代码 (写测试用例case)
2 : ride-café.sh 一般用来运行代码 (跑程序)
直接运行
任务三:
Setup your first workspace in SDE and build andrun Simulator successfully
第一步:在home目录建立自己的projectdirection: mkdirSIM
第二步: 在SIM目录下用仿真工具create_sim_dirs创建gpon 8.1.1的仿真环境
cd SIM
建立仿真环境成功后,执行如下命令(.bin文件)运行模拟器
找到这一段(Telnet):
第三步:Duplicate this tab
用telnet 连接这个仿真环境进行模拟
然后就可以具体模拟操作
输入命令 show ?
工作中用到的相关知识:
Git tool 的使用:
Git是目前世界上最先进的分布式版本控制系统
具体命令行参见下面网站,介绍非常详细!
http://www.liaoxuefeng.com/wiki/0013739516305929606dd18361248578c67b8067c8c017b000/00137402760310626208b4f695940a49e5348b689d095fc000
关于.bashrc文件
linux的 .bashrc文件是干什么的?
这个文件主要保存个人的一些个性化设置,如命令别名、路径等。下面是个例子:
#User specific aliases and functions
PATH="/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
LANG=zh_CN.GBK
export PATH LANG
例子中定义了路径,语言,命令别名(使用rm删除命令时总是加上-i参数需要用户确认,使用ls命令列出文件列表时加上颜色显示)。
每次修改.bashrc后,使用source~/.bashrc(或者 . ~/.bashrc)就可以立刻加载修改后的设置,使之生效。
一般会在.bash_profile文件中显式调用.bashrc。登陆linux启动bash时首先会去读取~/.bash_profile文件,这样~/.bashrc也就得到执行了,你的个性化设置也就生效了。