I’m struggling with the installation and configuration and was hoping you could point me at the right sequence in which things should be done? I’ve looked at the Snowflake tutorial, but feel there’s a bit of a gap between that, and the download of the docker container. I've also looked at the GitHub repo that we create docker images from
Any pointers to the best documentation / a canonical / logical explanation of the sequence in which things should be done would be really helpful
Hi Ian,
On Feb 17, 2021, at 16:57, 'ian chotakoo' via Sqitch Users <sqitch...@googlegroups.com> wrote:
> I’m struggling with the installation and configuration and was hoping you could point me at the right sequence in which things should be done? I’ve looked at the Snowflake tutorial, but feel there’s a bit of a gap between that, and the download of the docker container. I've also looked at the GitHub repo that we create docker images from
So you cloned the the docker-sqitch repo and ran
env DIR=snowflake ./build --build-arg sf_account=$ACCOUNT
Yes?
>> Confirmed, I set ACCOUNT=xxxxx.eu-west-1, exported the variable, then ran the command above. That has resulted in this:
SNOWSQL_USER=SQITCHUSER
SNOWSQL_WAREHOUSE=SQITCH_WH
SNOWSQL_ROLE=SYSADMIN
For my test I have specified the password in SNOWSQL_PWD, although this is only to test connectivity and will not be how I do it once access is proven
I then switch to start following the tutorial for snowflake making the directory for flipr etc:
https://sqitch.org/docs/manual/sqitchtutorial-snowflake/
I set SQITCH_IMAGE=sqitch/sqitch:snowflake as per GitHub repo instruction (I think the tutorial should mention this as it's specific to Snowflake)
I ignore these steps because I want details from the docker container to be used:
I follow steps in tutorial amending files that will create / revert schema flipr
> • I’m working on a Mac locally, but wanted to understand the docker container approach so it could be used in a more enterprise environment
It’s also the easiest way to get things working on a Mac; ODBC is a pain in my experience.
> • I’ve cloned the docker-sqitch github repo and followed the instructions for the Snowflake Dockerfile
> • I’m not sure how to amend snowsql connection information
> • I’m struggling with what I should be amending locally on my machine (as the directory is mounted) vs whether I should be trying to change anything / add to the docker container?
> • Anything more explicit about what I should be configuring?
> • I know my snowflake details and how to configure snowsql
> • Where drivers are downloaded automatically
Using the docker image, you don’t have to change any ODBC config on your Mac. If you’re using the docker-sqitch script (https://git.io/JJKCn), when it runs it will mount the current directory, assuming it is the sqitch project root, and your home directory, so that Sqitch (and SnowSQL) running inside the container can read the contents of ~/.snowsql/config. The variables it reads are described here;
https://sqitch.org/docs/manual/sqitch-authentication/
And in more detail here:
https://metacpan.org/pod/App::Sqitch::Engine::snowflake
>> this page was great because it helped focus core parameters I needed to consider