Unverified Commit 05dd9be0 authored by Eli Schwartz's avatar Eli Schwartz
Browse files

test: BUILDDIR must be owned by build user

pacman 5.1 enforces this restriction. OTOH it is a simpler setup to set
this as the user homedir directly in account creation (just like
makechrootpkg has always done) than to create an additional,
world-writable, directory.

dockerfile: don't use tmpfs for /build
parent 2c68135f
RUN_OPTIONS:=--rm --network=none -v $(PWD):/dbscripts:ro --tmpfs=/tmp:exec --tmpfs=/build -w /dbscripts/test
RUN_OPTIONS:=--rm --network=none -v $(PWD):/dbscripts:ro --tmpfs=/tmp:exec -w /dbscripts/test
docker build --pull -t $(IMAGE) test
......@@ -2,8 +2,7 @@ FROM archlinux/base
RUN pacman -Syu --noconfirm --needed sudo fakeroot awk subversion make kcov bash-bats gettext grep
RUN pacman-key --init
RUN echo '%wheel ALL=(ALL) NOPASSWD: ALL' > /etc/sudoers.d/wheel
RUN useradd -N -g users -G wheel -m tester
RUN install -d -m 1777 /build
RUN useradd -N -g users -G wheel -d /build -m tester
USER tester
RUN echo -e "\
Key-Type: RSA\n\
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment