- In a SQL Worksheet, execute
SHOW IMAGE REPOSITORIESand look for the entry for your image repository. Note the value forrepository_url. - In the main directory of this repo, execute
bash ./configure.sh. Enter the URL of the repository that you noted in step 1 for the repository. Enter the name of a warehouse to use. - Log into the Docker repository, build the Docker image, and push
the image to the repository by running
make all- You can also run the steps individually. Log into the Docker
repository by running
make loginand entering your credentials. - Make the Docker image by running
make build. - Push the image to the repository by running
make push_docker
- You can also run the steps individually. Log into the Docker
repository by running
- Upload the
bb_node.yamlto a stage. You can use SnowSQL, Snowsight, or any other method toPUTthe file to the Stage. - Create the service by executing
where you replace
CREATE SERVICE bb_node IN COMPUTE POOL poolname FROM @stagename SPEC = 'bb_node.yaml';poolnamewith the COMPUTE POOL to use, and replacestagenamewith the name of the stage where you uploaded thebb_node.yamlfile. - Use the
SYSTEM$GET_SERVICE_LOGS('bb_node')command to confirm that the run succeeded and returnedSUCCESS.
This conatiner can be tested running locally. To do that, build the
image for your local machine with make build_local.
In order to run the container, we need to set some environment variables in our terminal session before running the container. The variables to set are:
SNOWFLAKE_ACCOUNT- the account locator for the Snowflake accountSNOWFLAKE_USER- the Snowflake username to useSNOWFLAKE_PASSWORD- the password for the Snowflake userSNOWFLAKE_WAREHOUSE- the warehouse to useSNOWFLAKE_DATABASE- the database to set as the current database (does not really matter that much what this is set to)SNOWFLAKE_SCHEMA- the schema in the database to set as the current schema (does not really matter that much what this is set to)
Once those have been set, run the container with make run.