question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Docker file fails to build

See original GitHub issue
  • Please follow the issue template below for bug reports and feature requests.
  • Tickets opened without any of these informations will be closed without any explanation.
Overview of the issue

Unable to build Docker image

Motivation for or Use Case

Needed for Docker

Reproduce the error

run: gradle buildDocker

Related issues

I dunno?

Suggest a Fix

Change references from: war to: jar

In src/main/Docker/Dockerfile gradle/docker.gradle

JHipster Version(s)

latest

JHipster configuration

n/a

Entity configuration(s) entityName.json files generated in the .jhipster directory

n/a

Browsers and Operating System

Windows10

  • Checking this box is mandatory (this is just to show you read everything)

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:12 (8 by maintainers)

github_iconTop GitHub Comments

2reactions
pascalgrimaudcommented, Jan 31, 2017

@MitchDresdner : your messages are very hard to read…

Anyway, your logs indicate your problem:

Using cache ---> d035ab6c47d9Step
3/7 : ADD *.war /app.war
No source files were specified
:buildDocker FAILED

Your command is not enough: gradle buildDocker

You need the war file, so it is: gradle bootRepackage buildDocker

0reactions
jduboiscommented, Feb 1, 2017

Sorry but I’m not even reading this…

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to debug build failures - Docker Community Forums
I've written a guide on how to debug docker builds like that. In short, look at the container ID of the failed step,...
Read more >
Make docker build fail if tests fail - Stack Overflow
RUN in a Dockerfile will fail if the exit code of the command is non-zero. If that happens, docker build will also fail...
Read more >
Docker: “build” Requires 1 Argument Error - Baeldung
The most common reason for “Docker build Requires 1 Argument” error is when we try to build the image without providing sufficient arguments....
Read more >
debugging a failed docker build (intermediate) anthony ...
today we talk about two techniques for debugging a failed docker build !- how does docker work? https://youtu.be/tWvQAxkMaWsplaylist: ...
Read more >
Docker build fails while Visual Studio 2022 is open, succeeds ...
This is when running docker build via docker compose for an ASP.NET Core project. The error only reproduces while Visual Studio 2022 is...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found