Skip to content

Commit 99870b1

Browse files
committed
Fix missing files in odbc
1 parent c2fe9ec commit 99870b1

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

layers/odbc-snowflake/Dockerfile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,15 @@ RUN curl https://sfc-repo.snowflakecomputing.com/odbc/linux/3.5.0/snowflake_linu
2323
# modify the config files for the new final location in /opt/snowflake_odbc
2424
RUN sed -i 's#/path/to/your/#/opt/snowflake_odbc/lib/#g' /tmp/snowflake_odbc/conf/*
2525

26+
# Move /tmp/snowflake_odbc/ErrorMessages/en-US to /tmp/snowflake_odbc/lib/en-US
27+
# else we get errors like "An error occurred while attempting to retrieve the error message for key ..."
28+
RUN mv /tmp/snowflake_odbc/ErrorMessages/en-US /tmp/snowflake_odbc/lib/
29+
2630
RUN php /bref/lib-copy/copy-dependencies.php /tmp/odbc.so /tmp/extension-libs
2731

32+
# Manually copy `libodbcinst.so` to `/tmp/extension-libs` as it is not copied by the script
33+
RUN cp /usr/lib64/libodbcinst.so /tmp/extension-libs
34+
2835

2936
# Build the final image with just the files we need
3037
FROM scratch

0 commit comments

Comments
 (0)