Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
briar
briar-reproducer
Commits
df8e7f7c
Verified
Commit
df8e7f7c
authored
May 16, 2018
by
Torsten Grote
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move to Docker Hub registry
parent
017d66cd
Pipeline
#1532
passed with stages
in 21 minutes and 44 seconds
Changes
3
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
13 deletions
+8
-13
.gitlab-ci.yml
.gitlab-ci.yml
+3
-3
README.md
README.md
+4
-9
reproduce.py
reproduce.py
+1
-1
No files found.
.gitlab-ci.yml
View file @
df8e7f7c
...
...
@@ -9,11 +9,11 @@ stages:
-
release
variables
:
TEST_IMAGE
:
registry.gitlab.com/${CI_PROJECT_NAMESPACE}/${CI_PROJECT_NAME}
:${CI_BUILD_REF_NAME}
RELEASE_IMAGE
:
registry.gitlab.com/${CI_PROJECT_NAMESPACE}/${CI_PROJECT_NAME}
:latest
TEST_IMAGE
:
briar/reproducer
:${CI_BUILD_REF_NAME}
RELEASE_IMAGE
:
briar/reproducer
:latest
before_script
:
-
echo ${
CI_BUILD_TOKEN
} | docker login -u
gitlab-ci-token --password-stdin registry.gitlab.com
-
echo ${
DOCKER_HUB_PASS
} | docker login -u
${DOCKER_HUB_USER} --password-stdin
build
:
stage
:
build
...
...
README.md
View file @
df8e7f7c
...
...
@@ -58,14 +58,9 @@ you can use it for faster verification.
If not, you can skip to the next section to build the image yourself.
Then you are just trusting the official
`debian:stable`
which is out of our control.
To use our image without building it yourself,
you can just pull it from Gilab.com's docker registry:
To use our image without building it yourself, you can just pull it from Docker Hub:
docker pull registry.gitlab.com/grote/briar-reproducer:latest
Tag it with our canonical name:
docker tag registry.gitlab.com/grote/briar-reproducer:latest briar-reproducer:latest
docker pull briar/reproducer:latest
Now you can skip the next section and move to
*Run the verification*
.
...
...
@@ -77,13 +72,13 @@ Check out the source repository:
Build our Docker image:
docker build -t briar
-
reproducer briar-reproducer
docker build -t briar
/
reproducer briar-reproducer
### Run the verification
To verify a specific version of Briar, run
docker run briar
-
reproducer:latest ./reproduce.py [tag]
docker run briar
/
reproducer:latest ./reproduce.py [tag]
Where
`[tag]`
is the git tag (source code snapshot) that identifies the version
you want to test, for example
`release-1.0.1`
.
...
...
reproduce.py
View file @
df8e7f7c
...
...
@@ -25,7 +25,7 @@ def main():
subprocess
.
check_call
([
'wget'
,
'--no-verbose'
,
url
,
'-O'
,
reference_apk
])
# build the app
repo_call
([
"./gradlew"
,
GRADLE_TASK
])
repo_call
([
"./gradlew"
,
"--no-daemon"
,
GRADLE_TASK
])
# check if both APKs match
apk
=
os
.
path
.
join
(
REPO_DIR
,
APK_PATH
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment