You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I'm trying to install custom layers using yumda. So I've installed the GraphicsMagick on /amplify/backend/function/gm/opt. When I deploy I see the "An error occurred hashing directory" error.
An error occurred hashing directory /Users/erickwendel/Documents/pocs/amplify/meme-maker/app/amplify/backend/function/gm/opt
An error occurred during the push operation: An error occurred hashing directory /Users/erickwendel/Documents/pocs/amplify/meme-maker/app/amplify/backend/function/gm/opt
Expected behavior
Upload the custom package and inject on the runtime
Hi @ErickWendel, is there a reason your /opt folder has a : at the end of it? The CLI seems to failing to find the /opt folder.
Hey @jhockett thanks for the response! Actually, using : is just a separator on Docker. The Docker volume is mapping from my local machine "$PWD"/amplify/backend/function/gm/opt to the container /opt. So the :
Amplify CLI Version
4.24.0
Describe the bug
I'm trying to install custom layers using yumda. So I've installed the GraphicsMagick on /amplify/backend/function/gm/opt. When I deploy I see the "An error occurred hashing directory" error.
To Reproduce
Steps to reproduce the behavior:
/opt
layerdocker run --rm \ -v "$PWD"/amplify/backend/function/gm/opt:/lambda/opt \ lambci/yumda:2 yum install -y GraphicsMagick
amplify push
Expected behavior
Upload the custom package and inject on the runtime
What is Configured?
Environment
The text was updated successfully, but these errors were encountered: