mirror of
https://github.com/kou029w/yama.git
synced 2025-01-31 06:18:03 +00:00
parent
07d6de7eb4
commit
f6e7dbfa76
10 changed files with 5 additions and 29 deletions
|
@ -1,5 +1,4 @@
|
|||
alpine-base
|
||||
i2c-tools
|
||||
openssh
|
||||
rsync
|
||||
wpa_supplicant
|
||||
|
|
|
@ -1,4 +0,0 @@
|
|||
#!/sbin/openrc-run
|
||||
name=megabit
|
||||
command="/usr/local/bin/megabit"
|
||||
pidfile="/var/run/megabit.pid"
|
|
@ -1,11 +0,0 @@
|
|||
#!/sbin/openrc-run
|
||||
name=megabit-sync
|
||||
command="/usr/local/bin/megabit-sync"
|
||||
pidfile="/var/run/megabit-sync.pid"
|
||||
|
||||
start_pre() {
|
||||
mkdir -p /mnt/tmp
|
||||
mount /usr/share/megabit/tmp.img /mnt/tmp
|
||||
modprobe -r g_acm_ms
|
||||
modprobe g_acm_ms file=/usr/share/megabit/tmp.img
|
||||
}
|
1
apkovl/etc/modprobe.d/g_mass_storage.conf
Normal file
1
apkovl/etc/modprobe.d/g_mass_storage.conf
Normal file
|
@ -0,0 +1 @@
|
|||
options g_mass_storage file=/dev/mmcblk0p1
|
1
apkovl/etc/modules-load.d/g_mass_storage.conf
Normal file
1
apkovl/etc/modules-load.d/g_mass_storage.conf
Normal file
|
@ -0,0 +1 @@
|
|||
g_mass_storage
|
|
@ -1 +0,0 @@
|
|||
/etc/init.d/megabit
|
|
@ -1 +0,0 @@
|
|||
/etc/init.d/megabit-sync
|
|
@ -1,4 +0,0 @@
|
|||
#!/bin/sh
|
||||
export NODE_PATH=$(npm root -g)
|
||||
nodemon --delay 1 --watch /tmp --signal SIGTERM --exec 'node /tmp/index.js || true' &
|
||||
echo $! > /var/run/megabit.pid
|
|
@ -1,3 +0,0 @@
|
|||
#!/bin/sh
|
||||
nodemon --delay 1 --watch /usr/share/megabit/tmp.img --signal SIGTERM --exec 'umount /mnt/tmp; mount /usr/share/megabit/tmp.img /mnt/tmp; rsync -a --delete --exclude=node_modules/ /mnt/tmp/ /tmp/' &
|
||||
echo $! > /var/run/megabit-sync.pid
|
|
@ -15,9 +15,8 @@ services:
|
|||
- ./dist/overlay.img:/overlay.img
|
||||
privileged: true
|
||||
command: |
|
||||
sh -exc '
|
||||
sh -c '
|
||||
mkdir -p /mnt/overlay
|
||||
mount -a
|
||||
apk add g++ linux-headers make nodejs npm python3
|
||||
npm install -g megabit nodemon
|
||||
mount -a \
|
||||
&& apk add g++ linux-headers make nodejs npm python3
|
||||
'
|
||||
|
|
Loading…
Add table
Reference in a new issue