jcomo / shelf-life

An API that returns information about food item shelf life
13 stars 9 forks source link

How do you initialize everything #1

Open ScriptedAlchemy opened 7 years ago

ScriptedAlchemy commented 7 years ago

Hey

Silly one, but how to I get this service up and running. I am pretty new to docker.

I run docker-compose up

I get an error here

ERROR: Service 'foodie' failed to build: lstat target/foodie-standalone.jar: no such file or directory
jcomo commented 7 years ago

The app's dockerfile expects that it will have a built JAR to run. If you build the docker image without first packaging the application, you will need to run mvn -DskipTests=true package && docker-compose build.

Those steps are encapsulated in rake build if you feel more comfortable with a Rakefile