OpenShift S2I Build - Git Clone Over SSH on a Non-Default Port

Solution In Progress - Updated -

Issue

  • We try to build an application on OpenShift using S2I where the remote git server does not listen on the SSH default port 22
  • How do we configure the BuildConfig so that the source can be cloned? We tried:
  source:
    git:
      ref: master
      uri: git@domain.com:4567/user/app.git
    sourceSecret:
      name: sshsecret
    type: Git

But that doesn't work.

  • How can we specify the remote port?

Environment

  • Red Hat OpenShift Container Platform
    • 3.2
    • 3.3

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In