serverless-graalvm-demo icon indicating copy to clipboard operation
serverless-graalvm-demo copied to clipboard

running `cdk deploy` changes the permissions of my target file to root?

Open franciskafieh opened this issue 3 years ago • 1 comments

Hello. Thank you so much for this demo. I'm just having one little problem...

Whenever I run cdk deploy, the permissions of my software/target directory get set to root. Because of this, I cannot run my tests in that directory (permission denied error.)

I am on Linux, so to fix this, I need to run chown on my project to change the owner of the directory back to my user.

Is there anyway to get around this besides running my mvn tests as root? Thank you.

franciskafieh avatar Oct 21 '22 15:10 franciskafieh

I wonder if this has to do with how we're using Docker for the build

https://github.com/aws-samples/serverless-graalvm-demo/blob/1dd03eb0d40f625fbfd186d1cb2276c11216493d/infrastructure/src/main/java/software/amazonaws/example/infrastructure/InfrastructureStack.java#L77

timClicks avatar Mar 24 '23 01:03 timClicks