fabric8io / docker-gogs

9 stars 17 forks source link

gogs won't deploy using the fabric8 installer #10

Open Titerote opened 7 years ago

Titerote commented 7 years ago

While using the gofabric8 binary installer on a local openshift installarion the gogs deployment fails with a permissions problem creating the /app folder as part of the Dockerfile manifest :+1:

mkdir: cannot create directory '/app/gogs/data/git': Permission denied mkdir: cannot create directory '/app/gogs/data/ssh/': Permission denied /opt/gogs/start.sh: line 24: cd: /app/gogs/data/ssh/: No such file or directory panic: open gogs.rsa: permission denied

So I had to change the gogs deployment's image parameter from from fabric8/gogs:v0.9.97 to fabric8/gogs:2.2.297 and I also had to add a DOMAIN parameter

vinodbhoier commented 6 years ago

I also had to add a DOMAIN parameter ....mean what you have done please let us know

vinodbhoier commented 6 years ago

Where you have modified or added the domain parameter entry?

pravinarr commented 6 years ago

if there a solution to this problem. Please let me know.

thank you in advance

shuang-x-zhao-gj commented 6 years ago

I recently was investigating fabric8, i have passed this problem, there are two ways, one is as you guys said, you can upgrade to a new version, i just tried a newer one than then 0.9.XXX, it asked DOMAIN for you, i think it should be the domain used for gogs ssh repo url, i modify the deployment to pass it, then the gogs pod can start; another way is changing your underlying storage system, i tried rbd, cephfs, rbd is not suitable for jenkins needs, and cephfs will have input/output error... maybe i didn't configure them right, so i decided to just use a simple storage class solution, i chose NFS, then gogs can start and generate files under the provisioned dir.

Hope you guys good luck with that

-Roger

daniyalj commented 6 years ago

Running into the same problem when deploying this onto Openshift without fabric8 console