{"id":15002995,"url":"https://github.com/chriseaton/docker-adventureworks","last_synced_at":"2026-01-30T02:39:16.313Z","repository":{"id":296308924,"uuid":"992928282","full_name":"chriseaton/docker-adventureworks","owner":"chriseaton","description":"A docker image using Microsoft's AdventureWorks (demo/sample) database pre-loaded and installed on SQL Server or Postgres.","archived":false,"fork":false,"pushed_at":"2025-10-10T17:40:09.000Z","size":61,"stargazers_count":7,"open_issues_count":1,"forks_count":1,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-10-30T09:40:32.451Z","etag":null,"topics":["adventure-works","adventureworks","database","mssql","mssql-database","postgres","postgres-database","sample","test-data"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/chriseaton.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-05-29T23:52:20.000Z","updated_at":"2025-10-10T17:40:13.000Z","dependencies_parsed_at":"2025-05-30T01:31:16.532Z","dependency_job_id":"e732935a-4007-499d-9b57-1c868252a0fa","html_url":"https://github.com/chriseaton/docker-adventureworks","commit_stats":null,"previous_names":["chriseaton/docker-adventureworks"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/chriseaton/docker-adventureworks","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chriseaton%2Fdocker-adventureworks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chriseaton%2Fdocker-adventureworks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chriseaton%2Fdocker-adventureworks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chriseaton%2Fdocker-adventureworks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chriseaton","download_url":"https://codeload.github.com/chriseaton/docker-adventureworks/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chriseaton%2Fdocker-adventureworks/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28896778,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-29T21:06:44.224Z","status":"online","status_checked_at":"2026-01-30T02:00:06.810Z","response_time":66,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["adventure-works","adventureworks","database","mssql","mssql-database","postgres","postgres-database","sample","test-data"],"created_at":"2024-09-24T18:54:47.432Z","updated_at":"2026-01-30T02:39:16.276Z","avatar_url":"https://github.com/chriseaton.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"![Robot Carrying Boxes](.repo.jpg)\n# Docker AdventureWorks\n![GitHub License](https://img.shields.io/github/license/chriseaton/docker-adventureworks)\n![Arch:amd64](https://img.shields.io/badge/arch-arm32-purple)\n![Arch:amd64](https://img.shields.io/badge/arch-arm64-purple)\n![Arch:amd64](https://img.shields.io/badge/arch-i386-purple)\n![Arch:amd64](https://img.shields.io/badge/arch-amd64-purple)\n![Database:mssql](https://img.shields.io/badge/database-mssql-blue)\n![Database:postgres](https://img.shields.io/badge/database-postgres-blue)\n\nNow you can quickly spin up the *AdventureWorks* sample database in **docker**!\n\nThis database is great for testing database features and experimenting in database administration as it comes preloaded with a reasonable (example) enterprise database architecture and records! Samples include fictitious employees, departments, addresses, payroll, contacts, sales, products, and so much more!\n\nThese databases are built off the available backups provided by Microsoft, and a custom port to *postgres*.\nThe docker images utilize the native images provided for *AdventureWorks* on **Postgres** and **Microsoft SQL Server**.\n\n\u003cp float=\"left\"\u003e\n\u003ca href=\"https://www.microsoft.com/en-us/sql-server\"\u003e\u003cimg src=\"https://upload.wikimedia.org/wikipedia/de/thumb/8/8c/Microsoft_SQL_Server_Logo.svg/1200px-Microsoft_SQL_Server_Logo.svg.png\" alt=\"SQL Server badge\" width=\"128px\" style=\"display: inline\" /\u003e\u003c/a\u003e\n\u003ca href=\"https://www.postgresql.org/\"\u003e\u003cimg src=\"https://upload.wikimedia.org/wikipedia/commons/thumb/2/29/Postgresql_elephant.svg/993px-Postgresql_elephant.svg.png\" alt=\"Postgres badge\" width=\"104px\" /\u003e\u003c/a\u003e\n\u003c/p\u003e\n\nThis project is available on...\n- Docker Hub: [`chriseaton/adventureworks`](https://hub.docker.com/r/chriseaton/adventureworks)\n- GitHub: [`chriseaton/docker-adventureworks`](https://github.com/chriseaton/docker-adventureworks)\n\nTo run one of the samples, see §Running below.    \nYou can find samples of a `docker` or `docker-compose.yaml` files in the `samples/` directory.\n\n## Quick Start\n\nTo get started, you just need to fire off one of the `docker` commands below (modify as desired) which will pull and run the database image.\n\nCheck out the `samples/` directory for more (such as a `docker compose` file).\n\n\u003e [!TIP]\n\u003e Replace `My_password1` with your own secure password. Note that the password *must* pass minimum complexity requirements\nor you won't be able to connect!\n\n### Microsoft SQL Server\nThis docker image is extended from the official [Microsoft SQL Server docker image](https://hub.docker.com/_/microsoft-mssql-server) image and so you can use the same environmental variables defined on there.\n```\ndocker run -p 1433:1433 \\\n -e 'ACCEPT_EULA=Y' \\\n -e 'MSSQL_SA_PASSWORD=My_password1' \\\n -d chriseaton/adventureworks:latest\n```\n\n### Postgres\nThis docker image is extended from the official [Postgres docker image](https://hub.docker.com/_/postgres) image and so you can use the same environmental variables defined on there.\n```\ndocker run -p 5432:5432 \\\n -e 'POSTGRES_PASSWORD=My_password1' \\\n -d chriseaton/adventureworks:postgres\n```\n\n## Tags\nCurrently this docker image is available in two supported database engines: Microsoft SQL Server \u0026 Postgres\n\nTo ensure parity and cross-compatibility, we use a slightly older version of each.\n\n- Microsoft SQL 2022 \u0026 2017\n- Postgres 16 \u0026 13\n\n\u003e [!NOTE]\n\u003e ARM/i386 support is currently only available on the Postgres 16 images and later.    \n\nIf you'd like to leverage a specific version, you can clone this repository and modify the `build.sh` scripts in the \nappropriate folder.\n\n### Microsoft SQL Server\nThere are three versions tagged for Microsoft SQL Server:\n\n| Tag | Description |\n|-----|-------------|\n| `latest` or `oltp` or `oltp-2022` | This image contains the standard OLTP version of the AdventureWorks database on Microsoft SQL 2022. |\n| `oltp-2017` | This image contains the standard OLTP version of the AdventureWorks database on Microsoft SQL 2017. |\n| `datawarehouse` or `datawarehouse-2022` | This image utilizes the data warehouse version of the AdventureWorks database on Microsoft SQL 2022. |\n| `datawarehouse-2017` | This image utilizes the data warehouse version of the AdventureWorks database on Microsoft SQL 2017. |\n| `light` or `light-2022` | This image utilizes the \"light\" version of the AdventureWorks database on Microsoft SQL 2022. |\n| `light-2017` | This image utilizes the \"light\" version of the AdventureWorks database on Microsoft SQL 2017. |\n\n\u003e [!NOTE]\n\u003e  The original AdventureWorks database by Microsoft was released under MIT license:\n\u003e https://github.com/microsoft/sql-server-samples/blob/master/license.txt\n\n### Postgres\nAt this time, only the tables and data are fully implemented but should be accurately converted to postgres data types (including geography).\nSome views (specifically, the ones using XML and `CROSS APPLY`) have been omitted.\n\nNo functions, custom types, or stored procedures are included.\n\n| Tag | Description |\n|-----|-------------|\n| `postgres` or `postgres-16` | This image adapts the \"light\" version of the AdventureWorks database to Postgres 16.  |\n| `postgres-13` | This image adapts the \"light\" version of the AdventureWorks database to Postgres 13.  |\n\n## Development\n\n### Building\nRun the `build.sh` script to download the AdventureWorks [backup file from Microsoft](https://docs.microsoft.com/en-us/sql/samples/adventureworks-install-configure), and to build and tag the docker image.\n\nFor multi-architecture build support see the [docker documentation here](https://docs.docker.com/build/building/multi-platform/#cross-compilation).\n\nIn a nutshell on your linux machine, run:\n```sh\ndocker run --privileged --rm tonistiigi/binfmt --install all\n```\n...and in your `/etc/docker/daemon.json` configuration file, add:\n```\n{\n    \"features\": {\n        \"containerd-snapshotter\": true\n    }\n}\n```\n...once these things are done you should be able to run a multi-platform build, like [in this example](https://docs.docker.com/build/building/multi-platform/#simple-multi-platform-build-using-emulation).\n\n### Publishing\nIf you are a maintainer, you can publish the image to docker hub [chriseaton/adventureworks](https://hub.docker.com/repository/docker/chriseaton/adventureworks).\n\n```sh\ndocker push chriseaton/adventureworks\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchriseaton%2Fdocker-adventureworks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchriseaton%2Fdocker-adventureworks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchriseaton%2Fdocker-adventureworks/lists"}