mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-08-14 06:06:12 +00:00
Since we always build musl kata-agent, there is no need to build it inside a musl container. We can just build on the host and then copy the binary to the target rootfs. There are still a lot to clean up and it should be made so for ALL target distros instead of just alpine. But this is at least working for alpine first. Signed-off-by: Peng Tao <bergwolf@hyper.sh>
25 lines
565 B
Bash
25 lines
565 B
Bash
#
|
|
# Copyright (c) 2018 Intel Corporation
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
OS_NAME="Alpine"
|
|
|
|
OS_VERSION=${OS_VERSION:-latest-stable}
|
|
|
|
BASE_PACKAGES="alpine-base"
|
|
|
|
# Alpine mirror to use
|
|
# See a list of mirrors at http://nl.alpinelinux.org/alpine/MIRRORS.txt
|
|
MIRROR=http://dl-5.alpinelinux.org/alpine
|
|
|
|
PACKAGES=""
|
|
|
|
# Init process must be one of {systemd,kata-agent}
|
|
INIT_PROCESS=kata-agent
|
|
# List of zero or more architectures to exclude from build,
|
|
# as reported by `uname -m`
|
|
ARCH_EXCLUDE_LIST=()
|
|
|
|
[ "$SECCOMP" = "yes" ] && PACKAGES+=" libseccomp" || true
|