1
0
Fork 0
mirror of https://github.com/kou029w/yama.git synced 2025-01-19 00:18:06 +00:00
yama/bin/build

16 lines
432 B
Text
Raw Normal View History

2020-07-21 01:06:43 +09:00
#!/bin/sh
# ビルド
# Usage: bin/build
# Required: docker-compose
cd -- "$(dirname -- "$0")/.."
set -eux
version="$(bin/version)"
bin/import "${version}" ghcr.io/kou029w/yama/minirootfs
2020-07-21 01:06:43 +09:00
rm -rf dist
mkdir dist
bin/download "${version}" dist
docker-compose run --rm minirootfs sh -c 'apk update && apk add'
ssh-keygen -A -f apkovl
2021-07-22 23:10:06 +09:00
cp -a usercfg.txt cache -t dist
2020-07-21 01:06:43 +09:00
tar czf dist/localhost.apkovl.tar.gz --owner=0 --group=0 -C apkovl .