Closed arkanoid87 closed 4 years ago
Just figured out that the error was on my side but it was due to a lack of info in https://github.com/opendatakit/aggregate/blob/master/docs/build-and-run-with-docker-compose.md doesn't say anything about copying configuration files
Just copy the jdbc.properties.example, odk-settings.xml.example, and security.properties.example files at /src/main/resources to the same location, removing the .example extension like stated in main README.md
It is possible to bind mount them later like suggested in https://github.com/opendatakit/aggregate/blob/master/docs/build-and-run-a-docker-image.md
Sorry you ran into an issue, @arkanoid87, and it's great to see you were able to resolve it. Would you like to submit a quick update to the docs file to help future users out? You should be able to do this entirely in the Github interface by clicking the pencil/edit icon if you don't want to fork the repository. Thanks!
Software and hardware versions
Windows/Linux/macOS, Aggregate v1.x.x, Java vx.x.x, ... Ubuntu 18.04.2 LTS java-1.11.0-openjdk-amd64
Problem description
Steps to reproduce the problem
gradle clean dockerComposeBuild -xtest -PwarMode=complete
Expected behavior
"Your Docker Compose build for Aggregate is in build/docker-compose."
Other information
By reading docker-compose.gradle and not getting this error anywhere else during the execution, it seemed to me that the intended behaviour was to create the .properties file if that doesn't exists, so I tried hotpatching the script by adding line "propsFile.createNewFile()" in buildSrc/src/main/groovy/org/opendatakit/aggregate/gradle/Util.groovy and I got "BUILD SUCCEEDED". Please does not consider this a proper solution.