mirror of https://github.com/krallin/tini.git
parent
b837c033f8
commit
a2de1a79f2
6 changed files with 54 additions and 22 deletions
@ -1,14 +1,27 @@ |
||||
#!/bin/bash |
||||
set -o errexit |
||||
set -o nounset |
||||
set -o xtrace |
||||
|
||||
apt-get update |
||||
|
||||
apt-get install --no-install-recommends --yes \ |
||||
DEPS=( |
||||
build-essential git gdb valgrind cmake rpm \ |
||||
python-dev libcap-dev python-pip python-virtualenv \ |
||||
hardening-includes gnupg \ |
||||
gcc-aarch64-linux-gnu binutils-aarch64-linux-gnu libc6-dev-arm64-cross \ |
||||
gcc-arm-linux-gnueabihf binutils-arm-linux-gnueabi libc6-dev-armhf-cross |
||||
hardening-includes gnupg |
||||
) |
||||
|
||||
if [[ "$ARCH_SUFFIX" = "amd64" ]]; then |
||||
true |
||||
elif [[ "$ARCH_SUFFIX" = "armhf" ]]; then |
||||
DEPS+=(gcc-arm-linux-gnueabihf binutils-arm-linux-gnueabi libc6-dev-armhf-cross) |
||||
elif [[ "$ARCH_SUFFIX" = "arm64" ]]; then |
||||
DEPS+=(gcc-aarch64-linux-gnu binutils-aarch64-linux-gnu libc6-dev-arm64-cross) |
||||
elif [[ "$ARCH_SUFFIX" = "i386" ]]; then |
||||
DEPS+=(libc6-dev-i386 gcc-multilib) |
||||
else |
||||
echo "Unknown ARCH_SUFFIX=${ARCH_SUFFIX}" |
||||
exit 1 |
||||
fi |
||||
|
||||
apt-get update |
||||
apt-get install --no-install-recommends --yes "${DEPS[@]}" |
||||
rm -rf /var/lib/apt/lists/* |
||||
|
Loading…
Reference in new issue