-
Notifications
You must be signed in to change notification settings - Fork 350
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rename oldest to oldest-v7 and add oldest-v6
- Loading branch information
Showing
34 changed files
with
271 additions
and
63 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,26 @@ | ||
services: | ||
mariadb-oldest-v6: | ||
container_name: sequelize-mariadb-oldest-v6 | ||
image: mariadb:10.3 | ||
environment: | ||
MYSQL_DATABASE: sequelize_test | ||
MYSQL_USER: sequelize_test | ||
MYSQL_PASSWORD: sequelize_test | ||
MYSQL_ROOT_PASSWORD: sequelize_test | ||
ports: | ||
- 21103:3306 | ||
volumes: | ||
- mariadb-oldest-v6:/var/lib/mysql | ||
healthcheck: | ||
test: ["CMD", "mariadb-admin", "-usequelize_test", "-psequelize_test", "status"] | ||
interval: 3s | ||
timeout: 1s | ||
retries: 10 | ||
|
||
networks: | ||
default: | ||
name: sequelize-mariadb-oldest-v6-network | ||
|
||
volumes: | ||
mariadb-oldest-v6: | ||
name: sequelize-mariadb-oldest-v6-volume |
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,5 @@ | ||
#!/usr/bin/env bash | ||
set -Eeuxo pipefail # https://vaneyckt.io/posts/safer_bash_scripts_with_set_euxo_pipefail/ | ||
cd -P -- "$(dirname -- "${BASH_SOURCE[0]}")" # https://stackoverflow.com/a/17744637 | ||
|
||
docker compose -p sequelize-mariadb-oldest-v6 down --remove-orphans --volumes |
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
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,5 @@ | ||
#!/usr/bin/env bash | ||
set -Eeuxo pipefail # https://vaneyckt.io/posts/safer_bash_scripts_with_set_euxo_pipefail/ | ||
cd -P -- "$(dirname -- "${BASH_SOURCE[0]}")" # https://stackoverflow.com/a/17744637 | ||
|
||
docker compose -p sequelize-mariadb-oldest-v7 down --remove-orphans --volumes |
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 @@ | ||
#!/usr/bin/env bash | ||
set -Eeuxo pipefail # https://vaneyckt.io/posts/safer_bash_scripts_with_set_euxo_pipefail/ | ||
cd -P -- "$(dirname -- "${BASH_SOURCE[0]}")" # https://stackoverflow.com/a/17744637 | ||
|
||
docker compose -p sequelize-mariadb-oldest-v7 down --remove-orphans | ||
docker compose -p sequelize-mariadb-oldest-v7 up -d | ||
|
||
./../../wait-until-healthy.sh sequelize-mariadb-oldest-v7 | ||
|
||
docker exec sequelize-mariadb-oldest-v7 \ | ||
mariadb --host 127.0.0.1 --port 3306 -uroot -psequelize_test -e "GRANT ALL ON *.* TO 'sequelize_test'@'%' with grant option; FLUSH PRIVILEGES;" | ||
|
||
DIALECT=mariadb ts-node ../../check-connection.ts |
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,7 @@ | ||
#!/usr/bin/env bash | ||
set -Eeuxo pipefail # https://vaneyckt.io/posts/safer_bash_scripts_with_set_euxo_pipefail/ | ||
cd -P -- "$(dirname -- "${BASH_SOURCE[0]}")" # https://stackoverflow.com/a/17744637 | ||
|
||
docker compose -p sequelize-mariadb-oldest-v7 down --remove-orphans | ||
|
||
echo "Local oldest supported MariaDB instance stopped (if it was running)." |
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 @@ | ||
services: | ||
mssql-oldest-v6: | ||
container_name: sequelize-mssql-oldest-v6 | ||
# SQL Server 2014 does not have an image | ||
image: mcr.microsoft.com/mssql/server:2017-latest | ||
environment: | ||
ACCEPT_EULA: Y | ||
MSSQL_PID: Developer | ||
MSSQL_SA_PASSWORD: Password12! | ||
ports: | ||
- 22019:1433 | ||
volumes: | ||
- mssql-oldest-v6:/var/opt/mssql | ||
healthcheck: | ||
test: ["CMD", "/opt/mssql-tools/bin/sqlcmd", "-S", "localhost", "-U", "SA", "-P", "Password12!", "-l", "30", "-Q", "SELECT 1"] | ||
interval: 3s | ||
timeout: 1s | ||
retries: 10 | ||
|
||
networks: | ||
default: | ||
name: sequelize-mssql-oldest-v6-network | ||
|
||
volumes: | ||
mssql-oldest-v6: | ||
name: sequelize-mssql-oldest-v6-volume |
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
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,7 @@ | ||
#!/usr/bin/env bash | ||
set -Eeuxo pipefail # https://vaneyckt.io/posts/safer_bash_scripts_with_set_euxo_pipefail/ | ||
cd -P -- "$(dirname -- "${BASH_SOURCE[0]}")" # https://stackoverflow.com/a/17744637 | ||
|
||
docker compose -p sequelize-mssql-oldest-v6 down --remove-orphans | ||
|
||
echo "Local oldest-v6 supported MSSQL instance stopped (if it was running)." |
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
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 @@ | ||
#!/usr/bin/env bash | ||
set -Eeuxo pipefail # https://vaneyckt.io/posts/safer_bash_scripts_with_set_euxo_pipefail/ | ||
cd -P -- "$(dirname -- "${BASH_SOURCE[0]}")" # https://stackoverflow.com/a/17744637 | ||
|
||
docker compose -p sequelize-mssql-oldest-v7 down --remove-orphans | ||
docker compose -p sequelize-mssql-oldest-v7 up -d | ||
|
||
./../../wait-until-healthy.sh sequelize-mssql-oldest-v7 | ||
|
||
docker exec sequelize-mssql-oldest-v7 \ | ||
/opt/mssql-tools/bin/sqlcmd -S localhost -U SA -P "Password12!" -Q "CREATE DATABASE sequelize_test; ALTER DATABASE sequelize_test SET READ_COMMITTED_SNAPSHOT ON;" | ||
|
||
DIALECT=mssql ts-node ../../check-connection.ts |
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,26 @@ | ||
services: | ||
mysql-oldest-v6: | ||
container_name: sequelize-mysql-oldest-v6 | ||
image: mysql:5.7 | ||
environment: | ||
MYSQL_DATABASE: sequelize_test | ||
MYSQL_USER: sequelize_test | ||
MYSQL_PASSWORD: sequelize_test | ||
MYSQL_ROOT_PASSWORD: sequelize_test | ||
ports: | ||
- 20057:3306 | ||
volumes: | ||
- mysql-oldest-v6:/var/lib/mysql | ||
healthcheck: | ||
test: ["CMD", "mysqladmin", "-usequelize_test", "-psequelize_test", "status"] | ||
interval: 3s | ||
timeout: 1s | ||
retries: 10 | ||
|
||
networks: | ||
default: | ||
name: sequelize-mysql-oldest-v6-network | ||
|
||
volumes: | ||
mysql-oldest-v6: | ||
name: sequelize-mysql-oldest-v6-volume |
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
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
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,13 @@ | ||
#!/usr/bin/env bash | ||
set -Eeuxo pipefail # https://vaneyckt.io/posts/safer_bash_scripts_with_set_euxo_pipefail/ | ||
cd -P -- "$(dirname -- "${BASH_SOURCE[0]}")" # https://stackoverflow.com/a/17744637 | ||
|
||
docker compose -p sequelize-mysql-oldest-v7 down --remove-orphans | ||
docker compose -p sequelize-mysql-oldest-v7 up -d | ||
|
||
./../../wait-until-healthy.sh sequelize-mysql-oldest-v7 | ||
|
||
docker exec sequelize-mysql-oldest-v7 \ | ||
mysql --host 127.0.0.1 --port 3306 -uroot -psequelize_test -e "GRANT ALL ON *.* TO 'sequelize_test'@'%' with grant option; FLUSH PRIVILEGES;" | ||
|
||
DIALECT=mysql ts-node ../../check-connection.ts |
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,7 @@ | ||
#!/usr/bin/env bash | ||
set -Eeuxo pipefail # https://vaneyckt.io/posts/safer_bash_scripts_with_set_euxo_pipefail/ | ||
cd -P -- "$(dirname -- "${BASH_SOURCE[0]}")" # https://stackoverflow.com/a/17744637 | ||
|
||
docker compose -p sequelize-mysql-oldest-v7 down --remove-orphans | ||
|
||
echo "Local oldest supported MySQL instance stopped (if it was running)." |
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,25 @@ | ||
services: | ||
postgres-oldest-v6: | ||
container_name: sequelize-postgres-oldest-v6 | ||
image: postgis/postgis:9.5-2.5 | ||
environment: | ||
POSTGRES_USER: sequelize_test | ||
POSTGRES_PASSWORD: sequelize_test | ||
POSTGRES_DB: sequelize_test | ||
ports: | ||
- 23010:5432 | ||
volumes: | ||
- postgres-oldest-v6:/var/lib/postgresql/data | ||
healthcheck: | ||
test: ["CMD", "pg_isready", "-U", "sequelize_test"] | ||
interval: 3s | ||
timeout: 1s | ||
retries: 10 | ||
|
||
networks: | ||
default: | ||
name: sequelize-postgres-oldest-v6-network | ||
|
||
volumes: | ||
postgres-oldest-v6: | ||
name: sequelize-postgres-oldest-v6-volume |
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,5 @@ | ||
#!/usr/bin/env bash | ||
set -Eeuxo pipefail # https://vaneyckt.io/posts/safer_bash_scripts_with_set_euxo_pipefail/ | ||
cd -P -- "$(dirname -- "${BASH_SOURCE[0]}")" # https://stackoverflow.com/a/17744637 | ||
|
||
docker compose -p sequelize-postgres-oldest-v6 down --remove-orphans --volumes |
Oops, something went wrong.