DCOS建立 universe私有框架库
来源:互联网 发布:apple解压软件 编辑:程序博客网 时间:2024/09/21 06:42
universe建立私有框架库
2离线框架库添加新的框架资源
在linker-univers 下repo文件夹下,按照在线资源目录结构设置目录
下载目录的json文件,修改package.json文件的selected:ture属性
#编译源代码
cd /root/linkerUniverse-master/scripts
./build.sh
##编译完成后,开始制作镜像
cd /root/linkerUniverse-master/docker/local-universe
sudo make base
sudo make local-universe
##查看编译好的镜像
docker image
##拷贝编译好的镜像
docker save ID > image.tar
##拷贝编译好的镜像到dcos集群里面master节点上
docker load -i image.tar
##按照github上面的说明启动
1 每个主节点下载thelocal-universe container
2 在主节点本地容器里加载container的docker 实例
$ docker load < local-universe.tar.gz
3 在主节点的dcos-local-universe-http.service里定义/etc/systemd/system/dcos-local-universe-http.service 并启动
$ cp dcos-local-universe-http.service/etc/systemd/system/dcos-local-universe-http.service
$ systemctl daemon-reload
$ systemctl start dcos-local-universe-http
4在主节点的dcos-local-universe-registry.service里定义/etc/systemd/system/dcos-local-universe-registry.service并启动
$ cp dcos-local-universe-registry.service/etc/systemd/system/dcos-local-universe-registry.service
$ systemctl daemon-reload
$ systemctl start dcos-local-universe-registry
5删除dcos-cli,在dcos-cli安装里可以找到删除程序(System>Repositories))。
$ dcos package repo remove Universe
$ dcos package repo remove Universe-1.7
Add the local repository by using the DCOS-CLI.
$ dcos package repo add local-universehttp://master.mesos:8082/repo
To pull from this new repository, you'll need to setupthe docker daemon on every agent to have a valid SSL certificate. To do this,on every agent in your cluster, run the following:
$ mkdir -p /etc/docker/certs.d/master.mesos:5000
$ curl -o /etc/docker/certs.d/master.mesos:5000/ca.crthttp://master.mesos:8082/certs/domain.crt
$ systemctl restart docker
Note that you're welcome to use the instructions forinsecure registries instead of this step. We don't recommend this.
FAQ
I can't install CLI subcommands.
Packages are being hosted at master.mesos:8082. If youcannot resolve (or connect) to that from your DC/OS CLI install, you won't beable to install subcommands. If you're able to connect to port 8082 on yourmasters, the easiest way around this is adding the IP for one of the masters to/etc/hosts.
The images are broken!
We host everything from inside your cluster, includingthe images. They're getting served up by master.mesos:8082. If you haveconnectivity to that IP, you can add it to /etc/hosts and get the imagesworking.
I don't see the package I was looking for!
By default, we only bundle the selected packages. Ifyou'd like to get something else, run the build your own instructions yourself.
Building Your Own
Both nginx and the docker registry get bundled intothe same container. This requires building the "universe-base"container before you actually compile the universe container.
$ sudo make base
Once you've build the "universe-base"container, you'll be able to create a local-universe one. To keep size and timedown, it is common to select only what you'd like to see. By default, selectedapplications are the only ones included. You can pass a list in if you'd liketo see something more than that.
$ sudo make local-universe
##针对open dcos需要安装open dcos cli
curl -fLsS --retry 20 -Y 100000 -y 60https://downloads.dcos.io/binaries/cli/linux/x86-64/dcos-1.8/dcos -o dcos&&
sudo mv dcos /usr/local/bin &&
sudo chmod +x /usr/local/bin/dcos&&
dcos config set core.dcos_url http://10.1.24.172&&
dcos
##设置dcos cli的SSL认证
dcos config set core.ssl_verify false
##添加localrepository
dcos package repo add local-universehttp://master.mesos:8082/repo
##查看本地的localrepository list
dcos package repo list
- DCOS建立 universe私有框架库
- dcos universe
- 建立cocoaPods 私有库
- Cocoapoads建立私有库
- Universe
- universe
- 建立docker私有库(docker registry)
- CocoaPods建立私有仓库
- CocoaPods建立私有仓库
- 建立docker私有hub
- 建立docker 私有仓库
- 建立docker私有仓库
- 如何在Google Code上建立私有代码版本库
- git私有远程库的建立与使用
- 建立私有的git服务
- 建立私有的name service
- 建立一个git私有仓库
- 马文之私有仓库建立
- scrapy-redis(五):scrapy中信号工作的原理
- Yii入门教程之目录结构、入口文件及路由设置
- PhysX仿真的关键词:阻尼率 关键词:DampingRate
- Maven 第一个Maven案例 HelloWorld
- 欢迎使用CSDN-markdown编辑器
- DCOS建立 universe私有框架库
- Android fragment懒加载之初探
- 利用adb无线连接android手机进行调式 无需获得root权限
- ios push卡顿,多次push同一个页面
- 归档相关的数据字典
- Java设计模式-----单例模式
- Android Studio导入项目报:错误: 非法字符: '\ufeff'
- C程序的内存层次
- 全局搜索特定字符 pycharm