Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/markhobson/docker-sqlpackage
Docker image for sqlpackage
https://github.com/markhobson/docker-sqlpackage
docker-image sqlpackage
Last synced: 2 months ago
JSON representation
Docker image for sqlpackage
- Host: GitHub
- URL: https://github.com/markhobson/docker-sqlpackage
- Owner: markhobson
- Created: 2020-03-25T16:03:51.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2022-11-14T12:07:46.000Z (about 2 years ago)
- Last Synced: 2024-08-03T22:18:55.945Z (5 months ago)
- Topics: docker-image, sqlpackage
- Language: Dockerfile
- Homepage: https://hub.docker.com/r/markhobson/sqlpackage
- Size: 8.79 KB
- Stars: 8
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- jimsghstars - markhobson/docker-sqlpackage - Docker image for sqlpackage (Dockerfile)
README
# markhobson/sqlpackage
Docker image for [sqlpackage](https://docs.microsoft.com/en-us/sql/tools/sqlpackage-download) 19.1.
Available on [Docker Hub](https://hub.docker.com/r/markhobson/sqlpackage).
## Usage
To run sqlpackage:
```bash
docker run -it --rm markhobson/sqlpackage
```To import bacpac file `/backups/db.bacpac` to local database `db` with username `sa` and password `password`:
```bash
docker run -it --rm -v /backups:/data --network=host markhobson/sqlpackage \
/a:Import /tsn:tcp:localhost /tdn:db /tu:sa /tp:password /sf:/data/db.bacpac
```To export local database `db` with username `sa` and password `password` to bacpac file `/backups/db.bacpac`:
```bash
docker run -it --rm -v /backups:/data --network=host markhobson/sqlpackage \
/a:Export /ssn:tcp:localhost /sdn:db /su:sa /sp:password /tf:/data/db.bacpac
```## Tags
The following Docker tags are available:
* `latest` [(Dockerfile)](Dockerfile)
* `18.7` [(Dockerfile)](https://github.com/markhobson/docker-sqlpackage/blob/18.7/Dockerfile)