【问题标题】:How to import publicly available jelastic manifests from gitlab repositories in the jelastic dashboard?如何从 jelastic 仪表板中的 gitlab 存储库导入公开可用的 jelastic 清单?
【发布时间】:2020-03-27 07:49:54
【问题描述】:

我目前正在从 github 过渡到 gitlab。今天,我的代码出现在这两个位置。我在 github 上有一个 jps 清单:

https://github.com/shopozor/services/blob/master/manifest.jps

和 gitlab 上完全相同的清单:

https://gitlab.hidora.com/softozor/services/blob/master/manifest.jps

在 Jelastic 仪表板中,我可以加载我的 github 清单。但是,我无法在 gitlab 上加载我的清单版本:

有什么问题?我必须在某处配置一些特殊的东西吗?这两个清单都是公开的。为什么我无法导入 gitlab 清单?

我也尝试使用原始清单:

https://gitlab.hidora.com/softozor/services/raw/master/manifest.jps

我也尝试通过gitlab API 获取清单文件,但没有成功。

编辑

我已尝试加载 this manifest。在那里我们看到我正在运行一个命令

wget "${baseUrl}/jelastic/postgres/execCmdScript.sh" -O /var/lib/pgsql/script.sh 2>&1

在 jelastic 控制台中,该命令会引发错误

[07:56:54 Shopozor.cluster:2]: ERROR: cmd [sqldb: 62900].response: {" result": 4109," source": “JEL”," error": “The operation could not be performed. ”," errOut": ""," nodeid": 62900," exitStatus": 4," out": “--2020-03-27 07:56:53-- https://gitlab.hidora.com/softozor/services/raw/install-postgres-in-dedicated-env/jelastic/postgres/execCmdScript.sh\nResolving gitlab.hidora.com (gitlab.hidora.com)... 10.102.1.82\nConnecting to gitlab.hidora.com (gitlab.hidora.com)|10.102.1.82|:443... failed: Connection refused.”}

如果我现在通过 ssh 使用我从未在 gitlab 上通过身份验证的计算机,并运行相同的命令,那么它可以工作。这有点奇怪,不是吗? Jelastic需要什么认证???这一切都是公开的,任何人都可以使用,除了 Jelastic?

【问题讨论】:

    标签: gitlab jelastic


    【解决方案1】:

    经过更多研究,我终于能够将我的清单从 gitlab 加载到 jelastic 中。问题可能是由于 gitlab 配置。在我拥有的设置中,从 gitlab repo 加载 jps 无法通过 https 工作(我没有自己制作,它是 CI / CD 即服务)。但是,它可以通过 http 运行。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-02-14
      • 1970-01-01
      • 2019-09-30
      • 1970-01-01
      相关资源
      最近更新 更多