-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
syncing up to b586f43613bfd4d506567ff04cbf1016b50e075e
Co-authored-by: Dan LaMotte <dlamotte@superblockshq.com>
- Loading branch information
1 parent
b4b2eb5
commit bcc4a43
Showing
19 changed files
with
422 additions
and
8 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
.env |
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,149 @@ | ||
--- | ||
version: "3.7" | ||
services: | ||
bastion: | ||
image: ghcr.io/superblocksteam/binlab/bastion-mirror:1.2.0 | ||
container_name: bastion | ||
hostname: bastion | ||
restart: always | ||
expose: | ||
- 22/tcp | ||
ports: | ||
- 22222:22/tcp | ||
environment: | ||
PUBKEY_AUTHENTICATION: "true" | ||
GATEWAY_PORTS: "false" | ||
PERMIT_TUNNEL: "false" | ||
X11_FORWARDING: "false" | ||
TCP_FORWARDING: "true" | ||
AGENT_FORWARDING: "true" | ||
volumes: | ||
- ./scripts/keys/superblocks_key.pub:/var/lib/bastion/authorized_keys:ro | ||
- bastion:/usr/etc/ssh:rw | ||
networks: | ||
- vpcbastion | ||
command: ["sh", "./scripts/init-bastion.sh"] | ||
vpc-plugin-standard: | ||
image: ghcr.io/superblocksteam/alpine:3.19 | ||
command: ["sh", "/usr/local/bin/run.sh"] | ||
container_name: vpc-plugin-standard | ||
volumes: | ||
- ./scripts/setup-vpc-plugin.sh:/usr/local/bin/run.sh | ||
networks: | ||
- vpcstandard | ||
ports: | ||
- 13306:13306/tcp | ||
- 15432:15432/tcp | ||
- 23306:23306/tcp | ||
- 1433:1433/tcp | ||
- 61379:61379/tcp | ||
- 58703:58703/tcp | ||
vpc-plugin-tunnel: | ||
image: ghcr.io/superblocksteam/alpine:3.19 | ||
command: ["sh", "/usr/local/bin/run.sh"] | ||
container_name: vpc-plugin-tunnel | ||
volumes: | ||
- ./scripts/setup-vpc-plugin-tunnel.sh:/usr/local/bin/run.sh | ||
networks: | ||
- vpcbastion | ||
plugin-postgres: | ||
image: ghcr.io/superblocksteam/postgres-mirror:15.4 | ||
container_name: plugin-postgres | ||
environment: | ||
- POSTGRES_USER=postgres | ||
- POSTGRES_PASSWORD=password | ||
- POSTGRES_DB=postgres | ||
volumes: | ||
- ./scripts/initPostgres.sql:/docker-entrypoint-initdb.d/init.sql | ||
- postgres-data:/var/lib/postgresql/data | ||
networks: | ||
- vpcstandard | ||
- vpcbastion | ||
plugin-mysql: | ||
image: ghcr.io/superblocksteam/mysql-mirror:8.0 | ||
container_name: plugin-mysql | ||
environment: | ||
- MYSQL_ROOT_PASSWORD=password | ||
- MYSQL_DATABASE=public | ||
- MYSQL_USER=mysql | ||
- MYSQL_PASSWORD=password | ||
volumes: | ||
- ./scripts/initMySql.sql:/docker-entrypoint-initdb.d/init.sql | ||
- mysql-data:/var/lib/mysql | ||
networks: | ||
- vpcstandard | ||
- vpcbastion | ||
healthcheck: | ||
test: ["CMD", "mysqladmin", "ping", "-h", "localhost"] | ||
timeout: 20s | ||
retries: 10 | ||
plugin-mariadb: | ||
image: ghcr.io/superblocksteam/mariadb:11.5 | ||
container_name: plugin-mariadb | ||
environment: | ||
- MARIADB_ROOT_PASSWORD=password | ||
- MARIADB_DATABASE=public | ||
- MARIADB_USER=mariadb | ||
- MARIADB_PASSWORD=password | ||
volumes: | ||
- ./scripts/initMariaDb.sql:/docker-entrypoint-initdb.d/init.sql | ||
- mariadb-data:/var/lib/mysql | ||
networks: | ||
- vpcstandard | ||
- vpcbastion | ||
healthcheck: | ||
test: ["CMD", "mariadb-admin", "ping", "-h", "localhost"] | ||
interval: 30s | ||
timeout: 60s | ||
start_period: 60s | ||
retries: 5 | ||
plugin-mssql: | ||
image: mcr.microsoft.com/mssql/server:2022-latest | ||
container_name: plugin-mssql | ||
environment: | ||
- ACCEPT_EULA=Y | ||
- MSSQL_SA_PASSWORD=Password1. | ||
volumes: | ||
- ./scripts/initMsSql.sql:/docker-entrypoint-initdb.d/init.sql | ||
- mssql-data:/var/opt/mssql | ||
networks: | ||
- vpcstandard | ||
- vpcbastion | ||
plugin-mongodb: | ||
image: mongo:latest | ||
ports: | ||
- "27017:27017" | ||
environment: | ||
- MONGO_INITDB_ROOT_USERNAME=root | ||
- MONGO_INITDB_ROOT_PASSWORD=example | ||
plugin-redis: | ||
# redis-cli -h 127.0.0.1 -p 61379 -a pass | ||
image: ghcr.io/superblocksteam/redis-mirror:7 | ||
container_name: plugin-redis | ||
volumes: | ||
- ./scripts/redis.conf:/usr/local/etc/redis/redis.conf | ||
- redis-data:/data | ||
networks: | ||
- vpcstandard | ||
- vpcbastion | ||
command: redis-server /usr/local/etc/redis/redis.conf | ||
plugin-smtp: | ||
image: ghcr.io/superblocksteam/python-mirror:3.9.11 | ||
container_name: plugin-smtp | ||
networks: | ||
- vpcstandard | ||
- vpcbastion | ||
command: bash -c "python -m smtpd -n -c DebuggingServer 0.0.0.0:58703" | ||
volumes: | ||
postgres-tunnel-data: | ||
postgres-data: | ||
mysql-data: | ||
mariadb-data: | ||
mssql-data: | ||
redis-data: | ||
bastion: | ||
networks: | ||
vpcbastion: | ||
driver: bridge | ||
vpcstandard: | ||
driver: bridge |
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,8 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -e | ||
|
||
op item get "plugins/.env" --fields 'notesPlain' --format json | jq -r .value > gcs/.env | ||
op item get "k8s-secret-dev-plugins-salesforce-env" --fields 'notesPlain' --format json | jq -r .value > salesforce/.env | ||
op item get "k8s-secret-dev-plugins-openai-env" --fields 'notesPlain' --format json | jq -r .value > openai/.env | ||
op item get "k8s-secret-dev-plugins-superblocks-ocr-env" --fields 'notesPlain' --format json | jq -r .value > superblocks-ocr/.env |
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
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
49 changes: 49 additions & 0 deletions
49
workers/javascript/packages/plugins/scripts/initMariaDb.sql
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,49 @@ | ||
DROP DATABASE IF EXISTS public; | ||
|
||
CREATE DATABASE public; | ||
|
||
USE public; | ||
|
||
DROP TABLE IF EXISTS mytable; | ||
DROP TABLE IF EXISTS commacolumntable; | ||
DROP TABLE IF EXISTS mytable_nopk; | ||
DROP TABLE IF EXISTS MixedCaseTable; | ||
|
||
CREATE TABLE mytable ( | ||
id INT PRIMARY KEY AUTO_INCREMENT, | ||
name VARCHAR(100), | ||
age INT | ||
); | ||
|
||
INSERT INTO mytable (name, age) VALUES ('Frank Basil', 29); | ||
INSERT INTO mytable (name, age) VALUES ('Joey Antonio', 26); | ||
INSERT INTO mytable (name, age) VALUES ('Domi James', 19); | ||
|
||
CREATE TABLE commacolumntable ( | ||
id INT PRIMARY KEY AUTO_INCREMENT, | ||
`column,name` VARCHAR(255) | ||
); | ||
|
||
INSERT INTO commacolumntable (`column,name`) VALUES ('foo'); | ||
INSERT INTO commacolumntable (`column,name`) VALUES ('baz'); | ||
INSERT INTO commacolumntable (`column,name`) VALUES ('bar'); | ||
|
||
-- same as mytable but without a primary key | ||
CREATE TABLE mytable_nopk ( | ||
name VARCHAR(100), | ||
age INT | ||
); | ||
|
||
INSERT INTO mytable_nopk (name, age) VALUES ('Frank Basil', 29); | ||
INSERT INTO mytable_nopk (name, age) VALUES ('Joey Antonio', 26); | ||
INSERT INTO mytable_nopk (name, age) VALUES ('Domi James', 19); | ||
|
||
CREATE TABLE MixedCaseTable ( | ||
MixedPk SERIAL PRIMARY KEY, | ||
MixedName TEXT, | ||
ALLUPPER BOOLEAN, | ||
age INTEGER | ||
); | ||
|
||
INSERT INTO MixedCaseTable (MixedName, ALLUPPER, age) VALUES ('Frank Basil', 0, 29); | ||
INSERT INTO MixedCaseTable (MixedName, ALLUPPER, age) VALUES ('Joey Antonio', 1, 26); |
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,50 @@ | ||
BEGIN TRANSACTION; | ||
|
||
IF OBJECT_ID('dbo.mytable', 'U') IS NOT NULL | ||
DROP TABLE mytable; | ||
IF OBJECT_ID('dbo.commacolumntable', 'U') IS NOT NULL | ||
DROP TABLE commacolumntable; | ||
IF OBJECT_ID('dbo.mytable_nopk', 'U') IS NOT NULL | ||
DROP TABLE mytable_nopk; | ||
IF OBJECT_ID('dbo.MixedCaseTable', 'U') IS NOT NULL | ||
DROP TABLE "MixedCaseTable"; | ||
|
||
CREATE TABLE mytable ( | ||
id INT PRIMARY KEY IDENTITY(1,1), | ||
name NVARCHAR(MAX), | ||
age INT | ||
); | ||
|
||
INSERT INTO mytable (name, age) VALUES ('Frank Basil', 29); | ||
INSERT INTO mytable (name, age) VALUES ('Joey Antonio', 26); | ||
INSERT INTO mytable (name, age) VALUES ('Domi James', 19); | ||
|
||
CREATE TABLE commacolumntable ( | ||
id INT PRIMARY KEY IDENTITY(1,1), | ||
[column,name] NVARCHAR(MAX) | ||
); | ||
|
||
INSERT INTO commacolumntable ([column,name]) VALUES ('foo'); | ||
INSERT INTO commacolumntable ([column,name]) VALUES ('baz'); | ||
INSERT INTO commacolumntable ([column,name]) VALUES ('bar'); | ||
|
||
CREATE TABLE mytable_nopk ( | ||
name NVARCHAR(MAX), | ||
age INT | ||
); | ||
|
||
INSERT INTO mytable_nopk (name, age) VALUES ('Frank Basil', 29); | ||
INSERT INTO mytable_nopk (name, age) VALUES ('Joey Antonio', 26); | ||
INSERT INTO mytable_nopk (name, age) VALUES ('Domi James', 19); | ||
|
||
CREATE TABLE "MixedCaseTable" ( | ||
"MixedPk" INT PRIMARY KEY IDENTITY(1,1), | ||
"MixedName" NVARCHAR(MAX), | ||
"ALLUPPER" BIT, | ||
age INT | ||
); | ||
|
||
INSERT INTO "MixedCaseTable" ("MixedName", "ALLUPPER", age) VALUES ('Frank Basil', 0, 29); | ||
INSERT INTO "MixedCaseTable" ("MixedName", "ALLUPPER", age) VALUES ('Joey Antonio', 1, 26); | ||
|
||
COMMIT; |
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,49 @@ | ||
DROP DATABASE IF EXISTS public; | ||
|
||
CREATE DATABASE public; | ||
|
||
USE public; | ||
|
||
DROP TABLE IF EXISTS mytable; | ||
DROP TABLE IF EXISTS commacolumntable; | ||
DROP TABLE IF EXISTS mytable_nopk; | ||
DROP TABLE IF EXISTS MixedCaseTable; | ||
|
||
CREATE TABLE mytable ( | ||
id INT PRIMARY KEY AUTO_INCREMENT, | ||
name VARCHAR(100), | ||
age INT | ||
); | ||
|
||
INSERT INTO mytable (name, age) VALUES ('Frank Basil', 29); | ||
INSERT INTO mytable (name, age) VALUES ('Joey Antonio', 26); | ||
INSERT INTO mytable (name, age) VALUES ('Domi James', 19); | ||
|
||
CREATE TABLE commacolumntable ( | ||
id INT PRIMARY KEY AUTO_INCREMENT, | ||
`column,name` VARCHAR(255) | ||
); | ||
|
||
INSERT INTO commacolumntable (`column,name`) VALUES ('foo'); | ||
INSERT INTO commacolumntable (`column,name`) VALUES ('baz'); | ||
INSERT INTO commacolumntable (`column,name`) VALUES ('bar'); | ||
|
||
-- same as mytable but without a primary key | ||
CREATE TABLE mytable_nopk ( | ||
name VARCHAR(100), | ||
age INT | ||
); | ||
|
||
INSERT INTO mytable_nopk (name, age) VALUES ('Frank Basil', 29); | ||
INSERT INTO mytable_nopk (name, age) VALUES ('Joey Antonio', 26); | ||
INSERT INTO mytable_nopk (name, age) VALUES ('Domi James', 19); | ||
|
||
CREATE TABLE MixedCaseTable ( | ||
MixedPk SERIAL PRIMARY KEY, | ||
MixedName TEXT, | ||
ALLUPPER BOOLEAN, | ||
age INTEGER | ||
); | ||
|
||
INSERT INTO MixedCaseTable (MixedName, ALLUPPER, age) VALUES ('Frank Basil', 0, 29); | ||
INSERT INTO MixedCaseTable (MixedName, ALLUPPER, age) VALUES ('Joey Antonio', 1, 26); |
Oops, something went wrong.