Sign inSign up

d3athbymonkey/container_db_tester

By d3athbymonkey

Updated about 6 years ago

Tests connectivity from a container to a SQL DB.

Image
0

1.8K

d3athbymonkey/container_db_tester repository overview

ContainerDBTester - .net - Windows

This container was built as a Windows .Net App to allow you to test SQL database connectivity and basic query latency from a container. It's easy to use, all you need to supply is the following:

  1. Connection String
  2. table you want to query
  3. amount of rows you would like to query
  4. Do you want continuous queries. note: if you choose to not add this as an arg the container will query only once and complete

./Container.DBTester.exe YOU_CONNECTION_STRING TABLE_TO_QUERY ROW_COUNT_TO_RETRN YES_OR_EMPTY

Keep in mind you DO need a Windows Node to use this. Notice the nodeSelector at the bottom of the YAML, you can change that to match whatever your label may be.

Code

If you want to use a yaml and say deploy to Kubernetes you can visit my github repo for the code used to recreate this.

YAML

apiVersion: v1
kind: Pod
metadata:
  name: dbtester
  labels:
    app: dbtester
spec:
  containers:
  - name: dbtester
    image: d3athbymonkey/container_db_tester:latest
    imagePullPolicy: Always
    command: ["Container.DBTester.exe"]
    args: ["your connection string", "your table", "amount of rows", "yes for contious, nothing for single"]
  nodeSelector:
    kubernetes.io/os: windows

Tag summary

Content type

Image

Digest

Size

127.2 MB

Last updated

about 6 years ago

docker pull d3athbymonkey/container_db_tester