project-wildfyre / clinical-data-repository-hapi-jpa

1 stars 2 forks source link

Failure in adding jar in Docker #5

Closed rbhman closed 4 years ago

rbhman commented 4 years ago

Hi,

I get the following error on my MBP when attempting the Docker build step, in a freshly checked out master branch of the project:

brunohedman@Brunos-MacBook:~/clinical-data-repository-hapi-jpa$ sudo docker build . -t wildfyre-cdr
Sending build context to Docker daemon  374.8kB
Step 1/5 : FROM openjdk:11-slim
 ---> 0eb0c5940c0d
Step 2/5 : VOLUME /tmp
 ---> Using cache
 ---> 87844e18987d
Step 3/5 : ENV JAVA_OPTS="-Xms128m -Xmx512m"
 ---> Using cache
 ---> a7a499855369
Step 4/5 : ADD target/clinical-data-repository.jar clinical-data-repository.jar
ADD failed: stat /var/lib/docker/tmp/docker-builder533184580/target/clinical-data-repository.jar: no such file or directory
brunohedman@Brunos-MacBook:~/clinical-data-repository-hapi-jpa$ 
KevinMayfield commented 4 years ago

You need to build the jar first. To do this install maven

and then run on command line mvn clean install