Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gitea [lightweight self-hosted Git service] #1242

Merged
merged 58 commits into from Mar 8, 2019
Merged

Conversation

veeara282
Copy link
Contributor

@veeara282 veeara282 commented Oct 18, 2018

Fixes Bug

N/A

Description of changes proposed in this pull request.

Add Gitea role to IIAB, per #1190.

Smoke-tested in operating system.

Travis CI - passes pipeline

Mention a team member for further information or comment using @ name

@holta, @coolaj86

@veeara282 veeara282 changed the title Gitea [WIP] Gitea Oct 18, 2018
@veeara282
Copy link
Contributor Author

I'm using #894 as a template. I haven't added tasks/install.yml yet.

- Convert ansible_architecture variable to filename suffix
@holta holta added this to the 6.7 milestone Oct 18, 2018
@holta holta changed the title [WIP] Gitea [WIP] Gitea [lightweight self-hosted Git service] Oct 18, 2018
@tim-moody
Copy link
Contributor

where does it store data? by convention we put everything in /library somewhere

also, unless a package puts the executable elsewhere, we tend to put things in /opt

@veeara282
Copy link
Contributor Author

These are the locations Gitea typically uses, per the documentation:

  • /usr/local/bin/gitea - the executable (it is typically downloaded to a temporary location first)
  • /var/lib/gitea/{custom,data,indexers,public,log} - where application data are stored
  • /etc/gitea/app.ini - the config file

@tim-moody
Copy link
Contributor

OK for first pass, but we assume no space in /var.
/library/gitea would be better or /library/dbdata/gitea if it is a database.

@veeara282
Copy link
Contributor Author

Okay. I'll make /library/gitea the working directory and /library/gitea/gitea the executable.

@holta
Copy link
Member

holta commented Oct 25, 2018

@georgejhunt wonders if this really belongs on Raspberry Pis? Whereas it should work fine on NUC-like PC's of course!

Opinions?

Aside: see the ongoing "GitHub for offline classrooms" discussion (Gitea vs Gogs vs Gerrit+Gitolite/Gitweb vs GitLab?) at #1190

roles/gitea/tasks/install.yml Outdated Show resolved Hide resolved
roles/gitea/tasks/install.yml Outdated Show resolved Hide resolved
holta and others added 2 commits October 25, 2018 23:04
Co-Authored-By: aidan-fitz <acf67@cornell.edu>
Co-Authored-By: aidan-fitz <acf67@cornell.edu>
@holta holta modified the milestones: 6.7, 7.0 Dec 10, 2018
@holta
Copy link
Member

holta commented Feb 24, 2019

@m-anish can you help us review this PR for possible inclusion in IIAB 7.0 in the context of offline uses in India please?

Gitea - Git with a cup of tea
A painless self-hosted Git service.
Gitea is a community managed fork of Gogs, lightweight code hosting solution written in Go and published under the MIT license.
https://gitea.io

What's your response to @georgejhunt's concern this is overkill for Raspberry Pi? FYI Gitea.io says it's very lightweight and runs great on RPi.

Thanks for sharing your opinions!

Copy link
Member

@holta holta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @aidan-fitz for strongly considering this review's 10 changes so we can merge soon!

PS i hope to highlight your work at https://www.socallinuxexpo.org over the coming 3 days in Los Angeles / Pasadena...as emblematic of the growing potential for offline communities' authentic agency!

roles/6-generic-apps/tasks/main.yml Outdated Show resolved Hide resolved
roles/gitea/README.rst Outdated Show resolved Hide resolved
roles/gitea/defaults/main.yml Show resolved Hide resolved
roles/gitea/tasks/install.yml Outdated Show resolved Hide resolved
roles/gitea/tasks/install.yml Outdated Show resolved Hide resolved
roles/gitea/tasks/main.yml Outdated Show resolved Hide resolved
vars/default_vars.yml Outdated Show resolved Hide resolved
vars/default_vars.yml Outdated Show resolved Hide resolved
vars/local_vars_medium.yml Outdated Show resolved Hide resolved
holta and others added 8 commits March 7, 2019 23:51
Co-Authored-By: aidan-fitz <aidan-fitz@users.noreply.github.com>
Co-Authored-By: aidan-fitz <aidan-fitz@users.noreply.github.com>
Co-Authored-By: aidan-fitz <aidan-fitz@users.noreply.github.com>
Co-Authored-By: aidan-fitz <aidan-fitz@users.noreply.github.com>
@holta
Copy link
Member

holta commented Mar 8, 2019

@aidan-fitz I don't think anyone will care or even notice, but http://box/gitea does not redirect to http://box/gitea/ in my testing, for whatever reason.

(Just FYI http://box/gitea/ also works, so this does not appear to be a concern...)

@veeara282
Copy link
Contributor Author

@holta Have you changed the clone URLs so that the domain is box?

@holta
Copy link
Member

holta commented Mar 8, 2019

@holta Have you changed the clone URLs so that the domain is box?

When I wrote box/gitea I really meant things like:

Again no worries if all is working! Just not exactly what I expected, during my brief testing on both Raspbian and Ubuntu 18.04.

@veeara282 veeara282 changed the title [WIP] Gitea [lightweight self-hosted Git service] Gitea [lightweight self-hosted Git service] Mar 8, 2019
@veeara282 veeara282 deleted the gitea branch March 9, 2019 17:13
@m-anish
Copy link
Contributor

m-anish commented Jul 8, 2019

@aidan-fitz Many thanks for working on this Aidan! I've been using gitea on the IIAB and absolutely love it. Thanks for patiently fixing the issues in this and making sure it works well.

Bravo!

@veeara282
Copy link
Contributor Author

Glad you're getting value out of this!

@holta holta mentioned this pull request Aug 2, 2019
@holta holta mentioned this pull request Aug 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants