Skip to content

Commit

Permalink
Upgrade Snowflake and Oracle clients
Browse files Browse the repository at this point in the history
And add the misssing SNOWSQL_ROLE environment variable to
docker-sqitch.sh.
  • Loading branch information
theory committed Aug 18, 2023
1 parent ed02b2a commit c6b5a92
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docker-sqitch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ for var in \
TNS_ADMIN TWO_TASK ORACLE_SID \
ISC_USER ISC_PASSWORD \
VSQL_HOST VSQL_PORT VSQL_USER VSQL_PASSWORD VSQL_SSLMODE \
SNOWSQL_ACCOUNT SNOWSQL_USER SNOWSQL_PWD SNOWSQL_HOST SNOWSQL_PORT SNOWSQL_DATABASE SNOWSQL_REGION SNOWSQL_WAREHOUSE SNOWSQL_PRIVATE_KEY_PASSPHRASE
SNOWSQL_ACCOUNT SNOWSQL_USER SNOWSQL_PWD SNOWSQL_HOST SNOWSQL_PORT SNOWSQL_DATABASE SNOWSQL_REGION SNOWSQL_WAREHOUSE SNOWSQL_PRIVATE_KEY_PASSPHRASE SNOWSQL_ROLE
do
if [ -n "${!var}" ]; then
passopt+=(-e $var)
Expand Down
4 changes: 2 additions & 2 deletions oracle/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ FROM debian:bullseye-slim AS ora-build

WORKDIR /work
# https://www.oracle.com/database/technologies/instant-client/linux-x86-64-downloads.html
ARG INSTANTCLIENT_VERSION=21.10.0.0.0dbru
ARG INSTANTCLIENT_VDIR=2110000
ARG INSTANTCLIENT_VERSION=21.11.0.0.0dbru
ARG INSTANTCLIENT_VDIR=2111000

ADD https://download.oracle.com/otn_software/linux/instantclient/${INSTANTCLIENT_VDIR}/instantclient-basic-linux.x64-${INSTANTCLIENT_VERSION}.zip ./
ADD https://download.oracle.com/otn_software/linux/instantclient/${INSTANTCLIENT_VDIR}/instantclient-sqlplus-linux.x64-${INSTANTCLIENT_VERSION}.zip ./
Expand Down
4 changes: 2 additions & 2 deletions snowflake/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ WORKDIR /work
# https://docs.snowflake.com/en/user-guide/snowsql-install-config
# https://docs.snowflake.com/en/release-notes/client-change-log-snowsql
# https://sfc-repo.snowflakecomputing.com/index.html
ADD https://sfc-repo.snowflakecomputing.com/snowsql/bootstrap/1.2/linux_x86_64/snowsql-1.2.27-linux_x86_64.bash snowsql.bash
ADD https://sfc-repo.snowflakecomputing.com/odbc/linux/2.25.12/snowflake_linux_x8664_odbc-2.25.12.tgz snowflake_linux_x8664_odbc.tgz
ADD https://sfc-repo.snowflakecomputing.com/snowsql/bootstrap/1.2/linux_x86_64/snowsql-1.2.28-linux_x86_64.bash snowsql.bash
ADD https://sfc-repo.snowflakecomputing.com/odbc/linuxaarch64/3.0.2/snowflake_linux_aarch64_odbc-3.0.2.tgz snowflake_linux_x8664_odbc.tgz
COPY conf ./

# Tell SnowSQL where to store its versions and config. Need to keep it inside
Expand Down

0 comments on commit c6b5a92

Please sign in to comment.