公司网络中的PHP Composer问题

I want to install Matomo (https://matomo.org/) on Openshift. I can install a simple PHP Website without any problems. But when I try to install Matomo I get this Error in the Log when I start to build the Project.

Cloning "ssh://git@stash.mycompany.net:22/matomo/analysetool.git" ...
    Commit: 5f4878b33d3e7dbae65d4ef674ea71d6f3e054e9 (update composerfile)
    Author: Wilhelm, Tom <tom.wilhelm@mycompany.com>
    Date:   Fri Nov 30 14:28:33 2018 +0100

---> Installing application source...
Found 'composer.json', installing dependencies using composer.phar...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0curl: (7) Failed to connect to 2001:41d0:302:1100::8:104f: Network is unreachable
/usr/libexec/s2i/assemble: line 21: ./composer.phar: No such file or directory

error: build error: non-zero (13) exit code from artifactory.mycompany.net/rhscl/php-70-rhel7@sha256:0277d2c99328657e80822cc4ef3e5907e1e77cd0bd672ae497c98eeff37aefbd

The Problem is that the Server my Company runs does not allow access to Files outside the Network. I think the Error comes from the composer.json File:

{
    "name": "piwik/piwik",
    "type": "application",
    "description": "the leading free/libre analytics platform",
    "keywords": ["piwik","matomo","web","analytics"],
    "homepage": "https://matomo.org",
    "license": "GPL-3.0+",
    "authors": [
        {
            "name": "The Matomo Team",
            "email": "hello@matomo.org",
            "homepage": "https://matomo.org/team/"
        }
    ],
    "support": {
        "forum": "https://forum.matomo.org/",
        "issues": "https://github.com/matomo-org/piwik/issues",
        "wiki": "https://github.com/matomo-org/piwik/wiki",
        "source": "https://github.com/matomo-org/piwik"
    },
    "config":{
        "platform": {
            "php": "5.5.9"
        }
    },
    "require": {
        "php": ">=5.5.9",
        "twig/twig": "~1.0",
        "leafo/lessphp": "~0.5.0",
        "symfony/console": "~2.6.0",
        "tedivm/jshrink": "~0.5.1",
        "mustangostang/spyc": "~0.5.0",
        "piwik/device-detector": "~3.0",
        "piwik/decompress": "~1.0",
        "piwik/network": "~0",
        "piwik/cache": "~1.0.0",
        "piwik/ini": "^1.0.6",
        "php-di/php-di": "^5.0.0",
        "psr/log": "~1.0",
        "monolog/monolog": "~1.11",
        "symfony/monolog-bridge": "~2.6.0",
        "symfony/event-dispatcher": "~2.6.0",
        "pear/pear_exception": "~1.0.0",
        "matomo/referrer-spam-blacklist": "~1.0",
        "matomo/searchengine-and-social-list": "~1.0",
        "tecnickcom/tcpdf": "~6.0",
        "piwik/piwik-php-tracker": "^1.0",
        "composer/semver": "~1.3.0",
        "szymach/c-pchart": "^2.0",
        "geoip2/geoip2": "^2.8",
        "davaxi/sparkline": "^1.1"
    },
    "require-dev": {
        "aws/aws-sdk-php": "2.7.1",
        "phpunit/phpunit": "~4.8",
        "facebook/xhprof": "dev-master",
        "phpseclib/phpseclib": "~0.3.8",
        "symfony/var-dumper": "~2.6.0",
        "symfony/yaml": "~2.6.0"
    },
    "repositories": [
        {
            "type": "package",
            "package": {
                "name": "facebook/xhprof",
                "type": "library",
                "description": "XHProf: A Hierarchical Profiler for PHP",
                "keywords": ["profiling", "performance"],
                "homepage": "http://pecl.php.net/package/xhprof",
                "license": "Apache-2.0",
                "version": "master",
                "require": {
                    "php": ">=5.2.0"
                },
                "autoload": {
                    "files": [
                        "xhprof_lib/utils/xhprof_lib.php",
                        "xhprof_lib/utils/xhprof_runs.php"
                    ]
                },
                "source": {
                    "type": "git",
                    "url": "https://github.com/phacility/xhprof",
                    "reference": "master"
                }
            }
        }
    ],
    "scripts": {
        "pre-update-cmd": [
            "Piwik\\Composer\\ScriptHandler::cleanXhprof"
        ],
        "pre-install-cmd": [
            "Piwik\\Composer\\ScriptHandler::cleanXhprof"
        ],
        "post-update-cmd": [
            "Piwik\\Composer\\ScriptHandler::buildXhprof"
        ],
        "post-install-cmd": [
            "Piwik\\Composer\\ScriptHandler::buildXhprof"
        ]
    },
    "autoload": {
        "psr-4": {
            "Piwik\\Plugins\\": "plugins/",
            "Piwik\\": "core/"
        },
        "psr-0": {
            "Zend_": "libs/",
            "HTML_": "libs/",
            "PEAR_": "libs/",
            "Archive_": "libs/"
        }
    },
    "autoload-dev": {
        "psr-4": {
            "Piwik\\Tests\\": "tests/PHPUnit/"
        }
    }
}

For this Case my Company has a JFrog Artifactory (https://jfrog.com/artifactory/). Now my Question is which File do I have to upload to the Artifactory and how Can I tell the Composer that he has to get the Files from the Artifactory and not from the Internet.

Thanks in advance

dpfwhb7470
dpfwhb7470 谁创作作曲家?解压matomo.zip然后就完成了。
一年多之前 回复
duanlinzhen7235
duanlinzhen7235 它仍然启动了Composer。我如何告诉PIP它不应该启动作曲家。
一年多之前 回复
duanao2688
duanao2688 当您使用builds.matomo.org/matomo.zip时,您不需要编写器,所有依赖项都已包含在内。您只需要解压缩zip并运行安装程序。
一年多之前 回复
douzhiji2020
douzhiji2020 仍有同样的问题。是否可以在本地构建它然后将其上传到Openshift平台?
一年多之前 回复
duanjiwu0324
duanjiwu0324 matomo.org/download或builds.matomo.org
一年多之前 回复
doubi2145
doubi2145 我在哪里可以找到构建ZIP?
一年多之前 回复
doulaobi7988
doulaobi7988 我建议你不要从作曲家安装Matomo,因为这只是开发版本缺少相当多的基本部分,而只是使用构建zip,可以完全使用没有互联网连接。
一年多之前 回复
Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问