jvm-repo-rebuild / reproducible-central

Reproducible Central: rebuild instructions for artifacts published to (Maven) Central Repository
99 stars 44 forks source link

Adds support for using Podman instead of Docker #170

Closed jskov closed 3 months ago

jskov commented 3 months ago

(had to create a new branch, as I rebased my branch by mistake)

These changes allow me to run a (randomly chosen) maven build:

$ ./rebuild.sh content/commons-io/commons-io-2.16.1.buildspec
...
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  24.705 s
[INFO] Finished at: 2024-05-19T18:55:25Z
[INFO] ------------------------------------------------------------------------
dos2unix: converting file target/commons-io-2.16.1.buildinfo to Unix format...
dos2unix: converting file target/commons-io-2.16.1.buildcompare to Unix format...

[INFO] rebuild from content/commons-io/commons-io-2.16.1.buildspec
[INFO]   results in content/commons-io/commons-io-2.16.1.buildinfo
[INFO] compared to Central Repository content/commons-io/commons-io-2.16.1.buildcompare:
    ok=7
    okFiles="commons-io-2.16.1.pom commons-io-2.16.1.jar commons-io-2.16.1-tests.jar commons-io-2.16.1-sources.jar commons-io-2.16.1-test-sources.jar commons-io-2.16.1-cyclonedx.xml commons-io-2.16.1-cyclonedx.json"
    ignored=1
    ignoredFiles=commons-io-2.16.1.spdx.json

Let me know if it breaks anything for you/docker.

hboutemy commented 3 months ago

it works like a charm: i was able to rebuild both a Gradle and a Maven release with docker and podman. Awesome, thank you