Nordstrom / xrpc

Simple, production ready Java API server built on top of functional composition.
Apache License 2.0
17 stars 17 forks source link

Demo Dockerfiles reference invalid paths #192

Open trevorinman opened 6 years ago

trevorinman commented 6 years ago

Summary

The docker build command currently fails for the Dockerfiles included in the demo projects.

Fix PR incoming shortly.

Steps to reproduce

From the root of the xrpc repo, run either of the following:

$ docker build -f demos/dino/Dockerfile .

$ docker build -f demos/people/Dockerfile .

Both exhibit the same behavior.

Expected behavior

Successful creation of a docker image.

Actual behavior

The docker build command fails. As the following output shows, the gradle build works, but the Dockerfile references the wrong path to the output JAR generated by the gradle build:

BUILD SUCCESSFUL in 1m 34s
27 actionable tasks: 24 executed, 3 up-to-date
mv: cannot stat 'demos/demo/build/libs/xrpc-dino-demo-0.1.1-SNAPSHOT-all.jar': No such file or directory
The command '/bin/sh -c ./gradlew clean shadowJar &&   mv demos/demo/build/libs/xrpc-dino-demo-0.1.1-SNAPSHOT-all.jar app.jar' returned a non-zero code: 1

xrpc version

0.4.5