Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added weUPnP 0.1.4 reproducible build. #19

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions weupnp/0.1.4/Dockerfile
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
26 changes: 26 additions & 0 deletions weupnp/0.1.4/README.md
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.pom
$ docker rm temp-container
```