GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - bonddim/go-sqlcmd: go-sqlcmd cli Docker image for Microsoft SQL Server, Azure SQL and Azure Synapse

BranchesTags
Open more actions menu

Latest commit

 

History

52 Commits
52 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
.dockerignore
.dockerignore
 
 
Dockerfile
Dockerfile
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 

Repository files navigation

go-sqlcmd docker image

Docker Docker Image Version Docker Image Size Docker Pulls GitHub License

About

  • Supported architectures: amd64, arm64, s390x
  • Uses gcr.io/distroless/static:nonroot as image base
  • Uses released sqlcmd binary
  • Updated automatically by Renovate

Usage

# Pull image from Docker Hub
docker pull bonddim/go-sqlcmd
# Or GitHub Container Registry
docker pull ghcr.io/bonddim/go-sqlcmd

Docker container with mounted scripts to run:

docker run \
  --rm \
  -v $(pwd)/sql_scripts:/mnt/sql \
  -e SQLCMDPASSWORD={{ password }} \
  ghcr.io/bonddim/go-sqlcmd \
    -i /mnt/sql \
    -S {{ server }} \
    -d {{ database }} \
    -u {{ user }}

K8s pod with Entra ID authentication:

apiVersion: v1
kind: Pod
metadata:
  name: go-sqlcmd
  labels:
    azure.workload.identity/use: "true"
spec:
  serviceAccountName: go-sqlcmd
  containers:
  - name: go-sqlcmd
    image: bonddim/go-sqlcmd
    args: 
      - --use-aad
      - --server
      - {{ server }}.database.windows.net
      - --database-name
      - {{ database }}
      - --query
      - {{ query }}
    securityContext:
      runAsNonRoot: true
...

Refer to official docs for syntax and command line arguments

License

Inherited from microsoft/go-sqlcmd

About

go-sqlcmd cli Docker image for Microsoft SQL Server, Azure SQL and Azure Synapse

Topics

azure-sqlgo-sqlcmdmssqlsql-serversqlcmd

Resources

Readme
MIT license
Activity

Stars

1 star

Watchers

1 watching

Forks

0 forks
Report repository

Packages

Used by

Contributors

Languages

You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.