Skip to content
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 Image 8.7.0 not starting: tail: cannot open '/home/.../resources/banner-no-color.txt' for reading: No such file or directory Work-around applied but need to be fixed. #27216

Closed
1 task done
utelemaco opened this issue Sep 9, 2024 · 0 comments · Fixed by #27221

Comments

@utelemaco
Copy link
Contributor

Overview of the issue

I am trying to start a docker container using the image 8.7.0 but I got the following message:

tail: cannot open '/home/jhipster/generator-jhipster/generators/server/templates/src/main/resources/banner-no-color.txt' for reading: No such file or directory

I found a workaround by using the following docker command:

docker container run \
    --name jhipster_8_7_0_fixed \
    -v $PWD:/home/jhipster/app \
    -v $PWD/temporary_directory_to_fix_jhipster_8_7_0/banner-no-color.txt:/home/jhipster/generator-jhipster/generators/server/templates/src/main/resources/banner-no-color.txt \
    -p 8080:8080 \
    -p 9000:9000 \
    -p 3001:3001 \
    -d -t jhipster/jhipster:v8.7.0

In this case, I had to create a directory/file temporary_directory_to_fix_jhipster_8_7_0/banner-no-color.txt in my current directory.

Motivation for or Use Case

I have multiple versions of JHIpster so I need to use them through docker.

Reproduce the error

Just try to execute the command:

docker container run \
    --name jhipster_8_7_0_fixed \
    -v $PWD:/home/jhipster/app \
    -p 8080:8080 \
    -p 9000:9000 \
    -p 3001:3001 \
    -d -t jhipster/jhipster:v8.7.0
Related issues
Suggest a Fix

Include the file in the docker image,

JHipster Version(s)

8.7.0

JHipster configuration

64036b8d674f:~/app/myapp2$ jhipster info

    ██╗ ██╗   ██╗ ████████╗ ███████╗   ██████╗ ████████╗ ████████╗ ███████╗
    ██║ ██║   ██║ ╚══██╔══╝ ██╔═══██╗ ██╔════╝ ╚══██╔══╝ ██╔═════╝ ██╔═══██╗
    ██║ ████████║    ██║    ███████╔╝ ╚█████╗     ██║    ██████╗   ███████╔╝

██╗ ██║ ██╔═══██║ ██║ ██╔════╝ ╚═══██╗ ██║ ██╔═══╝ ██╔══██║
╚██████╔╝ ██║ ██║ ████████╗ ██║ ██████╔╝ ██║ ████████╗ ██║ ╚██╗
╚═════╝ ╚═╝ ╚═╝ ╚═══════╝ ╚═╝ ╚═════╝ ╚═╝ ╚═══════╝ ╚═╝ ╚═╝
https://www.jhipster.tech
Welcome to JHipster v8.7.0

Welcome to the JHipster Information Sub-Generator

/home/jhipster/app/myapp2
└── (empty)
JHipster configuration not found
Environment and Tools

openjdk version "17.0.12" 2024-07-16
OpenJDK Runtime Environment Temurin-17.0.12+7 (build 17.0.12+7)
OpenJDK 64-Bit Server VM Temurin-17.0.12+7 (build 17.0.12+7, mixed mode, sharing)

git version 2.25.1

node: v20.17.0
npm: 10.8.2

'docker' command could not be found
WARNING! Current location doesn't contain a valid JHipster application

Congratulations, JHipster execution is complete!
If you find JHipster useful consider sponsoring the project https://www.jhipster.tech/sponsors/

Thanks for using JHipster!

Browsers and Operating System

N.A.

  • Checking this box is mandatory (this is just to show you read everything)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants