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

Permission denied when a zip project must be unzipped using docker hal #38

Open
cmoulliard opened this issue Sep 20, 2019 · 1 comment
Labels
bug Something isn't working

Comments

@cmoulliard
Copy link
Contributor

Issue

We get this error

FATA[0053] error running spring-boot: failed to download file /home/lab/fruit-client-sb.zip due to open /home/lab/fruit-client-sb.zip: permission denied

if we scaffold a hal component spring boot using a docker container

How to reproduce

docker run --rm --name hal -v "$(pwd)":/home/lab -it quay.io/halkyonio/hal:v0.1.7 bash
oc login https://195.201.87.126:8443 --token=TOKEN

bash-5.0$ hal component spring-boot fruit-client-sb
? Spring Boot version 2.1.6.RELEASE
? Use 2.1.6.RELEASE supported version No
? Create from template Yes
? Available templates client
? Group Id me.fruitstand
? Artifact Id fruit-client-sb
? Version 1.0.0-SNAPSHOT
? Package name me.fruitstand.demo
FATA[0053] error running spring-boot: failed to download file /home/lab/fruit-client-sb.zip due to open /home/lab/fruit-client-sb.zip: permission denied
bash-5.0$ ls -la
total 8
drwxr-xr-x    1 1000     50              64 Sep 20 11:50 .
drwxr-xr-x    1 root     root          4096 Sep 20 11:51 ..
@cmoulliard cmoulliard added the bug Something isn't working label Sep 20, 2019
@cmoulliard
Copy link
Contributor Author

here is the dockerfile used to create the image : https://github.com/halkyonio/hal/blob/master/build/Dockerfile

@iocanel iocanel removed their assignment Jul 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants