Closed ambs closed 3 years ago
This documents another, different, atempt
1) clone repo
2) enter exist-docker
3) run mvn -X -DskipTests -Ddocker.tag=latest -Ddocker.username=admin -Ddocker.password= clean package docker:build
Got [ERROR] Failed to execute goal org.apache.maven.plugins:maven-assembly-plugin:3.3.0:single (assemble-archives) on project exist-docker: Failed to create assembly: The archive base directory '/home/ambs/MyReps/exist/exist-docker/../exist-distribution/target/exist-distribution-5.3.0-SNAPSHOT-dir' does not exist -> [Help 1]
tried to create the folder manually:
4) mkdir -p ../exist-distribution/target/exist-distribution-5.3.0-SNAPSHOT-dir
5) same command: mvn -X -DskipTests -Ddocker.tag=latest -Ddocker.username=admin -Ddocker.password= clean package docker:build
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-assembly-plugin:3.3.0:single (assemble-archives) on project exist-docker: Failed to create assembly: Error creating assembly archive docker-dir: archive cannot be empty -> [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-assembly-plugin:3.3.0:single (assemble-archives) on project exist-docker: Failed to create assembly: Error creating assembly archive docker-dir: archive cannot be empty
Still going nowhere.
@ambs You don't need to enter the exist-docker folder. You can just do the following:
git clone https://github.com/exist-db/exist.git
cd exist
mvn -V -T2C clean package -DskipTests -Ddependency-check.skip=true
After that command, where is the image? docker image ls
doesn't show any tagged image...
Thanks
@ambs It should be shown in docker image ls
. If it is not, you will need to share the Maven output from the exist-docker
module of the build. To do so cleanly, you should run without the -T2C
argument
Attaching the full log. No occurrence of 'docker'... Surely I am doing something wrong.?
@ambs Ah ha! Of course, you are right, I forgot one key thing that you need: -Ddocker=true
. So can you try:
mvn -V -T2C clean package -DskipTests -Ddependency-check.skip=true -Ddocker=true
HI
existdb/existdb 5.3.0-SNAPSHOT f185c3d03903 15 seconds ago 324MB
So, it is a "yay". Thanks. I will propose some additions to the README file and send a pull request.
I see here is a list of options: http://www.exist-db.org/exist/apps/doc/exist-building.xml
Still, can I add this line as an example in BUILD.md
?
Users are lazy...
We can close this Meanwhile, PR was added: https://github.com/eXist-db/exist/pull/3710
Describe the bug The build process for creating the docker image is not working (cd exist-docker && mvn docker:build)
Expected behavior To work out of the box, creating automatically the docker image.
To Reproduce 1) Clone repository 2)
cd exist-docker
3)mvn -DskipTests -Ddocker.tag=latest -Ddocker.username=admin -Ddocker.password= docker:build
Process fails with:
4) still on that folder, try a little more:
mvn compile
5) try againmvn -DskipTests -Ddocker.tag=latest -Ddocker.username=admin -Ddocker.password= docker:build
Process fails with:
6) Keep feeding the monster:
mkdir target/exist-docker-5.3.0-SNAPSHOT-docker-dir
7) try againmvn -DskipTests -Ddocker.tag=latest -Ddocker.username=admin -Ddocker.password= docker:build
Process fails with:
And no idea how to keep going. I also tried to do a
mvn compile
andmvn package
at the top level, but nothing changed.Context: