diff options
author | Andrei Vagin <avagin@gmail.com> | 2019-11-11 20:26:38 -0800 |
---|---|---|
committer | Andrei Vagin <avagin@gmail.com> | 2020-02-21 22:44:19 -0800 |
commit | 75d7f76a6cd81d77f5ce70440c1d95c0296b15ba (patch) | |
tree | 23d0417d03a0c6c28d44c9881d3c9d8a49b91095 /Makefile | |
parent | 3733499952c056cc8496beb01c72dcf53177048e (diff) |
arm64: add a travis build ci
Build runsc and run "runsc do ls".
Signed-off-by: Andrei Vagin <avagin@gmail.com>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -2,6 +2,9 @@ UID := $(shell id -u ${USER}) GID := $(shell id -g ${USER}) GVISOR_BAZEL_CACHE := $(shell readlink -f ~/.cache/bazel/) +# The --privileged is required to run tests. +DOCKER_RUN_OPTIONS ?= --privileged + all: runsc docker-build: @@ -19,7 +22,7 @@ bazel-server-start: docker-build -v "$(CURDIR):$(CURDIR)" \ --workdir "$(CURDIR)" \ --tmpfs /tmp:rw,exec \ - --privileged \ + $(DOCKER_RUN_OPTIONS) \ gvisor-bazel \ sh -c "while :; do sleep 100; done" && \ docker exec --user 0:0 -i gvisor-bazel sh -c "groupadd --gid $(GID) --non-unique gvisor && useradd --uid $(UID) --non-unique --gid $(GID) -d $(HOME) gvisor" |