Sign inSign up

chriseaton/adventureworks

By chriseaton

•Updated 12 months ago

Microsoft SQL Server docker image with the sample AdventureWorks database installed.

Image
Databases & storage
3

50K+

chriseaton/adventureworks repository overview

⁠Docker AdventureWorks

This project is available on...

⁠Tags & Support

Currently this docker image is available in two supported database engines: Microsoft SQL Server & Postgres

To ensure parity and cross-compatibility, we use a slightly older version of each.

  • Microsoft SQL 2022 & 2017
  • Postgres 16 & 13

If you'd like to leverage a specific version, you can clone this repository and modify the build.sh scripts in the appropriate folder.

⁠Microsoft SQL Server

There are three versions tagged for Microsoft SQL Server:

TagDescription
latest or oltp or oltp-2022This image contains the standard OLTP version of the AdventureWorks database on Microsoft SQL 2022.
oltp-2017This image contains the standard OLTP version of the AdventureWorks database on Microsoft SQL 2017.
datawarehouse or datawarehouse-2022This image utilizes the data warehouse version of the AdventureWorks database on Microsoft SQL 2022.
datawarehouse-2017This image utilizes the data warehouse version of the AdventureWorks database on Microsoft SQL 2017.
light or light-2022This image utilizes the "light" version of the AdventureWorks database on Microsoft SQL 2022.
light-2017This image utilizes the "light" version of the AdventureWorks database on Microsoft SQL 2017.
⁠Postgres

At this time, only the tables and data are fully implemented but should be accurately converted to postgres data types (including geography). Some views (specifically, the ones using XML and CROSS APPLY) have been omitted.

No functions, custom types, or stored procedures are included.

TagDescription
postgres or postgres-16This image adapts the "light" version of the AdventureWorks database to Postgres 16.
postgres-13This image adapts the "light" version of the AdventureWorks database to Postgres 13.

⁠Building

Run the build.sh script to download the AdventureWorks backup file from Microsoft⁠, and to build and tag the docker image.

⁠Running

⁠Microsoft SQL Server

This docker image uses the same environmental variables defined on the Microsoft SQL Server docker image⁠.

docker run -p 1433:1433 -e 'ACCEPT_EULA=Y' -e 'SA_PASSWORD=my_password' -d chriseaton/adventureworks:latest
⁠Postgres

This docker image uses the same environmental variables defined on the Postgres docker image⁠.

docker run -p 5432:5432 -e 'POSTGRES_PASSWORD=my_password' -d chriseaton/adventureworks:postgres

⁠Publishing

If you are a maintainer, you can publish the image to docker hub chriseaton/adventureworks⁠.

docker push chriseaton/adventureworks

Tag summary

Content type

Image

Digest

sha256:54c3384ce…

Size

612.9 MB

Last updated

over 1 year ago

docker pull chriseaton/adventureworks