云本机应用程序注册表服务器
cnr的Python项目详细描述
#cnr命令行工具
##安装Helm注册表插件
首先,安装最新的[helm release](https://github.com/kubernetes/helm#install)。
如果您是OSX用户,请使用Brew快速启动:brew install kubernetes-helm
接下来下载并安装helm的注册表插件。
###OSX
` wget https://github.com/cn-app-registry/cnr-cli/releases/download/v0.3.7-dev/registry-cnr-v0.3.7-dev-osx-x64-helm-plugin.tar.gz mkdir -p~/.helm/plugins/ tar xzvf registry-cnr-v0.3.7-dev-osx-x64-helm-plugin.tar.gz-C~/.helm/plugins/ `
###Linux
` wget https://github.com/cn-app-registry/cnr-cli/releases/download/v0.3.7-dev/registry-cnr-v0.3.7-dev-linux-x64-helm-plugin.tar.gz mkdir -p~/.helm/plugins/ tar xzvf registry-cnr-v0.3.7-dev-linux-x64-helm-plugin.tar.gz-C~/.helm/plugins/ `
###窗口
` wget https://github.com/cn-app-registry/cnr-cli/releases/download/v0.3.7-dev/registry-cnr-v0.3.7-dev-win-x64-helm-plugin.tar.gz mkdir -p~/.helm/plugins/ tar xzvf registry-cnr-v0.3.7-dev-linux-x64-helm-plugin.tar.gz-C~/.helm/plugins/ `
注意:路径中必须有bash,并更改registry/plugin.yaml
执行以调用bash -c $HELM_PLUGIN_DIR/cnr.sh
##使用码头注册处的helm部署jenkins
` helm registry version app.quay.io `
输出应为: ` Api-version:{u'cnr-api': u'0.X.Y'} Client-version: 0.X.Y `
###安装詹金斯
` helm init helm registry list app.quay.io helm registry install app.quay.io/helm/jenkins `
##创建并推送自己的图表
首先,在https://app.quay.io(临时服务器)上创建一个帐户,并使用用户名和密码登录到cli
为在quay创建的用户名设置一个环境,以便在这些说明的其余部分中使用。
` export USERNAME=philips `
使用helm注册表插件登录到quay:
` helm registry login -u $USERNAME app.quay.io `
创建一个新的头盔图表,默认情况下会创建一个nginx应用程序示例:
` helm create nginx `
把这张新海图推到码头上,然后从码头上展开。
` cd nginx helm registry push --namespace $USERNAME app.quay.io helm registry install app.quay.io/$USERNAME/nginx `