DCOs Building Universe Private Framework Library

Source: Internet
Author: User
Tags curl json ssl certificate docker registry

Universe creating a private framework library

2 Offline Framework library Add new framework Resources

Under Linker-univers Repo folder, set the directory according to the online resource directory structure

Download the JSON file for the directory, modify the Selected:ture property of the Package.json file

#编译源代码

Cd/root/linkeruniverse-master/scripts

./build.sh

# #编译完成后, start making images

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 Download thelocal-universe container per master node

2 Docker instances loaded with container in the primary node local container

$ Docker Load < local-universe.tar.gz

3 define/etc/systemd/system/dcos-local-universe-http.service and start in the dcos-local-universe-http.service of the master node

$ CP Dcos-local-universe-http.service/etc/systemd/system/dcos-local-universe-http.service

$ systemctl Daemon-reload

$ systemctl Start Dcos-local-universe-http

4 define/etc/systemd/system/dcos-local-universe-registry.service and start in the dcos-local-universe-registry.service of the master node

$ CP Dcos-local-universe-registry.service/etc/systemd/system/dcos-local-universe-registry.service

$ systemctl Daemon-reload

$ systemctl Start Dcos-local-universe-registry

5 Delete the DCOS-CLI, the removal program (system>repositories) can be found in the DCOS-CLI installation.

$ 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 the repository, you'll need to setupthe Docker daemon on every agent to a valid SSL certificate. To does 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 your ' 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 is being hosted at master.mesos:8082. If Youcannot Resolve (or connect) to this from the your Dc/os CLI install, you won ' t beable to install subcommands. If you ' re able-connect to port 8082 on Yourmasters, the easiest-on-the-around To/etc/hosts.

The images is 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 are 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 and you'll be able to create a local-universe one. To keep size and timedown, it's common to select only what do you ' d like to see. By default, Selectedapplications is the only ones included. You can pass a list of if you ' d liketo see something more than that.

$ sudo make Local-universe

# #针对open DCOs need to install the 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 SSL Authentication for CLI

DCOs Config set core.ssl_verify false

# #添加localrepository

DCOs Package Repo Add Local-universehttp://master.mesos:8082/repo

# #查看本地的localrepository List

DCOs Package Repo List

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.