{"id":15002591,"url":"https://github.com/bonddim/go-sqlcmd","last_synced_at":"2025-05-06T22:21:45.970Z","repository":{"id":238999237,"uuid":"798182688","full_name":"bonddim/go-sqlcmd","owner":"bonddim","description":"go-sqlcmd cli Docker image for Microsoft SQL Server, Azure SQL and Azure Synapse","archived":false,"fork":false,"pushed_at":"2025-03-28T22:01:47.000Z","size":26,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-28T23:21:39.776Z","etag":null,"topics":["azure-sql","go-sqlcmd","mssql","sql-server","sqlcmd"],"latest_commit_sha":null,"homepage":"","language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bonddim.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-05-09T09:01:51.000Z","updated_at":"2025-03-28T22:01:51.000Z","dependencies_parsed_at":"2024-11-09T18:19:22.509Z","dependency_job_id":"cedfd385-07a1-46a5-ad53-ebc3316ad9bb","html_url":"https://github.com/bonddim/go-sqlcmd","commit_stats":{"total_commits":13,"total_committers":2,"mean_commits":6.5,"dds":"0.23076923076923073","last_synced_commit":"dbb79621f3532b8514919afbb70af24bb33b9d02"},"previous_names":["bonddim/docker-go-sqlcmd","bonddim/go-sqlcmd"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bonddim%2Fgo-sqlcmd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bonddim%2Fgo-sqlcmd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bonddim%2Fgo-sqlcmd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bonddim%2Fgo-sqlcmd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bonddim","download_url":"https://codeload.github.com/bonddim/go-sqlcmd/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252777356,"owners_count":21802589,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["azure-sql","go-sqlcmd","mssql","sql-server","sqlcmd"],"created_at":"2024-09-24T18:51:18.536Z","updated_at":"2025-05-06T22:21:45.948Z","avatar_url":"https://github.com/bonddim.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# [go-sqlcmd](https://github.com/microsoft/go-sqlcmd) docker image\n\n[docker-hub]: https://hub.docker.com/r/bonddim/go-sqlcmd\n[![Docker](https://github.com/bonddim/go-sqlcmd/actions/workflows/docker.yaml/badge.svg)](https://github.com/bonddim/go-sqlcmd/actions/workflows/docker.yaml)\n[![Docker Image Version](https://img.shields.io/docker/v/bonddim/go-sqlcmd?logo=docker\u0026label=latest)][docker-hub]\n[![Docker Image Size](https://img.shields.io/docker/image-size/bonddim/go-sqlcmd?logo=docker)][docker-hub]\n[![Docker Pulls](https://img.shields.io/docker/pulls/bonddim/go-sqlcmd?logo=docker\u0026label=pulls)][docker-hub]\n[![GitHub License](https://img.shields.io/github/license/bonddim/go-sqlcmd)](https://github.com/bonddim/go-sqlcmd?tab=MIT-1-ov-file)\n\n## About\n\n- Supported architectures: **amd64**, **arm64**, **s390x**\n- Uses [gcr.io/distroless/static:nonroot](https://github.com/GoogleContainerTools/distroless) as image base\n- Uses [released sqlcmd](https://github.com/microsoft/go-sqlcmd/releases) binary\n- Updated automatically by Renovate\n\n## Usage\n\n```bash\n# Pull image from Docker Hub\ndocker pull bonddim/go-sqlcmd\n# Or GitHub Container Registry\ndocker pull ghcr.io/bonddim/go-sqlcmd\n```\n\nDocker container with mounted scripts to run:\n\n```bash\ndocker run \\\n  --rm \\\n  -v $(pwd)/sql_scripts:/mnt/sql \\\n  -e SQLCMDPASSWORD={{ password }} \\\n  ghcr.io/bonddim/go-sqlcmd \\\n    -i /mnt/sql \\\n    -S {{ server }} \\\n    -d {{ database }} \\\n    -u {{ user }}\n```\n\nK8s pod with Entra ID authentication:\n\n```yaml\napiVersion: v1\nkind: Pod\nmetadata:\n  name: go-sqlcmd\n  labels:\n    azure.workload.identity/use: \"true\"\nspec:\n  serviceAccountName: go-sqlcmd\n  containers:\n  - name: go-sqlcmd\n    image: bonddim/go-sqlcmd\n    args: \n      - --use-aad\n      - --server\n      - {{ server }}.database.windows.net\n      - --database-name\n      - {{ database }}\n      - --query\n      - {{ query }}\n    securityContext:\n      runAsNonRoot: true\n...\n```\n\nRefer to official [docs](https://docs.microsoft.com/sql/tools/go-sqlcmd-utility) for syntax and command line arguments\n\n## License\n\nInherited from [microsoft/go-sqlcmd](https://github.com/microsoft/go-sqlcmd?tab=MIT-1-ov-file)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbonddim%2Fgo-sqlcmd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbonddim%2Fgo-sqlcmd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbonddim%2Fgo-sqlcmd/lists"}