Spring MultipleLevel Project
himanshusingour
HOBBYOP

2 years ago

I have created a multilevel project on Java Spring Boot, where I have one parent module containing six child modules. My main application starts from one of the child modules.

I have successfully built it, but while deploying, it says it's unable to access the JAR file. I've attempted a second approach by creating a Dockerfile. I've created the Dockerfile, but the build is failing. I've checked everything, but still encountering issues.

Please assist me with this.

Solved

23 Replies

2 years ago

Does the Dockerfile work locally?


himanshusingour
HOBBYOP

2 years ago

Yes


himanshusingour
HOBBYOP

2 years ago

Brody, Please help me on this


2 years ago


himanshusingour
HOBBYOP

2 years ago

this is using without Docker file, build is fine

Attachments


himanshusingour
HOBBYOP

2 years ago

But Deploy is fail showing like this

Attachments


2 years ago

Going forward, please use the bookmarklet.

Have you tested your Dockerfile locally, If so, please show me if it is working.


himanshusingour
HOBBYOP

2 years ago

sure wait


himanshusingour
HOBBYOP

2 years ago

Sorry Not able to use this : https://bookmarklets.up.railway.app/log-downloader/

Screenshorts

Attachments


himanshusingour
HOBBYOP

2 years ago

running in local

Attachments


himanshusingour
HOBBYOP

2 years ago

This is the Dockerfile i have created

Attachments


2 years ago

Going forward, please use the bookmarklet, and follow the 3 simple steps listed on its page.

Your Dockerfile is incorrect, you should not copy the jar file into the image at all, the Dockerfile should be responsible for building the jar file.


himanshusingour
HOBBYOP

2 years ago

Not Able to understand, Thats why can you please tell me the steps


2 years ago

You should not copy the jar file into the image at all, the Dockerfile should be responsible for building the jar file.


Status changed to Solved Railway about 2 years ago


himanshusingour
HOBBYOP

2 years ago

yeah i have done that now ? its downloaded


2 years ago

Please show me the new Dockerfile.


himanshusingour
HOBBYOP

2 years ago

This Log that is Download

Attachments


himanshusingour
HOBBYOP

2 years ago

s

Attachments


2 years ago

Please show me the new Dockerfile.


himanshusingour
HOBBYOP

2 years ago

i have not created new Dockerfile , i dont know how should i create


himanshusingour
HOBBYOP

2 years ago

This one i am creating now

Attachments


himanshusingour
HOBBYOP

2 years ago

This correct now ??


himanshusingour
HOBBYOP

2 years ago

Hi Now Its working , Thanx


Welcome!

Sign in to your Railway account to join the conversation.

Loading...