Split build script
This commit is contained in:
parent
780e469f82
commit
77965c614a
@ -3,21 +3,6 @@ set -e
|
|||||||
|
|
||||||
cd $(realpath $(dirname "${0}"))
|
cd $(realpath $(dirname "${0}"))
|
||||||
|
|
||||||
# Install Alpine SDK
|
|
||||||
apk update
|
|
||||||
apk add alpine-sdk
|
|
||||||
|
|
||||||
# Prepare build toolchain
|
|
||||||
adduser root abuild
|
|
||||||
cp etc/abuild.conf /etc/abuild.conf
|
|
||||||
cp usr/bin/abuild /usr/bin/abuild
|
|
||||||
cp usr/bin/fix-apk /usr/bin/fix-apk
|
|
||||||
cp usr/bin/lxc-build /usr/bin/lxc-build
|
|
||||||
cp usr/bin/lxc-pack /usr/bin/lxc-pack
|
|
||||||
mkdir -p /srv/build/lxc
|
|
||||||
# Supply /srv/build/repokey.rsa
|
|
||||||
# Supply /srv/build/packages.key
|
|
||||||
|
|
||||||
# Build native apps
|
# Build native apps
|
||||||
cd ../app-acme-sh
|
cd ../app-acme-sh
|
||||||
abuild -F
|
abuild -F
|
||||||
|
20
zz-build/install-toolchain.sh
Executable file
20
zz-build/install-toolchain.sh
Executable file
@ -0,0 +1,20 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
set -e
|
||||||
|
|
||||||
|
cd $(realpath $(dirname "${0}"))
|
||||||
|
|
||||||
|
# Install Alpine SDK
|
||||||
|
apk update
|
||||||
|
apk add alpine-sdk
|
||||||
|
|
||||||
|
# Prepare build toolchain
|
||||||
|
adduser root abuild
|
||||||
|
cp etc/abuild.conf /etc/abuild.conf
|
||||||
|
cp usr/bin/abuild /usr/bin/abuild
|
||||||
|
cp usr/bin/fix-apk /usr/bin/fix-apk
|
||||||
|
cp usr/bin/lxc-build /usr/bin/lxc-build
|
||||||
|
cp usr/bin/lxc-pack /usr/bin/lxc-pack
|
||||||
|
mkdir -p /srv/build/lxc
|
||||||
|
|
||||||
|
# Supply /srv/build/repokey.rsa
|
||||||
|
# Supply /srv/build/packages.key
|
Loading…
Reference in New Issue
Block a user