Sign inSign up

henrili/test_db

By henrili

•Updated over 4 years ago

MS-SQL server with empty db for performing tests. The db is named from environment variable DB_NAME

Image
Developer tools
Databases & storage
0

510

henrili/test_db repository overview

⁠Testing database

This image is a simple extension of mcr.microsoft.com/mssql/server:2017-latest. It adds three files (2x sh-script, 1x sql-script) that reads the environment variable "DB_NAME", waits for the SQL-server to start, checks if a DB with that name exists, and if not creates one.

⁠Example usage in docker-compose.yml

services:
  sql:
    image: henrili/test_db:2017-latest
    environment:
      - ACCEPT_EULA=Y
      - SA_PASSWORD=myPassword
      - DB_NAME=myDatabaseName
    ports:
      - "1433:1433"
    volumes:
      - "dbdata:/var/opt/mssql/data"
volumes:
  dbdata:

Tag summary

Content type

Image

Digest

Size

425.6 MB

Last updated

over 4 years ago

docker pull henrili/test_db:2017-latest