mirror of
https://gitlab.com/octtspacc/OcttKB
synced 2025-06-06 00:29:12 +02:00
Manual push Sun Jul 23 12:21:07 CEST 2023
This commit is contained in:
9
Wiki-OcttKB/tiddlers/Normal/Docker.tid
Normal file
9
Wiki-OcttKB/tiddlers/Normal/Docker.tid
Normal file
@ -0,0 +1,9 @@
|
||||
created: 20230722232624533
|
||||
creator: Octt
|
||||
modified: 20230722232701023
|
||||
modifier: Octt
|
||||
tags:
|
||||
title: Docker
|
||||
|
||||
<<^wikipediaframe "Docker (software)">>
|
||||
|
@ -0,0 +1,41 @@
|
||||
created: 20230722230918717
|
||||
creator: Octt
|
||||
modified: 20230722232602006
|
||||
modifier: Octt
|
||||
tags: WIP
|
||||
title: Installing kbin on Alpine Linux
|
||||
|
||||
As of today, spring-summer 2023, it's quite tricky to install kbin without Docker (not that it's better with Docker).
|
||||
|
||||
[[On the kbin wiki, a detailed bare-metal installation procedure|https://codeberg.org/Kbin/kbin-core/wiki/Admin-Bare-Metal-Guide]] is now available, but it both tells too much, and not enough to solve some subtle issues.
|
||||
|
||||
Following instructions for installation are assembled by me for my experimental, private install use cases. They will be updated as I, with a group of other people, work to deploy a production kbin instance.
|
||||
|
||||
Following resources have helped me compile these notes:
|
||||
|
||||
* (Created by me) [[Issue #2: Database errors when trying to run without Docker|https://codeberg.org/Kbin/kbin-core/issues/2]] + other issues
|
||||
* [[Issue #186: 500 Internal Server Error when searching for memes@lemmy.ml|https://codeberg.org/Kbin/kbin-core/issues/186]]
|
||||
* Thinking, trying, and reporting results in various chatrooms
|
||||
|
||||
!!! Installing core dependencies
|
||||
|
||||
symfony, composer, php82, a lot of modules, and kbin itself
|
||||
|
||||
...
|
||||
|
||||
```sh
|
||||
git clone --depth=1 https://codeberg.org/Kbin/kbin-core
|
||||
...
|
||||
```
|
||||
|
||||
...
|
||||
|
||||
!!! Installing side services
|
||||
|
||||
PostgreSQL and Redis are mandatory
|
||||
|
||||
...
|
||||
|
||||
...
|
||||
|
||||
Reminder: reading this issue might help: [[Federation works only partially - Configuration Issue?|https://codeberg.org/Kbin/kbin-core/issues/73]]
|
@ -35,9 +35,14 @@ do
|
||||
cd "./${TypeDir}.tmp"
|
||||
for OldFile in *
|
||||
do
|
||||
Ext="$(echo "${OldFile}" | rev | cut -d"." -f1 | rev)"
|
||||
NewFile="$(echo "${OldFile}" | sed -e 's|_|/|g' | rev | cut -d"." -f2- | rev)_.${Ext}"
|
||||
#NewFile="$(echo "${OldFile}" | sed -e 's|_|/|g')"
|
||||
#Ext="$(echo "${OldFile}" | rev | cut -d"." -f1 | rev)"
|
||||
#NewFile="$(echo "${OldFile}" | sed -e 's|_|/|g' | rev | cut -d"." -f2- | rev)_.${Ext}"
|
||||
NewPath="$(echo "${OldFile}" | sed -e 's|_|/|g')"
|
||||
NewName="$(basename "${NewPath}")"
|
||||
NewParent="$(echo "${NewPath}" | rev | cut -d"/" -f2- | rev)"
|
||||
{ [ "${NewPath}" = "${NewName}" ] && [ "${NewPath}" = "${NewParent}" ] ;} \
|
||||
&& NewFile="_${NewPath}" \
|
||||
|| NewFile="${NewParent}/_${NewName}"
|
||||
#[ "$(basename "${NewFile}") | cut -b1" = . ]
|
||||
mkdir -p "../${TypeDir}/${NewFile}"
|
||||
rm -rf "../${TypeDir}/${NewFile}"
|
||||
|
Reference in New Issue
Block a user