OHDSI Home | Forums | Wiki | Github

Failure to Build WebAPI Docker Image v2.13.0

Error building WebAPI docker image from source. Looks like there’s an issue for the pl.project13.maven dependency finding HEAD from .git?

Error:

#9 23.82 [ERROR] Failed to execute goal pl.project13.maven:git-commit-id-plugin:4.0.0:revision (default) on project WebAPI: Could not complete Mojo execution...: Error: Could not get HEAD Ref, are you sure you have set the dotGitDirectory property of this plugin to a valid path? -> [Help 1]

Code to reproduce

git clone https://github.com/OHDSI/WebAPI.git --branch v2.13.0 --depth 1
cd WebAPI
mkdir WebAPIConfig
copy sample_settings.xml WebAPIConfig/settings.xml

docker build --build-arg "MAVEN_PROFILE=webapi-postgresql" -t webapi:local .

Same issue on master/v2.14.0-SNAPSHOT

Rather than use the Dockerfile directly, I would suggest having a look at the Broadsea approach:

Thanks Ajit! Sorry for late reply, but this repository really helped me put this together :slight_smile:

t