mirror of
https://github.com/kou029w/yama.git
synced 2025-01-19 00:18:06 +00:00
use compose v2
This commit is contained in:
parent
066a694b01
commit
07d6de7eb4
2 changed files with 3 additions and 4 deletions
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# ビルド
|
# ビルド
|
||||||
# Usage: bin/build
|
# Usage: bin/build
|
||||||
# Required: docker-compose
|
# Required: docker compose
|
||||||
cd -- "$(dirname -- "$0")/.."
|
cd -- "$(dirname -- "$0")/.."
|
||||||
set -eux
|
set -eux
|
||||||
version="$(bin/version)"
|
version="$(bin/version)"
|
||||||
|
@ -9,10 +9,10 @@ bin/import "${version}" ghcr.io/kou029w/yama/minirootfs
|
||||||
rm -rf dist
|
rm -rf dist
|
||||||
mkdir dist
|
mkdir dist
|
||||||
bin/download "${version}" dist
|
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
|
gzip -cdk overlay.img.gz > dist/overlay.img
|
||||||
docker-compose run --rm builder
|
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 .
|
||||||
tar czf yama-armhf.tar.gz --owner=0 --group=0 -C dist .
|
tar czf yama-armhf.tar.gz --owner=0 --group=0 -C dist .
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
version: "3"
|
|
||||||
services:
|
services:
|
||||||
minirootfs:
|
minirootfs:
|
||||||
image: ghcr.io/kou029w/yama/minirootfs
|
image: ghcr.io/kou029w/yama/minirootfs
|
Loading…
Add table
Reference in a new issue