Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/panama-core-v6'
Browse files Browse the repository at this point in the history
# Conflicts:
#	Panama.Core.Tests/Panama.Core.Tests.csproj
#	Panama.Sql.Dapper/Panama.Core.Sql.Dapper.csproj
  • Loading branch information
mrogunlana committed May 15, 2023
2 parents d3a2721 + c28da27 commit 8bec6bc
Show file tree
Hide file tree
Showing 533 changed files with 16,786 additions and 111,208 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ bld/
msbuild.log
msbuild.err
msbuild.wrn
[Dd]ata/

.idea/
.ionic/
Expand Down
6 changes: 3 additions & 3 deletions Panama.Database.Sql/.env → Containers/mssql-2017/.env
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ SA_PASSWORD=Jf4UZh4Lz64AbqbG
MSSQL_PID=Developer
MSSQL_DATA_DIR=/var/opt/sqlserver/data
MSSQL_SA_PASSWORD=Jf4UZh4Lz64AbqbG
MSSQL_DB=panama
MSSQL_USER=serviceuser
MSSQL_PASSWORD=Password1
MSSQL_DB=devdb
MSSQL_USER=adminuser
MSSQL_PASSWORD=Tx@XD&Zvlt=SDVo
MSSQL_DB_AUDIT_LOG=logdb
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
version: '3.7'
services:
sqlserver:
db:
build:
context: .
dockerfile: Dockerfile
ports:
- "15789:1433"
- 1433:1433
env_file: .env
volumes:
- sqldata:/var/opt/sqlserver/data
- ./setup.sql:/usr/config/setup.sql

# from https://github.com/microsoft/mssql-docker/issues/668#issuecomment-812530180
mssqlarm64:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
export ACCEPT_EULA="Y"
export SA_PASSWORD="Jf4UZh4Lz64AbqbG"

/usr/work/import-data.sh & /opt/mssql/bin/sqlservr --ACCEPT-EULA
/usr/work/import-data.sh & /opt/mssql/bin/sqlservr --ACCEPT-EULA
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
sleep 10s

#run the setup script to create the DB and the schema in the DB
/opt/mssql-tools/bin/sqlcmd -S localhost -U sa -P "Jf4UZh4Lz64AbqbG" -i /usr/work/setup.sql
/opt/mssql-tools/bin/sqlcmd -S localhost -U sa -P "Jf4UZh4Lz64AbqbG" -i /usr/work/setup.sql
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,20 @@ USE $(MSSQL_DB);
GO
CREATE TABLE [User] (
_ID INT NOT NULL IDENTITY(1, 1) PRIMARY KEY,
ID uniqueidentifier not null,
ID varchar(50) not null,
FirstName varchar(25) null,
LastName varchar(25) null,
Email varchar(100) null,
Password varchar(100) null,
Created datetime not null
);

CREATE TABLE [Setting] (
_ID INT NOT NULL IDENTITY(1, 1) PRIMARY KEY,
ID varchar(50) not null,
[Key] varchar(25) null,
[Value] varchar(25) null,
Created datetime not null
);


Go
6 changes: 6 additions & 0 deletions Containers/mysql-8.00/.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
DB_USERNAME=testdata
DB_DATABASE=devdb
DB_PASSWORD=test.secret.password
DB_ROOT_PASSWORD=rootSecretPassword
DB_PORT=3306
ENVIROMENT=Debug
6 changes: 6 additions & 0 deletions Containers/mysql-8.00/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
FROM mysql:8.0

#Use below if docker-compose volumes are unavailable
#COPY scripts/* /docker-entrypoint-initdb.d/
#COPY conf/* /etc/mysql/conf.d
CMD ["mysqld"]
7 changes: 7 additions & 0 deletions Containers/mysql-8.00/Dockerfile.Development
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
FROM mysql:8.0

#Use below if docker-compose volumes are unavailable
#COPY scripts/* /docker-entrypoint-initdb.d/
#COPY conf/* /etc/mysql/conf.d

CMD ["mysqld"]
7 changes: 7 additions & 0 deletions Containers/mysql-8.00/Dockerfile.Production
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
FROM mysql:8.0

