OpenShiftDemos / gogs-openshift-docker

A Docker setup for gogs.io with OpenShift in mind
55 stars 164 forks source link

Can not clone the created project #16

Open kylinsoong opened 6 years ago

kylinsoong commented 6 years ago

I have finished add gogs on OCP 3.5, register a user, and create a new repository, it all worked fine, but once I try to clone the project and found the gogs host name not correct, http - http://kylin/kitchensink.git ssh - gogs@:kylin/kitchensink.git If I try to clone the project the error looks as below

$ git clone gogs@:kylin/kitchensink.git
Cloning into 'kitchensink'...
ssh: Could not resolve hostname : Name or service not known
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
[kylin@ksoong tmp]$ git clone http://kylin/kitchensink.git
Cloning into 'kitchensink'...
fatal: unable to access 'http://kylin/kitchensink.git/': Could not resolve host: kylin
thoraxe commented 6 years ago

This doesn't seem like a problem with Gogs itself.

agajdosi commented 5 years ago

Hi @kylinsoong, I have tried today with local OpenShift cluster on Minishift and it works for me just fine. From your log it seems that you have set HOSTNAME parameter to just kylin which later cause the problem.

My command to start gogs on local cluster (ip=192.168.42.197) in project named myproject:
oc new-app -f http://bit.ly/openshift-gogs-persistent-template --param=HOSTNAME=gogs-myproject.192.168.42.197.nip.io