From a79be9c4c981ae8d3f7e5afbe985465974b576f9 Mon Sep 17 00:00:00 2001 From: Jeern Date: Wed, 31 Jul 2024 12:53:09 +0200 Subject: [PATCH] Added docker-compose.yml to create a firebird server --- src/Sample/README.md | 5 +++++ src/Sample/appsettings.json | 6 +++--- src/Sample/docker-compose.yml | 15 +++++++++++++++ 3 files changed, 23 insertions(+), 3 deletions(-) create mode 100644 src/Sample/README.md create mode 100644 src/Sample/docker-compose.yml diff --git a/src/Sample/README.md b/src/Sample/README.md new file mode 100644 index 0000000..454585d --- /dev/null +++ b/src/Sample/README.md @@ -0,0 +1,5 @@ +To try this sample that demonstrates the use of DbUp for Firebird you can install docker and run `docker compose up` from a terminal in this folder. + +After that you can run the sample project and notice the scripts are run against the fbsample.fdb database + +The Firebird server uses the latest jacobalberty/firebird image from Dockerhub. At the time of writing the latest image uses the v4.0.1 version of the firebird server diff --git a/src/Sample/appsettings.json b/src/Sample/appsettings.json index b40a501..a2f2ff4 100644 --- a/src/Sample/appsettings.json +++ b/src/Sample/appsettings.json @@ -1,5 +1,5 @@ { - "ConnectionStrings": { - "SampleFirebird": "User=SOMEUSER;Password=SOMEPWD;Database=c:\\somedb.fdb;DataSource=SOMESERVERNAME;Port=SOMEPORT;Dialect=3;Charset=ISO8859_1;ServerType=0;Connection lifetime=15;Pooling=true;MinPoolSize=0;MaxPoolSize=50;" - } + "ConnectionStrings": { + "SampleFirebird": "User=SYSDBA;Password=firebirdsample;Database=/firebird/data/fbsample.fdb;DataSource=localhost;Port=3050;Dialect=3;Charset=ISO8859_1;ServerType=0;Connection lifetime=15;Pooling=true;MinPoolSize=0;MaxPoolSize=50;" + } } \ No newline at end of file diff --git a/src/Sample/docker-compose.yml b/src/Sample/docker-compose.yml new file mode 100644 index 0000000..8bae4ad --- /dev/null +++ b/src/Sample/docker-compose.yml @@ -0,0 +1,15 @@ +services: + firebird: + image: jacobalberty/firebird + container_name: dbupfirebird + hostname: firebird + environment: + - ISC_USER=SYSDBA + - ISC_PASSWORD=firebirdsample + - FIREBIRD_DATABASE=fbsample.fdb + - FIREBIRD_USER=sampleuser + - FIREBIRD_PASSWORD=firebirdsample + ports: + - 3050:3050 + volumes: + - ./firebird/intl/:/firebird/intl