[GH-ISSUE #75] Distribute as docker images #50

Closed
opened 2026-02-26 01:32:59 +03:00 by kerem · 3 comments
Owner

Originally created by @pscanf on GitHub (Oct 22, 2018).
Original GitHub issue: https://github.com/jeffknupp/sandman2/issues/75

Last year I started using sandman2 at my company for building a quick admin console. Since we use docker to deploy things, and since the project doesn't provide official docker images, I dockerized it myself and published the image on docker hub.

The image (which only targets mssql) has since been downloaded 100k+ times, probably because it's the first result when searching for sandman on docker hub.

A couple of days ago I received a PR on the docker image repo to update some dependencies, but I'm hesitant to merge it to master because the update could potentially break existing users (back when I created the image I didn't think about setting up a versioning scheme for it, so everything that goes into the master branch of the repo gets published as the latest tag of the docker image).

So to get to the point, since there appears to be some demand for a dockerized version of sandman2, you might want to consider directly publishing images for it.

Originally created by @pscanf on GitHub (Oct 22, 2018). Original GitHub issue: https://github.com/jeffknupp/sandman2/issues/75 Last year I started using sandman2 at my company for building a quick admin console. Since we use docker to deploy things, and since the project doesn't provide official docker images, I dockerized it myself and published the image on [docker hub](https://hub.docker.com/r/mondora/sandman2-mssql/). The image (which only targets mssql) has since been downloaded 100k+ times, probably because it's the first result when [searching for **sandman**](https://hub.docker.com/search/?isAutomated=0&isOfficial=0&page=1&pullCount=0&q=sandman&starCount=0) on docker hub. A couple of days ago I received [a PR on the docker image repo](https://github.com/mondora/docker-sandman2-mssql/pull/1) to update some dependencies, but I'm hesitant to merge it to master because the update could potentially break existing users (back when I created the image I didn't think about setting up a versioning scheme for it, so everything that goes into the master branch of the repo gets published as the `latest` tag of the docker image). So to get to the point, since there appears to be some demand for a dockerized version of sandman2, you might want to consider directly publishing images for it.
kerem closed this issue 2026-02-26 01:32:59 +03:00
Author
Owner

@jeffknupp commented on GitHub (Oct 23, 2018):

Will do. Thanks so much for the head's up. I'll update this issue when official image is out.

<!-- gh-comment-id:432362699 --> @jeffknupp commented on GitHub (Oct 23, 2018): Will do. Thanks so much for the head's up. I'll update this issue when official image is out.
Author
Owner

@jeffknupp commented on GitHub (Oct 26, 2018):

@pscanf could you post the contents of start.sh here? I'll re-use it if applicable

<!-- gh-comment-id:433547650 --> @jeffknupp commented on GitHub (Oct 26, 2018): @pscanf could you post the contents of `start.sh` here? I'll re-use it if applicable
Author
Owner

@pscanf commented on GitHub (Oct 26, 2018):

#!/bin/sh

# Register DSN
odbcinst -i -s -l -r <<EOF
[DefaultDataSource]
Driver      = ${MSSQL_ODBC_DRIVER-ODBC Driver 13 for SQL Server}
Server      = $MSSQL_HOSTNAME,${MSSQL_PORT-1433}
Database    = $MSSQL_DATABASE_NAME
EOF

# Start sandman2
sandman2ctl -p $PORT mssql+pyodbc://$MSSQL_USERNAME:$MSSQL_PASSWORD@DefaultDataSource

You can find it in the repo from which the image builds: https://github.com/mondora/docker-sandman2-mssql/blob/master/start.sh

<!-- gh-comment-id:433555640 --> @pscanf commented on GitHub (Oct 26, 2018): ```sh #!/bin/sh # Register DSN odbcinst -i -s -l -r <<EOF [DefaultDataSource] Driver = ${MSSQL_ODBC_DRIVER-ODBC Driver 13 for SQL Server} Server = $MSSQL_HOSTNAME,${MSSQL_PORT-1433} Database = $MSSQL_DATABASE_NAME EOF # Start sandman2 sandman2ctl -p $PORT mssql+pyodbc://$MSSQL_USERNAME:$MSSQL_PASSWORD@DefaultDataSource ``` You can find it in the repo from which the image builds: https://github.com/mondora/docker-sandman2-mssql/blob/master/start.sh
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/sandman2-jeffknupp#50
No description provided.