Skip to content

Commit

Permalink
impl++
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Albuquerque authored and Daniel Albuquerque committed Jul 31, 2020
1 parent 552b8b4 commit f02f9b0
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 7 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
*.tar.gz
docker/protheus12/*
.env
.vscode
.vscode
.DS_STORE
5 changes: 2 additions & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,14 @@ version: '3.6'
services:

database:
image: "mcr.microsoft.com/mssql/server:2017-latest"
image: "mcr.microsoft.com/mssql/server:2019-CU5-ubuntu-18.04"
command: /bin/bash ./entrypoint.sh
container_name: protheus_mssql
environment:
SA_PASSWORD: ${DB_PASS}
ACCEPT_EULA: "Y"
MSSQL_DB: ${DB_NAME}
volumes:
- dbdata:/var/opt/mssql/data
- ./docker/mssql/entrypoint.sh:/entrypoint.sh
- ./docker/mssql/dbinit.sh:/dbinit.sh
- ./docker/mssql/dbinit.sql:/dbinit.sql
Expand Down Expand Up @@ -56,4 +55,4 @@ services:
- license

volumes:
dbdata: {}
mssql_data: {}
11 changes: 10 additions & 1 deletion docker/mssql/dbinit.sql
Original file line number Diff line number Diff line change
@@ -1 +1,10 @@
CREATE DATABASE $(MSSQL_DB);
sp_configure 'show advanced options', 1;
GO
RECONFIGURE;
GO
sp_configure 'max server memory', 32768;
GO
RECONFIGURE;
GO
CREATE DATABASE $(MSSQL_DB);
GO
4 changes: 2 additions & 2 deletions env-sample
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ DBACCESS_SERVER=protheus_dbaccess
DBACCESS_ALIAS=PROTHEUS
DBACCESS_PORT=7890

PROTHEUS_DATA_PATH=./protheus12/protheus_data
PROTHEUS_APO_PATH=./protheus12/protheus/apo/
PROTHEUS_DATA_PATH=./docker/protheus12/protheus_data
PROTHEUS_APO_PATH=./docker/protheus12/protheus/apo

LICENSE_SERVER=protheus_license
LICENSE_SERVER_PORT=5555

0 comments on commit f02f9b0

Please sign in to comment.