DCOS建立 universe私有框架库

2 篇文章 0 订阅
2 篇文章 0 订阅

 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

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值