-
Notifications
You must be signed in to change notification settings - Fork 229
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
311 changed files
with
18,063 additions
and
10,871 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/bin/sh | ||
set -e | ||
|
||
CONTEXT_DIR=$(dirname $0)/docker | ||
|
||
sudo docker build -t npgsql/postgres:11 --build-arg PG_VERSION=11 $CONTEXT_DIR | ||
sudo docker build -t npgsql/postgres:10 --build-arg PG_VERSION=10 $CONTEXT_DIR | ||
sudo docker build -t npgsql/postgres:9.6 --build-arg PG_VERSION=9.6 $CONTEXT_DIR | ||
|
||
sudo docker push npgsql/postgres:11 | ||
sudo docker push npgsql/postgres:10 | ||
sudo docker push npgsql/postgres:9.6 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
ARG PG_VERSION=11 | ||
|
||
FROM postgres:$PG_VERSION | ||
LABEL description="Npgsql CI build image" | ||
|
||
ENV POSTGIS_MAJOR 2.5 | ||
ENV POSTGIS_VERSION 2.5.2+dfsg-1~exp1.pgdg90+1 | ||
|
||
RUN apt-get update && \ | ||
apt-get upgrade -y && \ | ||
apt-get install -y --no-install-recommends \ | ||
postgresql-$PG_MAJOR-postgis-$POSTGIS_MAJOR=$POSTGIS_VERSION \ | ||
postgresql-$PG_MAJOR-postgis-$POSTGIS_MAJOR-scripts=$POSTGIS_VERSION \ | ||
postgis=$POSTGIS_VERSION && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
# Data directory needs to be empty for initialization scripts to run, so stash one level up. | ||
COPY ./server.crt $PGDATA/../server.crt | ||
COPY ./server.key $PGDATA/../server.key | ||
RUN chown root:postgres $PGDATA/../server.key | ||
RUN chmod 0640 $PGDATA/../server.key | ||
|
||
RUN mkdir -p /docker-entrypoint-initdb.d | ||
COPY ./initdb-npgsql.sh /docker-entrypoint-initdb.d/initdb-npgsql.sh | ||
|
||
CMD ["postgres", "-c", "max_prepared_transactions=10", "-c", "ssl=true", "-c", "ssl_cert_file=../server.crt", "-c", "ssl_key_file=../server.key"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/bin/sh | ||
set -e | ||
|
||
# Perform all actions as $POSTGRES_USER | ||
export PGUSER="$POSTGRES_USER" | ||
|
||
# Standard test account for Npgsql | ||
psql -c "CREATE ROLE npgsql_tests SUPERUSER LOGIN PASSWORD 'npgsql_tests';" | ||
psql -c "CREATE DATABASE npgsql_tests OWNER npgsql_tests;" | ||
|
||
# Domain account for Azure Pipelines. | ||
psql -c "CREATE ROLE vsts SUPERUSER LOGIN;" | ||
psql -c "CREATE DATABASE vsts OWNER vsts;" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
Certificate: | ||
Data: | ||
Version: 3 (0x2) | ||
Serial Number: 12599801177921850358 (0xaedb7c6a2a948bf6) | ||
Signature Algorithm: sha1WithRSAEncryption | ||
Issuer: C=AU, ST=Some-State, O=Internet Widgits Pty Ltd, CN=localhost | ||
Validity | ||
Not Before: Mar 13 11:19:37 2015 GMT | ||
Not After : Apr 12 11:19:37 2015 GMT | ||
Subject: C=AU, ST=Some-State, O=Internet Widgits Pty Ltd, CN=localhost | ||
Subject Public Key Info: | ||
Public Key Algorithm: rsaEncryption | ||
Public-Key: (1024 bit) | ||
Modulus: | ||
00:c1:df:3f:3b:b8:59:b1:33:ae:9c:ec:6b:44:41: | ||
7b:0a:cd:51:62:98:e2:11:f0:a0:7d:65:67:9b:49: | ||
88:15:91:cf:30:f1:23:dc:3c:00:83:76:be:59:df: | ||
9c:66:8f:eb:f3:a7:73:a0:eb:2a:26:85:d2:48:aa: | ||
4f:88:1b:b8:31:22:df:bd:e3:1b:6f:4f:70:c3:b2: | ||
f4:a8:14:07:0e:77:d7:fe:91:b1:b1:3d:0a:cc:5e: | ||
32:ac:31:06:d3:d7:cf:e5:fc:3c:c0:db:c0:6b:0e: | ||
00:e0:a5:32:4a:2d:90:63:37:7e:c8:e6:5d:ad:df: | ||
30:81:7e:65:4a:6d:71:a5:9b | ||
Exponent: 65537 (0x10001) | ||
X509v3 extensions: | ||
X509v3 Subject Key Identifier: | ||
17:4C:64:08:33:71:2A:34:33:CA:15:3E:F3:B8:98:1A:E7:8E:64:F4 | ||
X509v3 Authority Key Identifier: | ||
keyid:17:4C:64:08:33:71:2A:34:33:CA:15:3E:F3:B8:98:1A:E7:8E:64:F4 | ||
|
||
X509v3 Basic Constraints: | ||
CA:TRUE | ||
Signature Algorithm: sha1WithRSAEncryption | ||
81:f4:69:3e:b1:c0:9f:4b:82:10:8d:3e:7c:98:70:2a:f3:24: | ||
ca:33:13:35:1d:9e:84:dc:b4:f1:17:1f:e6:18:d5:86:51:b3: | ||
ce:3e:4a:97:39:cc:7e:74:94:01:da:68:43:df:b0:b6:fc:29: | ||
0c:86:ce:5f:0c:3d:c6:f0:8c:c0:f5:86:e7:0b:3f:fb:b0:d6: | ||
b0:2c:9a:9e:15:be:31:dc:6d:bb:32:92:b7:36:fb:65:5a:f1: | ||
d2:44:04:fe:eb:97:f2:8a:31:2e:4c:fd:f9:80:00:8d:91:81: | ||
c1:90:97:18:fa:e2:c6:1c:ff:28:d1:58:94:b3:b5:9f:7a:f7: | ||
39:b3 | ||
-----BEGIN CERTIFICATE----- | ||
MIICgDCCAemgAwIBAgIJAK7bfGoqlIv2MA0GCSqGSIb3DQEBBQUAMFkxCzAJBgNV | ||
BAYTAkFVMRMwEQYDVQQIDApTb21lLVN0YXRlMSEwHwYDVQQKDBhJbnRlcm5ldCBX | ||
aWRnaXRzIFB0eSBMdGQxEjAQBgNVBAMMCWxvY2FsaG9zdDAeFw0xNTAzMTMxMTE5 | ||
MzdaFw0xNTA0MTIxMTE5MzdaMFkxCzAJBgNVBAYTAkFVMRMwEQYDVQQIDApTb21l | ||
LVN0YXRlMSEwHwYDVQQKDBhJbnRlcm5ldCBXaWRnaXRzIFB0eSBMdGQxEjAQBgNV | ||
BAMMCWxvY2FsaG9zdDCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEAwd8/O7hZ | ||
sTOunOxrREF7Cs1RYpjiEfCgfWVnm0mIFZHPMPEj3DwAg3a+Wd+cZo/r86dzoOsq | ||
JoXSSKpPiBu4MSLfveMbb09ww7L0qBQHDnfX/pGxsT0KzF4yrDEG09fP5fw8wNvA | ||
aw4A4KUySi2QYzd+yOZdrd8wgX5lSm1xpZsCAwEAAaNQME4wHQYDVR0OBBYEFBdM | ||
ZAgzcSo0M8oVPvO4mBrnjmT0MB8GA1UdIwQYMBaAFBdMZAgzcSo0M8oVPvO4mBrn | ||
jmT0MAwGA1UdEwQFMAMBAf8wDQYJKoZIhvcNAQEFBQADgYEAgfRpPrHAn0uCEI0+ | ||
fJhwKvMkyjMTNR2ehNy08Rcf5hjVhlGzzj5KlznMfnSUAdpoQ9+wtvwpDIbOXww9 | ||
xvCMwPWG5ws/+7DWsCyanhW+MdxtuzKStzb7ZVrx0kQE/uuX8ooxLkz9+YAAjZGB | ||
wZCXGPrixhz/KNFYlLO1n3r3ObM= | ||
-----END CERTIFICATE----- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
-----BEGIN RSA PRIVATE KEY----- | ||
MIICXgIBAAKBgQDB3z87uFmxM66c7GtEQXsKzVFimOIR8KB9ZWebSYgVkc8w8SPc | ||
PACDdr5Z35xmj+vzp3Og6yomhdJIqk+IG7gxIt+94xtvT3DDsvSoFAcOd9f+kbGx | ||
PQrMXjKsMQbT18/l/DzA28BrDgDgpTJKLZBjN37I5l2t3zCBfmVKbXGlmwIDAQAB | ||
AoGBAJnspubCcivXzb33kx7JImisJP60RWFa/AEzPrQzCGGft7Gy8vbLiNjXsT/n | ||
4uQnRn3YKFzN+VRGkXNyDN0SrQSrRrFST56aLBhqe4BEO3l6JQJQ6h1y5aW7/R+y | ||
ehV9HIQd+RFgcyejStXJnXYC7lPycOjT4SGG/7mOZkOIbRmJAkEA8NwHvvxsLW77 | ||
UwVto7us0oR0Ey8/vCgbEruZTdr+rVeOKKUvM4K1r4hMunXc2kJ+hhYYMoF2wfIv | ||
gpPq1F+GLQJBAM4PFV8pL+fLqQqoRh/2dGDBKQU5wlQS+A4sTAPTdy3V1zx3BE8s | ||
KJeYIk2Z72HqNLAL/LUC/gwKwuVg+3k0v+cCQQC2HZhZxyDAZabwSi1xXMk6z924 | ||
V8R4L1bxHhm3bXudc5NQlj2PVCiuFX/2iIG6IgbqubAIGC3ETauwrskjVSrtAkEA | ||
gltgddcki0t4IVnbIxVTAnKwdLHZkj591tmHLVR2LPT/OS1B+KRC+cQwz0729cao | ||
lka/E/RUq2GTcnEsJb2NOQJAOHwXsZJj+qrMQmHmmej6X2Rro4bX7cJmyK99mAtC | ||
LigiSdiY/uDqJ/p+cHPH9g2RLWeFetUAZID94uNRk1peAg== | ||
-----END RSA PRIVATE KEY----- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# Acquire Postgres Package Manager by BigSQL | ||
powershell -c "Invoke-Expression ((New-Object Net.WebClient).DownloadString('https://s3.amazonaws.com/pgcentral/install.ps1'))"; | ||
|
||
# Install PostgreSQL | ||
bigsql/pgc list | ||
bigsql/pgc install pg11 | ||
|
||
# Install PostGIS | ||
bigsql/pgc list --extensions pg11 | ||
bigsql/pgc install postgis25-pg11 | ||
|
||
# Initialize PostgreSQL | ||
bigsql/pg11/bin/initdb -D PGDATA -E UTF8 -U postgres | ||
|
||
# Configure PostgreSQL | ||
cp .build/docker/server.crt PGDATA/ | ||
cp .build/docker/server.key PGDATA/ | ||
|
||
# Start PostgreSQL | ||
bigsql/pg11/bin/pg_ctl -D PGDATA -l logfile -o '-c max_prepared_transactions=10 -c ssl=true' start | ||
|
||
# Configure domain account | ||
bigsql/pg11/bin/psql -U postgres -c "CREATE ROLE vsts SUPERUSER LOGIN" | ||
bigsql/pg11/bin/psql -U postgres -c "CREATE DATABASE vsts OWNER vsts" | ||
|
||
# Configure test account | ||
bigsql/pg11/bin/psql -U postgres -c "CREATE ROLE npgsql_tests SUPERUSER LOGIN PASSWORD 'npgsql_tests'" | ||
bigsql/pg11/bin/psql -U postgres -c "CREATE DATABASE npgsql_tests OWNER npgsql_tests" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,3 +15,4 @@ artifacts/ | |
# Roslyn cache directories | ||
*.ide/ | ||
TestResult.xml | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
<Project> | ||
<PropertyGroup Label="Package Versions"> | ||
<NpgsqlVersion>4.0.7</NpgsqlVersion> | ||
<EFCoreVersion>2.2.4</EFCoreVersion> | ||
<MicrosoftExtensionsVersion>2.2.0</MicrosoftExtensionsVersion> | ||
<PropertyGroup> | ||
<LangVersion>8.0</LangVersion> | ||
<SuppressNETCoreSdkPreviewMessage>true</SuppressNETCoreSdkPreviewMessage> | ||
<NoWarn>NU5105</NoWarn> | ||
<VersionPrefix>3.0.0</VersionPrefix> | ||
</PropertyGroup> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<Project> | ||
<ItemGroup> | ||
<PackageReference Update="Microsoft.EntityFrameworkCore" Version="3.0.0" /> | ||
<PackageReference Update="Microsoft.EntityFrameworkCore.Relational" Version="3.0.0" /> | ||
<PackageReference Update="Microsoft.EntityFrameworkCore.Abstractions" Version="3.0.0" /> | ||
<PackageReference Update="Microsoft.EntityFrameworkCore.Relational.Specification.Tests" Version="3.0.0" /> | ||
<PackageReference Update="Microsoft.EntityFrameworkCore.Design" Version="3.0.0" /> | ||
|
||
<PackageReference Update="Microsoft.Extensions.Configuration.Json" Version="3.0.0" /> | ||
<PackageReference Update="Microsoft.Extensions.Configuration.EnvironmentVariables" Version="3.0.0" /> | ||
<PackageReference Update="Microsoft.Extensions.Logging" Version="3.0.0" /> | ||
|
||
<PackageReference Update="Npgsql" Version="4.1.0" /> | ||
<PackageReference Update="Npgsql.NodaTime" Version="4.1.0" /> | ||
<PackageReference Update="Npgsql.NetTopologySuite" Version="4.1.0" /> | ||
|
||
<PackageReference Update="Microsoft.NET.Test.Sdk" Version="16.3.0" /> | ||
<PackageReference Update="xunit.core" Version="2.4.1" /> | ||
<PackageReference Update="xunit.assert" Version="2.4.1" /> | ||
<PackageReference Update="xunit.runner.visualstudio" Version="2.4.1" /> | ||
</ItemGroup> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.