Skip to content

Commit

Permalink
Added weUPnP 0.1.4 reproducible build. This is a new dependency relat…
Browse files Browse the repository at this point in the history
  • Loading branch information
CoeJoder committed Nov 5, 2019
1 parent d5f89ab commit e4eebfb
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
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-reproducible.pom
$ docker rm temp-container
```

0 comments on commit e4eebfb

Please sign in to comment.