openshiftdemos / gogs-openshift-docker Goto Github PK
View Code? Open in Web Editor NEWA Docker setup for gogs.io with OpenShift in mind
A Docker setup for gogs.io with OpenShift in mind
After adding the configmap via a volume to the dc
...
oc volume dc/gogs --add --name=config-volume -m /etc/gogs/conf/ --source='{"configMap":{"name":"config-volume","items":[{"key":"appini","path":"app.ini"}]}}
The pod stays in a "ContianerCreating" state
[root@ose3-master ~]# oc get pods
NAME READY STATUS RESTARTS AGE
gogs-1-hlut3 1/1 Running 0 26m
gogs-2-91275 0/1 ContainerCreating 0 5m
gogs-2-deploy 1/1 Running 0 5m
postgresql-1-n767j 1/1 Running 3 30m
Found this on the node that's being scheduled
May 24 16:07:17 ose3-node2.example.com atomic-openshift-node[2474]: E0524 16:07:17.915440 2474 kubelet.go:1796] Unable to mount volumes for pod "gogs-2-91275_infra(3c2d0709-2204-11e6-843d-525400daa840)": conf
What is the Admin user password to log on the first time ?
Usually for other apps (including gitlab and wordpress) I just need to provide the following...
smtp.sendgrid.net:587
sendgridusername
sendgridpassword
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
Hello,
first thanks for releasing this gogs template, but I can't make it work with SKIP_TLS_VERIFY = true
, even though the value is at true in the app.ini conf file located in /etc/gogs/conf directory in the container, gogs keeps complaining about the certificates for the webhooks.
I tried with the default gogs version 0.9.97 and the last one 0.11.29.
Regards,
Reason: cannot trigger a deployment for "gogs" because it contains unresolved images
Latest version of gogs and its client offers the possibility to create a user
./gogs admin create-user --name=user4 --password=mypassword [email protected] --admin=true
So, I propose to upgrade the docker image and maybe that we merge what fabric8 did to create an admin user by default
https://github.com/fabric8io/docker-gogs/blob/master/cmds/start-gogs/start-gogs.go#L75
Any one have tried to enable ssh ? I know it's possible, gitlab and gogs with fabric8 on openshift can already do. I just dont find how to reproduce the trick.
I'm getting the following errors on RHEL 7.3 while starting the Gogs pod, has anyone run into this same issue? Appreciate any help.
Unhealthy
Readiness probe failed: Get http://172.17.0.7:3000/: dial tcp 172.17.0.7:3000: getsockopt: connection refused
Unhealthy
Liveness probe failed: Get http://172.17.0.7:3000/: dial tcp 172.17.0.7:3000: getsockopt: connection refused
For using persistent properly the app.ini should not be into custom/conf instead of conf/ ? I'm looking for modifying config after first start like disable the registration and also use custom certificate but like the official doc said, everything that's override the config should be into custom/
The free account is limited to one data volume and well this one needs 2. Why can't it just use the sqlite backend to store data?
I installed as described for persistent option, but when I try to do installation of gogs I see this error
...: open /etc/gogs/conf/app.ini.265302332.tmp: read-only file system
infact if I try to login on docker process on the minishift machine I notice that /etc/gogs/conf is read only when I try to do for instance touch file1.
I don't understand where is the problem I can see in the storage that the gog-data is claimed on a persistentVolume in RWO and the /etc/gogs/conf is mounted on gog-data... so what is the problem here?
Templates gogs-template.yaml gogs-persistent-template.yaml declare route hostname
parameter as required. But users should have the option to use auto-generated host names.
Why is that? Seems silly. Probably hard-coded.
Hello
I am using gogs with postgresql persistent storage via NFS and gogs-postgresql pod give me below error
Readiness probe failed: sh: cannot set terminal process group (-1): Inappropriate ioctl for device sh: no job control in this shell psql: FATAL: database "gogs" does not exist
When i check the db pod there is no gogs database and als there are not any data under /opt directory ?
I assume PostgreSQL only holds the user information then
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.