mirror of
https://github.com/kou029w/yama.git
synced 2025-01-18 16:08:11 +00:00
add node overlay
This commit is contained in:
parent
44280205c1
commit
683c5f5a62
6 changed files with 23 additions and 0 deletions
|
@ -32,6 +32,7 @@ rsync -a dist/ /path/to/sd/
|
||||||
- Docker Compose
|
- Docker Compose
|
||||||
- curl
|
- curl
|
||||||
- grep
|
- grep
|
||||||
|
- gzip
|
||||||
- jq
|
- jq
|
||||||
- ruby
|
- ruby
|
||||||
- ssh-keygen
|
- ssh-keygen
|
||||||
|
|
4
apkovl/etc/fstab
Normal file
4
apkovl/etc/fstab
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
/dev/usbdisk /media/usb vfat noauto 0 0
|
||||||
|
/dev/mmcblk0p1 /media/mmcblk0p1 vfat rw,remount 0 0
|
||||||
|
/media/mmcblk0p1/overlay.img /media/overlay ext4 rw,relatime,errors=remount-ro 0 0
|
||||||
|
overlay /usr overlay lowerdir=/usr,upperdir=/media/overlay/upper/usr,workdir=/media/overlay/work/usr 0 0
|
|
@ -12,4 +12,6 @@ bin/download "${version}" dist
|
||||||
docker-compose run --rm minirootfs sh -c 'apk update && apk add'
|
docker-compose run --rm minirootfs sh -c 'apk update && apk add'
|
||||||
ssh-keygen -A -f apkovl
|
ssh-keygen -A -f apkovl
|
||||||
cp -a usercfg.txt cache -t dist
|
cp -a usercfg.txt cache -t dist
|
||||||
|
gzip -cdk overlay.img.gz > dist/overlay.img
|
||||||
|
docker-compose run --rm builder
|
||||||
tar czf dist/localhost.apkovl.tar.gz --owner=0 --group=0 -C apkovl .
|
tar czf dist/localhost.apkovl.tar.gz --owner=0 --group=0 -C apkovl .
|
||||||
|
|
|
@ -6,3 +6,17 @@ services:
|
||||||
- ./cache:/etc/apk/cache
|
- ./cache:/etc/apk/cache
|
||||||
- ./apkovl/etc/apk/repositories:/etc/apk/repositories
|
- ./apkovl/etc/apk/repositories:/etc/apk/repositories
|
||||||
- ./apkovl/etc/apk/world:/etc/apk/world
|
- ./apkovl/etc/apk/world:/etc/apk/world
|
||||||
|
builder:
|
||||||
|
image: ghcr.io/kou029w/yama/minirootfs
|
||||||
|
volumes:
|
||||||
|
- ./cache:/etc/apk/cache
|
||||||
|
- ./apkovl/etc/apk/repositories:/etc/apk/repositories
|
||||||
|
- ./apkovl/etc/apk/world:/etc/apk/world
|
||||||
|
- ./fstab:/etc/fstab
|
||||||
|
- ./dist/overlay.img:/overlay.img
|
||||||
|
privileged: true
|
||||||
|
command: |
|
||||||
|
sh -c '
|
||||||
|
mount -a \
|
||||||
|
&& apk add g++ linux-headers make nodejs npm python3
|
||||||
|
'
|
||||||
|
|
2
fstab
Normal file
2
fstab
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
/overlay.img /mnt ext4 rw,relatime,errors=remount-ro 0 0
|
||||||
|
overlay /usr overlay lowerdir=/usr,upperdir=/mnt/upper/usr,workdir=/mnt/work/usr 0 0
|
BIN
overlay.img.gz
Normal file
BIN
overlay.img.gz
Normal file
Binary file not shown.
Loading…
Add table
Reference in a new issue