Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/felipecruz91/bitbucket-sql-server
Bitbucket server with SQL Server 2019 running in Docker
https://github.com/felipecruz91/bitbucket-sql-server
bitbucket-server sql-server
Last synced: 13 days ago
JSON representation
Bitbucket server with SQL Server 2019 running in Docker
- Host: GitHub
- URL: https://github.com/felipecruz91/bitbucket-sql-server
- Owner: felipecruz91
- Created: 2020-09-20T08:17:49.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-09-21T12:44:59.000Z (over 4 years ago)
- Last Synced: 2025-01-18T11:53:28.970Z (21 days ago)
- Topics: bitbucket-server, sql-server
- Homepage:
- Size: 24.4 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# bitbucket-sql-server
## Getting started
```cli
docker-compose up -d
```### SQL Server 2019
Connect to the container and create the database:
```cli
docker exec -it sqlserver2019 /bin/sh
``````cli
/opt/mssql-tools/bin/sqlcmd -S localhost -U SA -P "Password01." -Q 'CREATE DATABASE bitbucket'
```Verify the db has been created:
```cli
/opt/mssql-tools/bin/sqlcmd -S localhost -U SA -P "Password01." -Q 'SELECT name FROM sys.databases'
name
--------------------------------------------------------------------------------------------------------------------------------
master
tempdb
model
msdb
bitbucket <----- here
```Bitbucket Server requires a case-sensitive database, but the target database is case-insensitive.
```cli
/opt/mssql-tools/bin/sqlcmd -S localhost -U SA -P "Password01." -Q 'ALTER DATABASE bitbucket COLLATE SQL_Latin1_General_CP1_CS_AS'
```![bitbucket-sql-server-setup](./docs/images/bitbucket-sql-server-setup.PNG)
### Bitbucket server
(In case you want to sping up only Bitbucket server, without using `docker-compose.yml`)
```cli
docker run \
--rm \
-v bitbucket-vol:/var/atlassian/application-data/bitbucket \
--name="bitbucket" \
-d -p 7990:7990 -p 7999:7999 \
atlassian/bitbucket-server
```Bitbucket server will be starting up in http://localhost:7990/