Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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/