forked from rsksmart/reproducible-builds
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added weUPnP 0.1.4 reproducible build. This is a new dependency relat…
…ed to rsksmart/rskj#1036
- Loading branch information
Showing
2 changed files
with
38 additions
and
0 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,12 @@ | ||
FROM openjdk:8u232 | ||
|
||
RUN apt update | ||
RUN apt install -y --no-install-recommends file unzip git maven strip-nondeterminism | ||
|
||
RUN git clone https://github.com/bitletorg/weupnp.git /code/weupnp | ||
|
||
WORKDIR /code/weupnp | ||
RUN git checkout weupnp-0.1.4 | ||
|
||
RUN mvn clean package -DskipTests | ||
RUN strip-nondeterminism ./target/weupnp-0.1.4.jar |
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,26 @@ | ||
# weUPnP 0.1.4 | ||
|
||
* Source: https://github.com/bitletorg/weupnp | ||
* Tag: `weupnp-0.1.4` | ||
|
||
## Build | ||
|
||
``` | ||
$ docker build -t weupnp-0.1.4-reproducible . | ||
``` | ||
|
||
## Verify | ||
|
||
``` | ||
$ docker run --rm weupnp-0.1.4-reproducible sha256sum /code/weupnp/target/weupnp-0.1.4.jar | ||
06b4e3ba161b9248d347e747c2a814e687be0de33ffd1ae88511bb4726e83ee6 /code/weupnp/target/weupnp-0.1.4.jar | ||
``` | ||
|
||
## (Optional) Extract JAR from image | ||
|
||
``` | ||
$ docker run --name temp-container weupnp-0.1.4-reproducible /bin/true | ||
$ docker cp temp-container:/code/weupnp/target/weupnp-0.1.4.jar ./weupnp-0.1.4.jar | ||
$ docker cp temp-container:/code/weupnp/pom.xml ./weupnp-0.1.4-reproducible.pom | ||
$ docker rm temp-container | ||
``` |