1
0
Fork 0
mirror of https://github.com/kou029w/yama.git synced 2025-01-18 16:08:11 +00:00

use compose v2

This commit is contained in:
Nebel 2022-05-30 22:12:19 +09:00
parent 066a694b01
commit 07d6de7eb4
2 changed files with 3 additions and 4 deletions

View file

@ -1,7 +1,7 @@
#!/bin/sh
# ビルド
# Usage: bin/build
# Required: docker-compose
# Required: docker compose
cd -- "$(dirname -- "$0")/.."
set -eux
version="$(bin/version)"
@ -9,10 +9,10 @@ bin/import "${version}" ghcr.io/kou029w/yama/minirootfs
rm -rf dist
mkdir 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
cp -a usercfg.txt cache -t dist
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 yama-armhf.tar.gz --owner=0 --group=0 -C dist .

View file

@ -1,4 +1,3 @@
version: "3"
services:
minirootfs:
image: ghcr.io/kou029w/yama/minirootfs