This Docker image provides a ready-to-use installation of Sling CLI, a powerful data movement and transformation tool.
Sling is a modern data movement and transformation platform designed to simplify data operations between various sources and destinations. It enables efficient data transfer between databases, data warehouses, and file storage systems.
docker run --rm slingdata/sling:latest --help
# Load a CSV file into a database table
cat data.csv | docker run -i --rm slingdata/sling:latest run --tgt-conn MY_PG --tgt-object my_schema.my_table
# Copy from one database to another
docker run -i --rm -e SRC_DB -e TGT_DB slingdata/sling:latest run \
--src-conn SRC_DB \
--src-stream public.users \
--tgt-conn TGT_DB \
--tgt-object analytics.users
Use environment variables to configure connections:
docker run -i --rm \
-e SLING_CLI_TOKEN='xxxxxxxxx' \
-e MY_PG='postgresql://user:password@host:5432/db1' \
slingdata/sling:latest conns list
To persist your connection configuration, mount a volume:
docker run -i --rm \
-e SLING_CLI_TOKEN='xxxxxxxxx' \
-v $HOME/.sling:/home/sling/.sling \
slingdata/sling:latest conns list
docker run -i --rm \
-e SLING_CLI_TOKEN='xxxxxxxxx' \
-e MY_PG='postgresql://user:password@host:5432/db1' \
-e MY_SNOWFLAKE='{type: snowflake, host: "account.snowflakecomputing.com", user: "user", database: "db1", password: "pass", role: "role"}' \
slingdata/sling:latest run --src-conn MY_PG --src-stream "SELECT * FROM users" --tgt-conn MY_SNOWFLAKE --tgt-object DB.SCHEMA.TABLE
docker run -i --rm \
-e SLING_CLI_TOKEN='xxxxxxxxx' \
-v $HOME/.sling:/home/sling/.sling \
slingdata/sling:latest run --config path/to/config.yaml
slingFor more detailed documentation, visit the Sling Documentation or https://slingdata.io.
Content type
Image
Digest
sha256:b1606dace…
Size
282.8 MB
Last updated
13 days ago
docker pull slingdata/sling