anticorruzione / openwhistleblowing

Software per il riuso
Other
19 stars 14 forks source link

1.0.4 - Docker build fails #38

Open enribar opened 3 years ago

enribar commented 3 years ago

Hi, I am trying to Docker build the updated 1.0.4 version, but build process fails with an error regarding LICENSE file:

Downloaded: https://repo.maven.apache.org/maven2/org/apache/commons/commons-lang3/3.1/commons-lang3-3.1.jar (309 KB at 9345.6 KB/sec)

Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/plugin-tools/maven-plugin-annotations/3.3/maven-plugin-annotations-3.3.jar (14 KB at 571.2 KB/sec)
[INFO] No tests to run.
[INFO]
[INFO] --- rpm-maven-plugin:2.2.0:rpm (generate-rpm) @ owb ---
[INFO] Creating directory /root/target/rpm/owb
[INFO] Creating directory /root/target/rpm/owb/BUILD
[INFO] Creating directory /root/target/rpm/owb/RPMS
[INFO] Creating directory /root/target/rpm/owb/SOURCES
[INFO] Creating directory /root/target/rpm/owb/SPECS
[INFO] Creating directory /root/target/rpm/owb/SRPMS
[INFO] Creating directory /root/target/rpm/owb/tmp-buildroot
[INFO] Creating directory /root/target/rpm/owb/buildroot
[INFO] Copying files to /root/target/rpm/owb/tmp-buildroot/etc
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 7.568s
[INFO] Finished at: Thu Oct 22 09:28:49 UTC 2020
[INFO] Final Memory: 14M/232M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.codehaus.mojo:rpm-maven-plugin:2.2.0:rpm (generate-rpm) on project owb: Source location /root/LICENSE does not exist -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
The command '/bin/sh -c cd /root; mvn package' returned a non-zero code: 1
WilliamBacchi commented 3 years ago

I modified line 15 of Docker file in this way.

RUN cd /root; mkdir LICENSE; mkdir AUTHORS; mvn package

After that I got my container built and running.

Hope this helps