#Use below if docker-compose volumes are unavailable
#COPY scripts/* /docker-entrypoint-initdb.d/
#COPY conf/* /etc/mysql/conf.d

CMD ["mysqld"]
13 changes: 13 additions & 0 deletions Containers/mysql-8.00/conf/custom.cnf
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[mysqld]
server-id = 1
character-set-server = utf8mb4
collation-server = utf8mb4_unicode_ci
binlog_format = row
binlog_row_image = full
gtid_mode = ON
enforce_gtid_consistency = ON
log_replica_updates = TRUE
log_bin = ON

[client]
default-character-set = utf8mb4
28 changes: 28 additions & 0 deletions Containers/mysql-8.00/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
version: '3.7'

services:
db:
container_name: db
build:
context: .
dockerfile: Dockerfile.Development
command: >
bash -c "
chmod 644 /etc/mysql/conf.d/*.cnf
&& /entrypoint.sh mysqld --default-authentication-plugin=mysql_native_password --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
"
ports:
- "3309:3306"
volumes:
- ./data:/var/lib/mysql/
- ./conf/custom.cnf:/etc/mysql/conf.d/custom.cnf
- ./scripts:/docker-entrypoint-initdb.d
environment:
MYSQL_USER: ${DB_USERNAME}
MYSQL_DATABASE: ${DB_DATABASE}
MYSQL_PASSWORD: ${DB_PASSWORD}
MYSQL_ROOT_PASSWORD: ${DB_ROOT_PASSWORD}

volumes:
dbdata:
driver: local
14 changes: 14 additions & 0 deletions Containers/mysql-8.00/scripts/__.000.master.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# create databases
CREATE DATABASE IF NOT EXISTS `devdb`;
CREATE DATABASE IF NOT EXISTS `logdb`;

# create root user and grant rights
CREATE USER 'adminuser'@'%' IDENTIFIED BY 'Tx@XD&Zvlt=SDVo';
GRANT ALL ON devdb.* TO 'adminuser'@'%';
GRANT ALL ON logdb.* TO 'adminuser'@'%';
GRANT SUPER ON *.* TO 'adminuser'@'%';
GRANT PROCESS ON *.* TO 'adminuser'@'%';
GRANT REPLICATION CLIENT ON *.* TO 'adminuser'@'%';
GRANT REPLICATION SLAVE ON *.* TO 'adminuser'@'%';

use devdb;
12 changes: 12 additions & 0 deletions Containers/mysql-8.00/scripts/__.001.create-user.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
use `devdb`;

create table if not exists `User` (
_ID int auto_increment,
ID char(36) not null,
FirstName varchar(25) null,
LastName varchar(25) null,
Email varchar(100) null,
`Password` varchar(100) null,
Created datetime not null,
PRIMARY KEY (_ID)
) engine=innodb;
10 changes: 10 additions & 0 deletions Containers/mysql-8.00/scripts/__.002.create-setting.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
use `devdb`;

create table if not exists `Setting` (
`_ID` int auto_increment,
`ID` char(36) not null,
`Key` varchar(25) null,
`Value` varchar(25) null,
`Created` datetime not null,
PRIMARY KEY (_ID)
) engine=innodb;
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 6 additions & 0 deletions Containers/mysql-8.30/.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
DB_USERNAME=testdata
DB_DATABASE=devdb
DB_PASSWORD=test.secret.password
DB_ROOT_PASSWORD=rootSecretPassword
DB_PORT=3306
ENVIROMENT=Debug
6 changes: 6 additions & 0 deletions Containers/mysql-8.30/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
FROM mysql:8.0.30

#Use below if docker-compose volumes are unavailable
#COPY scripts/* /docker-entrypoint-initdb.d/
#COPY conf/* /etc/mysql/conf.d
CMD ["mysqld"]
7 changes: 7 additions & 0 deletions Containers/mysql-8.30/Dockerfile.Development
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
FROM mysql:8.0.30

#Use below if docker-compose volumes are unavailable
#COPY scripts/* /docker-entrypoint-initdb.d/
#COPY conf/* /etc/mysql/conf.d

CMD ["mysqld"]
7 changes: 7 additions & 0 deletions Containers/mysql-8.30/Dockerfile.Production
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
FROM mysql:8.0.30

#Use below if docker-compose volumes are unavailable
#COPY scripts/* /docker-entrypoint-initdb.d/
#COPY conf/* /etc/mysql/conf.d

CMD ["mysqld"]
14 changes: 14 additions & 0 deletions Containers/mysql-8.30/conf/custom.cnf
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
[mysqld]
server-id = 1
character-set-server = utf8mb4
collation-server = utf8mb4_unicode_ci
binlog_format = row
binlog_row_image = full
binlog_expire_logs_seconds = 604800
gtid_mode = ON
enforce_gtid_consistency = ON
log_replica_updates = TRUE
log_bin = ON

[client]
default-character-set = utf8mb4
28 changes: 28 additions & 0 deletions Containers/mysql-8.30/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
version: '3.7'

services:
db:
container_name: db
build:
context: .
dockerfile: Dockerfile.Development
command: >
bash -c "
chmod 644 /etc/mysql/conf.d/*.cnf
&& /entrypoint.sh mysqld --default-authentication-plugin=mysql_native_password --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
"
ports:
- "3309:3306"
volumes:
- ./data:/var/lib/mysql/
- ./conf/custom.cnf:/etc/mysql/conf.d/custom.cnf
- ./scripts:/docker-entrypoint-initdb.d
environment:
MYSQL_USER: ${DB_USERNAME}
MYSQL_DATABASE: ${DB_DATABASE}
MYSQL_PASSWORD: ${DB_PASSWORD}
MYSQL_ROOT_PASSWORD: ${DB_ROOT_PASSWORD}

volumes:
dbdata:
driver: local
14 changes: 14 additions & 0 deletions Containers/mysql-8.30/scripts/__.000.master.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# create databases
CREATE DATABASE IF NOT EXISTS `devdb`;
CREATE DATABASE IF NOT EXISTS `logdb`;

# create root user and grant rights
CREATE USER 'adminuser'@'%' IDENTIFIED BY 'Tx@XD&Zvlt=SDVo';
GRANT ALL ON devdb.* TO 'adminuser'@'%';
GRANT ALL ON logdb.* TO 'adminuser'@'%';
GRANT SUPER ON *.* TO 'adminuser'@'%';
GRANT PROCESS ON *.* TO 'adminuser'@'%';
GRANT REPLICATION CLIENT ON *.* TO 'adminuser'@'%';
GRANT REPLICATION SLAVE ON *.* TO 'adminuser'@'%';

use devdb;
12 changes: 12 additions & 0 deletions Containers/mysql-8.30/scripts/__.001.create-user.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
use `devdb`;

create table if not exists `User` (
_ID int auto_increment,
ID char(36) not null,
FirstName varchar(25) null,
LastName varchar(25) null,
Email varchar(100) null,
`Password` varchar(100) null,
Created datetime not null,
PRIMARY KEY (_ID)
) engine=innodb;
10 changes: 10 additions & 0 deletions Containers/mysql-8.30/scripts/__.002.create-setting.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
use `devdb`;

create table if not exists `Setting` (
`_ID` int auto_increment,
`ID` char(36) not null,
`Key` varchar(25) null,
`Value` varchar(25) null,
`Created` datetime not null,
PRIMARY KEY (_ID)
) engine=innodb;
16 changes: 16 additions & 0 deletions Containers/mysql-8.30/scripts/__.003.create-log.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
use `logdb`;

drop table if exists `Log`;

create table if not exists `Log` (
Id int auto_increment,
CorrelationId char(36) null,
MachineName varchar(200) not null,
Logged datetime not null,
Level varchar(50) null,
Message text not null,
Logger varchar(250) null,
Callsite varchar(250) null,
Exception text null,
PRIMARY KEY (Id)
) engine=innodb;
13 changes: 13 additions & 0 deletions Containers/rabbitmq-3.8/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
version: "3.8"
services:
rabbitmq3:
container_name: "rabbitmq"
image: rabbitmq:3.8-management-alpine
environment:
- RABBITMQ_DEFAULT_USER=myuser
- RABBITMQ_DEFAULT_PASS=mypassword
ports:
# AMQP protocol port
- '5672:5672'
# HTTP management UI
- '15672:15672'
Loading

0 comments on commit 8bec6bc

Please sign in to comment.