-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
QA: make sure we can run on Linux without Docker (#836)
* QA: make sure we can run from Linux Previous changes made it much more difficult to run on Linux. Yet, to do QA of Web Connectivity it's more practical to perform it on Linux using also OONI Probe v2.x and Measurement Kit. For this reason, this diff implements changes that should allow us to run both on Linux and when using Docker. While it's possible to create a Docker container where we deploy compiled versions of MK and OONI Probe v2.x, it's more practical to use a Linux system where they are already installed, like my Linux desktop. Part of #810 * QA: fix running on Linux 1. we cannot write on QA/HOME when running on Linux so just use `/tmp` as the HOME directory (slower but works) 2. the `/tmp` directory may be on another device than `/home`, so we cannot move, then just perform a copy Part of #810
- Loading branch information
1 parent
8bc9684
commit f35b002
Showing
6 changed files
with
24 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
FROM alpine:edge | ||
RUN apk add go git musl-dev iptables tmux bind-tools curl sudo python3 | ||
RUN adduser -D ooniprobe |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
#!/bin/sh | ||
set -ex | ||
DOCKER=${DOCKER:-docker} | ||
$DOCKER build -t jafar-qa ./cmd/jafar/ | ||
$DOCKER build -t jafar-qa ./QA/ | ||
$DOCKER run --privileged -v`pwd`:/jafar -w/jafar jafar-qa ./QA/pyrun.sh "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters