- android - 多次调用 OnPrimaryClipChangedListener
- android - 无法更新 RecyclerView 中的 TextView 字段
- android.database.CursorIndexOutOfBoundsException : Index 0 requested, 光标大小为 0
- android - 使用 AppCompat 时,我们是否需要明确指定其 UI 组件(Spinner、EditText)颜色
我已经编写了一个 shell 脚本来在 eclipse che 中创建一个工作区。该脚本正在生成工作区 url。但是当我打开它时,工作区不会退出。我错过了什么吗?
#!/bin/sh
#=========================================================================
repo_url=$1
branch_name=$2
ip_addr=$3
#echo $repo_url
#B="$(cut -d'/' -f4 <<<$repourl)"
temp_var="$(echo $repo_url | cut -d'/' -f5)"
repo_name="$(echo $temp_var | cut -d '.' -f1)"
#rm /opt/stackstorm/packs/jenkins/template/latest_template
sudo cp /opt/stackstorm/packs/dev_prediction/actions/latest_template.sh /opt/stackstorm/packs/dev_prediction/template/
#sed -i "s/repourl/$repo_url/g;s/branchname/$branch_name/g;s/reponame/$repo_name/g;s/ipaddr/$ip_addr/g" latest_template
sudo sed -i "s@repourl@$repo_url@g;s@branchname@$branch_name@g;s@reponame@$repo_name@g;s@ipaddr@$ip_addr@g" /opt/stackstorm/packs/dev_prediction/template/latest_template.sh
sudo chmod u+x /opt/stackstorm/packs/dev_prediction/template/latest_template.sh
#cat /opt/stackstorm/packs/jenkins/template/latest_template
sudo sh /opt/stackstorm/packs/dev_prediction/template/latest_template.sh > /dev/null
sudo rm /opt/stackstorm/packs/dev_prediction/template/latest_template.sh
echo "http://$ip_addr/dashboard/#/ide/admin/$repo_name-$branch_name"
预期和实际网址:"http://URL.ap-south-1.elb.amazonaws.com/dashboard/#/ide/admin/petclinic-new-AIAS-37 "
最佳答案
我实际上并没有遵循...从我在这里看到的情况来看,您只是在生成 URL,而不是在创建工作区。以前做过吗?
要通过访问工作空间的 URL 打开工作空间,工作空间必须先存在 ;-)
如果您正在研究如何从脚本创建工作区,您可以为此使用 REST API 端点。在默认的 Eclipse Che 部署中,我们还在 URL/swagger 上部署了 swagger(在您的例子中为“http://URL.ap-south-1.elb.amazonaws.com/swagger”),因此您可以自己查看所有 API 端点。
您最感兴趣的可能是:
发布到 <cheUrl>/api/devfile
从 devfile(新的 Che 7 工作区定义文件)创建工作区
发布到 <cheUrl>/api/workspace
从 Che 6 工作区定义 json 创建工作区。
希望这对您有所帮助。
辐射
关于linux - shell脚本无法在eclipse che中创建工作区,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56662796/
我想在远程 ubuntu 14.04 服务器上安装 Eclipse Che IDE。这是我所做的: 打开从我的笔记本电脑到 ubuntu 服务器的 SSH session ,以“useradm” 身份
我最近尝试在 Windows 10 64 位上安装 Eclipse Che。我安装了所有先决条件,但是当我运行 che.bat 时,它给了我以下消息: 我该怎么做才能解决这个问题? 最佳答案 此错误是
我在服务器上安装了 Eclipse Che,当我在本地使用它时,它在我的机器上运行完美 localhost:8080 我想让它在 NGINX 前端反向代理之后从 Internet 上可用。这是想法:
Eclipse Che被Eclipse官方称为下一代IDE,作为老牌的IDE,被其寄予厚望的Eclipse Che到底有什么特点,在这篇文章中我们来一探究竟。 开发团队的Kuberentes原生I
我已经在我的 Ubuntu 16.04 上安装了 Eclipse Che,并且我正在使用外部 IP 从远程计算机连接到我的 eclipse che。 我在我的 ubuntu 防火墙上打开了 8000,
我正在尝试从 multi-machine workspace 中的另一个 NodeJS 运行时连接到 MySQL 运行时中的数据库. 在测试中,我使用目标用户列表调用 API http://local
我对eclipse che很感兴趣,因此在codenvy上开了一个测试账号。我尝试了几个模板,到目前为止一切正常。 下https://eclipse.org/che/features/它说您可以“通过
我目前正在评估使用 Eclipse Che Cloud IDE 作为在 Jboss 上运行的现有项目本地运行 Eclipse Neon 的替代方案。 在 Eclipse Neon 中,在“首选项”下,
对于我的 Eclipse Che 项目,每次加载工作区时我都必须重新安装我的 python 模块 (blegh)。有没有办法将我的团队需要的模块安装到全局文件夹中,这样他们就不必在每次加载项目时都安装
本文整理了Java中org.eclipse.che.api.fs.server.WsPathUtils类的一些代码示例,展示了WsPathUtils类的具体用法。这些代码示例主要来源于Github/S
本文整理了Java中org.eclipse.che.plugin.yaml.shared.YamlDTO类的一些代码示例,展示了YamlDTO类的具体用法。这些代码示例主要来源于Github/Stac
本文整理了Java中org.eclipse.che.plugin.yaml.shared.YamlPreference类的一些代码示例,展示了YamlPreference类的具体用法。这些代码示例主要
有字体巴塘和一个字体 八塘车 ,其他韩文字体 Dotum、Gulim 和 Gungsuh 也是如此。但有什么区别呢? “车”是什么意思? 最佳答案 哦,终于,我们来了: http://blog.kor
可以 eclipse 车 用于传统的单体应用程序开发?不使用 Docker 的应用程序。如果可能的话,从桌面 Eclipse 迁移到 Eclipse Che 是一个不错的决定吗? Che 是否提供各种
使用 Eclipse Che,我最近能够按照说明中的说明毫无问题地部署 docker 容器。 我正试图了解更多关于 Che 扩展开发的知识,我正在阅读位于下一页上的“开发你的第一个插件”的简短介绍:
如何在 mac osx 上完全卸载 eclipse che? 使用 mac osx 安装程序来安装二进制文件。看来 che 总是在 8080 上运行,甚至杀死了进程并停止了 docker。 https
我正在尝试让 Eclipse-Che 在 EC2 上运行,但遇到了一些问题。如果我只映射端口 8080,我可以启动 Eclipse-Che 服务器,但随后我无法连接到任何工作区,大概是因为我缺少端口
我们有基于 xtext 的领域特定语言。对于语言表示,我们在 Eclipse 中有自己的编辑器。这个编辑器基本上是 Eclipse 插件。 有什么方法可以将这个 eclipse 编辑器插件移植到 Ch
我正在使用 openshift.io 上托管的 Eclipse Che 7 来开发一个简单的 java 项目。可以调试测试吗?我找不到启动它们的方法。如果我打开测试 View 有 最佳答案 总是可以使
我刚刚开始使用 Eclipse che 并启动了一个项目。我没有 Main 类,我想从 Console 包中名为 TBB_SQLBuilder.java 的类开始运行该项目。 我根本不知道如何运行它。
我是一名优秀的程序员,十分优秀!