-
-
Notifications
You must be signed in to change notification settings - Fork 657
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Docker Build Fails #39
Comments
If I change the
It will find the file and appears to work. |
Yes it's normal, see #13 The docker plugin will copy all necessary files under target/docker/ before running docker build |
One thing too: by building locally, it will generate a "dev" tag for the image. It will not be the same used in Docker Compose sub generator |
Yes @pascalgrimaud is right so I'm closing this |
Hi Mr. Jdubois, docker logo Search Development Node.js: We use Node to run a development web server and build the project. yarn install yarn global add gulp-cli ./mvnw For further instructions on how to develop with JHipster, have a look at Using JHipster in development. Building for production ./mvnw -Pprod clean package java -jar target/*.war Refer to Using JHipster in production for more details. Testing ./mvnw clean test gulp test ./mvnw gatling:execute Using Docker to simplify development (optional) docker-compose -f src/main/docker/cassandra.yml up -d docker-compose -f src/main/docker/cassandra.yml down ./mvnw package -Pprod docker:build docker-compose -f src/main/docker/app.yml up -d Continuous Integration (optional) Dockerfile ENV SPRING_OUTPUT_ANSI_ENABLED=ALWAYS add directly the warADD *.war /app.war VOLUME /tmp Checking out files: 4% (9071/184354) KernelVersion: 4.4.0-79-generic ---> 038cdcbf73ff Step 2/6 : ENV SPRING_OUTPUT_ANSI_ENABLED ALWAYS JHIPSTER_SLEEP 0 ---> Running in de5d7df63a7f ---> 56a8bf986e72 Removing intermediate container de5d7df63a7f Step 3/6 : ADD *.war /app.war No source files were specified |
I'm sorry but you need to open a ticket and follow the guidelines. |
I have a same problem with docker to get image from maven plugin ... ---> fdc893b19a14 ---> Using cache ---> Using cache ---> Using cache ---> Using cache ---> Using cache |
Same comment as above, if you have an issue please follow the guidelines and open a new issue - this is old ticket from 2016, you issue is probably different |
When running
docker build
locally, the build fails with:Issue: The build fails because it cannot find the
target/jhipster-registry-0.0.1-SNAPSHOT.war
file.Note: Because the build fails, docker does not successfully tag the built image (since it is still technically an intermediate container). So running
docker images
producesAny attempt to run this image will result in:
This is because the
Dockerfile
does not set the defaultCMD
untilStep 9
.Steps to Reproduce:
git clone https://github.com/jhipster/jhipster-registry && cd jhipster-registry
mvn -Pdev package
docker build -f src/main/docker/dev/Dockerfile .
OS: Windows 7 Pro
The text was updated successfully, but these errors were encountered: