aboutsummaryrefslogtreecommitdiffstats
path: root/.travis/setup-alpine
blob: f29604184f4f7c1c2ca10404fe121b33f3978f42 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh
# vim: set ts=4:
set -eu

. "$(dirname "$0")"/common.sh

title 'Setting up Alpine Linux'

mkdir -p "${ALPINE_ROOT}${CLONE_DIR}"
mount --bind "$CLONE_DIR" "${ALPINE_ROOT}${CLONE_DIR}"

alpine_run <<-EOF
	apk add alpine-sdk

	adduser -G users -s /bin/sh -D $ALPINE_USER
	addgroup $ALPINE_USER abuild
	addgroup $ALPINE_USER wheel

	echo '%wheel ALL=(ALL) NOPASSWD: ALL' > /etc/sudoers.d/wheel
EOF