Snowflake-Labs / icetire

Data Science Sandbox for Snowflake
Apache License 2.0
15 stars 2 forks source link

Support For M1 #2

Open 1-forrest-1 opened 1 year ago

1-forrest-1 commented 1 year ago

Zohar, thank you for all your work on iceTire, it's really appreciated. I have it up running on my a 2018 mac but am I unable to get it working on an M1.

The first issue I encountered is with the pre-packaged version of openjdk. Moving to an openjdk version that has support for the M1, like v18, resolved the below issue:

` => ERROR [ 3/33] RUN update-alternatives --set java /usr/lib/jvm/java-11-openjdk-amd64/bin/java 0.8s


[ 3/33] RUN update-alternatives --set java /usr/lib/jvm/java-11-openjdk-amd64/bin/java:

6 0.661 update-alternatives: error: alternative /usr/lib/jvm/java-11-openjdk-amd64/bin/java for java not registered; not setting


executor failed running [/bin/bash -o pipefail -c update-alternatives --set java /usr/lib/jvm/java-11-openjdk-amd64/bin/java]: exit code: 2 `

However, the build is now failing on the deploy_snowflake.sh script:

`#27 28.51 See the Snowflake documentation https://docs.snowflake.net/manuals/user-guide/snowsql.html for more information.

27 28.70 qemu-x86_64: Could not open '/lib64/ld-linux-x86-64.so.2': No such file or directory

27 28.73 sed: can't read /home/jovyan/.snowsql/config: No such file or directory`

I've done plenty of googling and can't see to crack this one. With that being said, do you have an plans to provide support for the M1?

Thank you

zoharsan commented 1 year ago

Sorry, missed this message. The code should be fixed to support M1 now. Let me know if you still see issues.