Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
G
go-reproducer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
briar
go-reproducer
Commits
e5fc3dd8
Verified
Commit
e5fc3dd8
authored
6 years ago
by
Torsten Grote
Browse files
Options
Downloads
Patches
Plain Diff
Add build argument to disable expiry checking of debian packages
parent
5b7ed6c2
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!2
Add build argument to disable expiry checking of debian packages
Pipeline
#3031
passed
6 years ago
Stage: build
Stage: test
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Dockerfile
+1
-0
1 addition, 0 deletions
Dockerfile
README.md
+8
-0
8 additions, 0 deletions
README.md
install.sh
+7
-1
7 additions, 1 deletion
install.sh
with
16 additions
and
1 deletion
Dockerfile
+
1
−
0
View file @
e5fc3dd8
FROM
debian:stretch
FROM
debian:stretch
ARG
IGNORE_EXPIRY=0
ENV
LANG=C.UTF-8
ENV
LANG=C.UTF-8
ENV
DEBIAN_FRONTEND=noninteractive
ENV
DEBIAN_FRONTEND=noninteractive
...
...
This diff is collapsed.
Click to expand it.
README.md
+
8
−
0
View file @
e5fc3dd8
...
@@ -51,6 +51,14 @@ Build our Docker image:
...
@@ -51,6 +51,14 @@ Build our Docker image:
docker build -t briar/go-reproducer go-reproducer
docker build -t briar/go-reproducer go-reproducer
Building the image might fail due to expired Debian packages.
You can disable the expiry check by adding a build argument:
docker build --build-arg IGNORE_EXPIRY=1 -t briar/go-reproducer go-reproducer
However, note that this might expose the build process to MITM attacks
which inject outdated vulnerable packages.
### Run the verification
### Run the verification
To verify a specific version of obfs4proxy, run
To verify a specific version of obfs4proxy, run
...
...
This diff is collapsed.
Click to expand it.
install.sh
+
7
−
1
View file @
e5fc3dd8
...
@@ -3,12 +3,18 @@ set -e
...
@@ -3,12 +3,18 @@ set -e
set
-x
set
-x
# use snapshot repos for deterministic package versions
# use snapshot repos for deterministic package versions
DATE
=
"201902
06T12
0000Z"
DATE
=
"201902
19T00
0000Z"
cat
<<
EOF
> /etc/apt/sources.list
cat
<<
EOF
> /etc/apt/sources.list
deb http://snapshot.debian.org/archive/debian/
${
DATE
}
/ stretch main
deb http://snapshot.debian.org/archive/debian/
${
DATE
}
/ stretch main
deb http://snapshot.debian.org/archive/debian-security/
${
DATE
}
/ stretch/updates main
deb http://snapshot.debian.org/archive/debian-security/
${
DATE
}
/ stretch/updates main
EOF
EOF
# ignore expired package releases if env variable is set
if
[[
"
${
IGNORE_EXPIRY
}
"
=
"1"
]]
then
echo
'Acquire::Check-Valid-Until "0";'
>>
/etc/apt/apt.conf.d/10-ignore-expiry
fi
# update package sources
# update package sources
apt-get update
apt-get update
apt-get
-y
upgrade
apt-get
-y
upgrade
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment