aboutsummaryrefslogtreecommitdiff
path: root/GitServer.wiki
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2023-02-02 11:21:01 +0100
committerHugo Hörnquist <hugo@lysator.liu.se>2023-02-02 11:21:01 +0100
commitb57c23703336883211d905e868520bceae76c8e0 (patch)
treee5165b43b73c0a9bd59f9a9075cbdbd79c3037da /GitServer.wiki
parentons 1 feb 2023 20:56:09 CET (diff)
downloadwiki-public-b57c23703336883211d905e868520bceae76c8e0.tar.gz
wiki-public-b57c23703336883211d905e868520bceae76c8e0.tar.xz
tor 2 feb 2023 11:21:01 CET
Diffstat (limited to 'GitServer.wiki')
-rw-r--r--GitServer.wiki177
1 files changed, 56 insertions, 121 deletions
diff --git a/GitServer.wiki b/GitServer.wiki
index 165fd9d..13d8551 100644
--- a/GitServer.wiki
+++ b/GitServer.wiki
@@ -1,39 +1,26 @@
-= Contents =
- - [[#Git Server|Git Server]]
- - [[#Git Server#Autentisering|Autentisering]]
- - [[#Git Server#Autentisering#Autentisering HTTP|Autentisering HTTP]]
- - [[#Git Server#Autentisering#Autentisering HTTP#Framtiden|Framtiden]]
- - [[#Git Server#Autentisering#Autentisering SSH|Autentisering SSH]]
- - [[#Git Server#Autentisering#Autentisering SSH#Problem|Problem]]
- - [[#Git Server#Autentisering#Autentisering SSH#HTTP access|HTTP access]]
- - [[#Git Server#Autentisering#Autentisering SSH#gitweb.owner|gitweb.owner]]
- - [[#Git Server#Pull Requests|Pull Requests]]
- - [[#Taggning|Taggning]]
- - [[#Taggning#Cleanup|Cleanup]]
- - [[#Hooks|Hooks]]
- - [[#Hooks#Sample run of post-receive|Sample run of post-receive]]
- - [[#Hooks#Sample run of post-receive#COMMAND LINE|COMMAND LINE]]
- - [[#Hooks#Sample run of post-receive#ENVIRONMENT|ENVIRONMENT]]
- - [[#Hooks#Sample run of post-receive#STDIN|STDIN]]
- - [[#Hooks#Sample run of post-receive#Framtida förbättringar|Framtida förbättringar]]
- - [[#Hooks#Sample run of post-receive#Default config|Default config]]
- - [[#Hooks#Sample run of post-receive#Default config#cclite|cclite]]
- - [[#Hooks#Sample run of post-receive#Default config#VVVVVV|VVVVVV]]
- - [[#Hooks#Sample run of post-receive#Default config#password-store|password-store]]
- - [[#Hooks#Sample run of post-receive#Default config#reddit-parenthesis-bot|reddit-parenthesis-bot]]
- - [[#Hooks#Sample run of post-receive#Default config#cgit|cgit]]
- - [[#Hooks#Sample run of post-receive#Default config#guile-cairo|guile-cairo]]
- - [[#Hooks#Publish|Publish]]
- - [[#Hooks#Publish#in repo, for `/.githooks/${hookname}.d}/*.publish`|in repo, for `/.githooks/${hookname}.d}/*.publish`]]
- - [[#Hooks#Publish#config|config]]
- - [[#Hooks#Publish#publish|publish]]
-
-= Git Server =
+%title Git Server
+
+Generell information om min git server som inte platsar i dess
+[[wn.public:gitserver-documentation|"officiella" dokumentation]].
+
https://git.hornquist.se
-[[wn.private:git-hooks]]
+= Publicering av "statiska" filer =
+:TODO:
+[[https://git.hornquist.se/puppet/profiles/tree/manifests/cgit.pp|Puppetprofilen]]
+vilken konfigurerar cgit drar just nu ett antal sidor från CGit's
+http-endpoint. Det leder till att de uppdateras varje körning. But ut
+till att [[wn.private:Continious deployment|de automatiskt publiceras]]
+och dra därifrån istället (kan vara både över HTTP och lokalt).
+
+= Backup =
+:TODO:
+
+En bakuplösning måste finnas
+
+[[wn.private:gitlab-mirroring]] ::
-== Autentisering ==
+= Autentisering =
=== Autentisering HTTP ===
==== Framtiden ====
@@ -71,7 +58,7 @@ Då (planen är att) cgit ska autentisera användare mot fälten
Alternativt att någon form av gemensamm config sätts, som trycker till
dem båda.
-== Pull Requests ==
+= Pull Requests =
Taget från [[Vimwiki]]:
@@ -87,69 +74,46 @@ En lösning är att ha fyra access-nivåer till servern (eller
- Kan jobba på existerande grenar (som de inte skapat)
- Full access
-= Taggning =
-{{{
-find -type d -name \*.git -execdir env GIT_DIR={} git config gitweb.category Liu \;
-}}}
+= Hooks =
+- [[gitserver-documentation]]
-== Cleanup ==
-:TODO:
-- [ ] `gitweb.category` should be set automaticly
+= Framtida förbättringar =
+- `enable-remote-branches` ([[man:cgitrc#5]])
+- Vad händer om ett repo har både subdir och kattegori
+ - Vad händer om de inte stämmer överrens?
+- Delade repositories
+ - gitolite?
-= Hooks =
+== Publish ==
-- [[gitserver-documentation]]
+githooks.hornquist.se?
-== Sample run of post-receive ==
+https://git.hornquist.se/githooks/
+⇒ https://githooks.hornquist.se/githooks/
-Repo stored in `~git/git/test.git`, pushed over SSH.
+/githooks/commit/?id=<hash>
+/calp/tag/?h=v0.5.9
-=== COMMAND LINE ===
-{{{
-argv ['/dev/fd/4']
- cwd '/home/git/git/test.git'
-}}}
+=== in repo, for `/.githooks/${hookname}.d}/*.publish` ===
+Setup containerized environment?
-=== ENVIRONMENT ===
-{{{
-DBUS_SESSION_BUS_ADDRESS 'unix:path=/run/user/1001/bus'
- GIT_DIR '.'
- GIT_EXEC_PATH '/usr/lib/git-core'
- GIT_PUSH_OPTION_COUNT '0'
- HOME '/home/git'
- LANG 'en_US.UTF-8'
- LANGUAGE 'en_US:en'
- LOGNAME 'git'
- MOTD_SHOWN 'pam'
- PATH '/usr/lib/git-core:/home/git/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin'
- PWD '/home/git'
- SHELL '/bin/bash'
- SHLVL '0'
- SSH_CLIENT '46.59.41.54 60166 22'
- SSH_CONNECTION '46.59.41.54 60166 90.143.207.193 22'
- USER 'git'
- XDG_RUNTIME_DIR '/run/user/1001'
- XDG_SESSION_CLASS 'user'
- XDG_SESSION_ID '59490'
- XDG_SESSION_TYPE 'tty'
- _ '/usr/bin/git-receive-pack'
- GITHOOKS '1'
-}}}
-=== STDIN ===
-{{{
-7aaa112c7563e535f71f99e79fc3bf008f45750d 432ef726ac54c0acecc9c9728129413510e518b4 refs/heads/master
-}}}
+=== config ===
+if `githooks.checkout = true`
+end
+env
+GIT_SOURCE_URL=https://git.hornquist.se/githooks/tree/${filename}
+GIT_REPO_DIR=${repo_dir}
+TARGET_DIRECTORY=${target_directory}
+PUBLISH=${target_directory}/file-to-publish
-=== Framtida förbättringar ===
-- `enable-remote-branches` ([[man:cgitrc#5]])
-- Vad händer om ett repo har både subdir och kattegori
- - Vad händer om de inte stämmer överrens?
-- Delade repositories
- - gitolite?
+=== publish ===
+{{{
+find -t file ?
+}}}
-=== Default config ===
+= Default config =
{{{
[core]
repositoryformatversion = 0
@@ -158,27 +122,27 @@ DBUS_SESSION_BUS_ADDRESS 'unix:path=/run/user/1001/bus'
}}}
41adefcd1f91e91d473275a100d31a2c
-===== cclite =====
+== cclite ==
[remote "origin"]
url = https://github.com/Sorroko/cclite
-===== VVVVVV =====
+== VVVVVV ==
[remote "origin"]
url = https://github.com/TerryCavanagh/VVVVVV
fetch = `+refs/heads/*:refs/remotes/origin/*`
-===== password-store =====
+== password-store ==
[remote "upstream"]
url = https://git.zx2c4.com/password-store
fetch = `+refs/heads/*:refs/remotes/upstream`
-===== reddit-parenthesis-bot =====
+== reddit-parenthesis-bot ==
[gitweb]
category = fork
[remote "origin"]
url = https://github.com/HugoNikanor/reddit-parenthesis-bot
-===== cgit =====
+== cgit ==
[gitweb]
group = cgit
category = fork
@@ -186,38 +150,9 @@ DBUS_SESSION_BUS_ADDRESS 'unix:path=/run/user/1001/bus'
url = git://git.zx2c4.com/cgit
fetch = `+refs/heads/*:refs/remotes/upstream/*`
-===== guile-cairo =====
+== guile-cairo ==
[gitweb]
category = fork
[remote "upstream"]
url = git://git.savannah.nongnu.org/guile-cairo.git
fetch = `+refs/heads/*:refs/remotes/upstream/*`
-
-== Publish ==
-
-githooks.hornquist.se?
-
-https://git.hornquist.se/githooks/
-⇒ https://githooks.hornquist.se/githooks/
-
-/githooks/commit/?id=<hash>
-/calp/tag/?h=v0.5.9
-
-=== in repo, for `/.githooks/${hookname}.d}/*.publish` ===
-Setup containerized environment?
-
-
-=== config ===
-if `githooks.checkout = true`
-end
-
-
-env
-GIT_SOURCE_URL=https://git.hornquist.se/githooks/tree/${filename}
-GIT_REPO_DIR=${repo_dir}
-TARGET_DIRECTORY=${target_directory}
-PUBLISH=${target_directory}/file-to-publish
-
-=== publish ===
-{{{
-find -t file ?