Docker: Move PostmarketOS related stuff to pmb dir

Signed-off-by: Vasiliy Doylov <nekocwd@mainlining.org>
This commit is contained in:
Vasiliy Doylov 2025-06-06 23:40:35 +03:00
parent 41aa5fce49
commit db0c3f0a16
Signed by: NekoCWD
GPG key ID: B7BE22D44474A582
5 changed files with 31 additions and 6 deletions

View file

@ -25,5 +25,7 @@ services:
volumes:
- ./data/pmb/:/data
- ./conf/pmb/:/conf
- ./setup-pmbootstrap:/setup-pmbootstrap
- ./pmb/setup:/setup-pmbootstrap
- ./pmb/pmbootstrap:/usr/bin/pmbootstrap
- ./pmb/pmbootstrap.conf:/pmbootstrap.conf
command: "/setup-pmbootstrap"

2
pmb/pmbootstrap Executable file
View file

@ -0,0 +1,2 @@
#!/bin/sh
exec /data/pmbootstrap/pmbootstrap.py -c /pmbootstrap.cfg -p /data/pmaports -w /data/work -y "$@"

20
pmb/pmbootstrap.cfg Normal file
View file

@ -0,0 +1,20 @@
[pmbootstrap]
build_pkgs_on_install = False
device = oneplus-enchilada
extra_packages = fish,nano,fastfetch
hostname = fireneko
is_default_channel = False
kernel = mainline
sudo_timer = True
systemd = never
timezone = Europe/Moscow
ui = phosh
user = neko
[providers]
postmarketos-base-ui-wifi = postmarketos-base-ui-wifi-wpa_supplicant
[mirrors]
alpine = https://mirror.nekocwd.duckdns.org/alpine/
pmaports = https://mirror.nekocwd.duckdns.org/postmarketos/
systemd = https://mirror.nekocwd.duckdns.org/postmarketos/extra-repos/systemd/

6
pmb/setup Executable file
View file

@ -0,0 +1,6 @@
#!/bin/sh
/setup-runner
git clone https://git.nekocwd.duckdns.org/Mirror/pmbootstrap /data/pmbootstrap || true
git clone https://git.nekocwd.duckdns.org/Mirror/pmaports /data/pmaports || true
git clone https://git.nekocwd.duckdns.org/Mirror/aports /data/aports || true
/run-runner

View file

@ -1,5 +0,0 @@
#!/bin/sh
/setup-runner
git clone https://git.nekocwd.duckdns.org/Mirror/pmbootstrap /data/pmbootstrap || true
ln -s /data/pmbootstrap/pmbootstrap.py /usr/bin/pmbootstrap || true
/run-runner