Skip to content

Commit 4a8eeda

Browse files
authored
YDB FQ: Use --tmpfs flag when running docker containers (#8951)
1 parent 4f839b4 commit 4a8eeda

File tree

7 files changed

+62
-36
lines changed

7 files changed

+62
-36
lines changed

ydb/library/yql/providers/generic/connector/tests/datasource/clickhouse/docker-compose.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,17 @@ services:
88
CLICKHOUSE_USER: user
99
image: mirror.gcr.io/clickhouse/clickhouse-server:23-alpine@sha256:d75017307e76d1bca81a5ac7ada94620567782c0610541f525d1e443e23f76e3
1010
ports:
11-
- 9000
12-
- 8123
11+
- 9000
12+
- 8123
13+
tmpfs:
14+
- /run
15+
- /tmp
16+
- /var
1317
fq-connector-go:
1418
container_name: fq-tests-ch-fq-connector-go
1519
image: ghcr.io/ydb-platform/fq-connector-go:v0.5.8-rc.2@sha256:12d15f2e82608bc4e64fa91c549361c587754aeb0e6c6a2cee749caebb11baf8
1620
ports:
17-
- 2130
21+
- 2130
1822
volumes:
19-
- ../../fq-connector-go/:/opt/ydb/cfg/
23+
- ../../fq-connector-go/:/opt/ydb/cfg/
2024
version: "3.4"

ydb/library/yql/providers/generic/connector/tests/datasource/ms_sql_server/docker-compose.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ services:
33
container_name: fq-tests-mssql-fq-connector-go
44
image: ghcr.io/ydb-platform/fq-connector-go:v0.5.8-rc.2@sha256:12d15f2e82608bc4e64fa91c549361c587754aeb0e6c6a2cee749caebb11baf8
55
ports:
6-
- 2130
6+
- 2130
77
volumes:
8-
- ../../fq-connector-go/:/opt/ydb/cfg/
8+
- ../../fq-connector-go/:/opt/ydb/cfg/
99
ms_sql_server:
1010
build:
1111
context: ./init
@@ -17,5 +17,5 @@ services:
1717
LANG: ru_RU.UTF-8
1818
SA_PASSWORD: Qwerty12345!
1919
ports:
20-
- 1433:1433
20+
- 1433:1433
2121
version: "3.4"

ydb/library/yql/providers/generic/connector/tests/datasource/mysql/docker-compose.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,22 @@ services:
33
container_name: fq-tests-mysql-fq-connector-go
44
image: ghcr.io/ydb-platform/fq-connector-go:v0.5.8-rc.2@sha256:12d15f2e82608bc4e64fa91c549361c587754aeb0e6c6a2cee749caebb11baf8
55
ports:
6-
- 2130
6+
- 2130
77
volumes:
8-
- ../../fq-connector-go/:/opt/ydb/cfg/
8+
- ../../fq-connector-go/:/opt/ydb/cfg/
99
mysql:
1010
container_name: fq-tests-mysql-mysql
1111
environment:
1212
MYSQL_DATABASE: db
1313
MYSQL_ROOT_PASSWORD: password
1414
image: mirror.gcr.io/library/mysql@sha256:1579fe3a97a436cc10824fc771a07fcedc92213e7ab7604eb5d2976ca419abc8
1515
ports:
16-
- 3306
16+
- 3306
1717
volumes:
18-
- ./init:/docker-entrypoint-initdb.d
19-
- ./custom.cnf:/etc/mysql/conf.d/custom.cnf
18+
- ./init:/docker-entrypoint-initdb.d
19+
- ./custom.cnf:/etc/mysql/conf.d/custom.cnf
20+
tmpfs:
21+
- /run
22+
- /tmp
23+
- /var
2024
version: "3.4"

ydb/library/yql/providers/generic/connector/tests/datasource/oracle/docker-compose.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,17 @@ services:
33
container_name: fq-tests-oracle-fq-connector-go
44
image: ghcr.io/ydb-platform/fq-connector-go:v0.5.8-rc.2@sha256:12d15f2e82608bc4e64fa91c549361c587754aeb0e6c6a2cee749caebb11baf8
55
ports:
6-
- 2130
6+
- 2130
77
volumes:
8-
- ../../fq-connector-go/:/opt/ydb/cfg/
8+
- ../../fq-connector-go/:/opt/ydb/cfg/
99
oracle:
1010
container_name: fq-tests-oracle-oracle
1111
environment:
1212
ORACLE_PWD: password
1313
TEST_USER_NAME: C##ADMIN
1414
image: container-registry.oracle.com/database/free:latest@sha256:83edd0756fda0e5faecc0fdf047814f0177d4224d7bf037e4900123ee3e08718
1515
ports:
16-
- 1521
16+
- 1521
1717
volumes:
18-
- ./init/startup:/opt/oracle/scripts/startup
18+
- ./init/startup:/opt/oracle/scripts/startup
1919
version: "3.4"

ydb/library/yql/providers/generic/connector/tests/datasource/postgresql/docker-compose.yml

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,24 +3,28 @@ services:
33
container_name: fq-tests-pg-fq-connector-go
44
image: ghcr.io/ydb-platform/fq-connector-go:v0.5.8-rc.2@sha256:12d15f2e82608bc4e64fa91c549361c587754aeb0e6c6a2cee749caebb11baf8
55
ports:
6-
- 2130
6+
- 2130
77
volumes:
8-
- ../../fq-connector-go/:/opt/ydb/cfg/
8+
- ../../fq-connector-go/:/opt/ydb/cfg/
99
postgresql:
1010
command:
11-
- postgres
12-
- -c
13-
- log_statement=all
14-
- -c
15-
- log_connections=on
16-
- -c
17-
- log_disconnections=on
11+
- postgres
12+
- -c
13+
- log_statement=all
14+
- -c
15+
- log_connections=on
16+
- -c
17+
- log_disconnections=on
1818
container_name: fq-tests-pg-postgresql
1919
environment:
2020
POSTGRES_DB: db
2121
POSTGRES_PASSWORD: password
2222
POSTGRES_USER: user
2323
image: mirror.gcr.io/library/postgres:15-bullseye@sha256:2e89ed90224245851ea2b01e0b20c4b893e69141eb36e7a1cece7fb9e19f21f0
2424
ports:
25-
- 5432
25+
- 5432
26+
tmpfs:
27+
- /run
28+
- /tmp
29+
- /var
2630
version: "3.4"

ydb/library/yql/providers/generic/connector/tests/datasource/ydb/docker-compose.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,19 @@ services:
77
container_name: fq-tests-ydb-fq-connector-go
88
image: ghcr.io/ydb-platform/fq-connector-go:v0.5.8-rc.2@sha256:12d15f2e82608bc4e64fa91c549361c587754aeb0e6c6a2cee749caebb11baf8
99
ports:
10-
- 2130
10+
- 2130
1111
volumes:
12-
- ../../fq-connector-go/:/opt/ydb/cfg/
12+
- ../../fq-connector-go/:/opt/ydb/cfg/
1313
ydb:
1414
container_name: fq-tests-ydb-ydb
1515
environment:
1616
POSTGRES_PASSWORD: password
1717
POSTGRES_USER: user
1818
YDB_DEFAULT_LOG_LEVEL: DEBUG
19+
DB_USE_IN_MEMORY_PDISKS: "true"
1920
hostname: fq-tests-ydb-ydb
2021
image: ghcr.io/ydb-platform/local-ydb:latest@sha256:9045e00afec1923dc3277564c7b2f829087c2115f45f18e1d38b80bb89f98be6
2122
volumes:
22-
- ./init/init_ydb:/init_ydb
23-
- ./init/01_basic.sh:/01_basic.sh
23+
- ./init/init_ydb:/init_ydb
24+
- ./init/01_basic.sh:/01_basic.sh
2425
version: "3.4"

ydb/tests/fq/generic/docker-compose.yml

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,11 @@ services:
88
CLICKHOUSE_USER: user
99
image: clickhouse/clickhouse-server:23-alpine@sha256:b078c1cd294632afa2aeba3530e7ba2e568513da23304354f455a25fab575c06
1010
volumes:
11-
- ./clickhouse:/docker-entrypoint-initdb.d
11+
- ./clickhouse:/docker-entrypoint-initdb.d
12+
tmpfs:
13+
- /run
14+
- /tmp
15+
- /var
1216
fq-connector-go:
1317
command: |
1418
sh -c "
@@ -17,12 +21,16 @@ services:
1721
container_name: tests-fq-generic-fq-connector-go
1822
image: ghcr.io/ydb-platform/fq-connector-go:v0.5.8-rc.2@sha256:12d15f2e82608bc4e64fa91c549361c587754aeb0e6c6a2cee749caebb11baf8
1923
ports:
20-
- "2130"
24+
- "2130"
2125
greenplum:
2226
container_name: tests-fq-generic-greenplum
2327
image: ghcr.io/ydb-platform/fq-connector-go_greenplum:6.25.3-6432@sha256:9e862b05719b289b447562fbce6c003916a764a549f924a4175eecd7e7891a0b
2428
volumes:
25-
- ./greenplum/init_db.sh:/init_db.sh
29+
- ./greenplum/init_db.sh:/init_db.sh
30+
tmpfs:
31+
- /run
32+
- /tmp
33+
- /var
2634
postgresql:
2735
command: -p 6432
2836
container_name: tests-fq-generic-postgresql
@@ -32,16 +40,21 @@ services:
3240
POSTGRES_USER: user
3341
image: postgres:15-bullseye@sha256:3411b9f2e5239cd7867f34fcf22fe964230f7d447a71d63c283e3593d3f84085
3442
volumes:
35-
- ./postgresql:/docker-entrypoint-initdb.d
43+
- ./postgresql:/docker-entrypoint-initdb.d
44+
tmpfs:
45+
- /run
46+
- /tmp
47+
- /var
3648
ydb:
3749
container_name: tests-fq-generic-ydb
3850
environment:
3951
POSTGRES_PASSWORD: password
4052
POSTGRES_USER: user
4153
YDB_DEFAULT_LOG_LEVEL: DEBUG
54+
DB_USE_IN_MEMORY_PDISKS: "true"
4255
hostname: tests-fq-generic-ydb
4356
image: ghcr.io/ydb-platform/local-ydb:latest@sha256:9045e00afec1923dc3277564c7b2f829087c2115f45f18e1d38b80bb89f98be6
4457
volumes:
45-
- ./ydb/init_ydb:/init_ydb
46-
- ./ydb/01_basic.sh:/01_basic.sh
58+
- ./ydb/init_ydb:/init_ydb
59+
- ./ydb/01_basic.sh:/01_basic.sh
4760
version: "3.4"

0 commit comments

Comments
 (0)