integration test
This commit is contained in:
parent
4fb4acaa33
commit
0e9ffd406e
1
integration/.gitignore
vendored
Normal file
1
integration/.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
data
|
24
integration/docker-compose.yml
Normal file
24
integration/docker-compose.yml
Normal file
@ -0,0 +1,24 @@
|
||||
version: "2"
|
||||
|
||||
services:
|
||||
minetest:
|
||||
image: registry.rudin.io/x86/minetest:backport-0.4
|
||||
restart: always
|
||||
depends_on:
|
||||
- "postgres"
|
||||
volumes:
|
||||
- "./minetest:/data"
|
||||
command: minetestserver --config /data/minetest.conf --world /data/world/ --quiet
|
||||
ports:
|
||||
- "30000:30000/udp"
|
||||
|
||||
postgres:
|
||||
image: postgres
|
||||
restart: always
|
||||
ports:
|
||||
- "5432:5432"
|
||||
environment:
|
||||
POSTGRES_PASSWORD: enter
|
||||
volumes:
|
||||
- "./data/postgres:/var/lib/postgresql/data"
|
||||
|
3
integration/init.sh
Executable file
3
integration/init.sh
Executable file
@ -0,0 +1,3 @@
|
||||
docker-compose exec postgres psql -U postgres -c "create database minetest;"
|
||||
docker-compose exec postgres psql -U postgres -c "create database tiles;"
|
||||
|
1
integration/minetest/.gitignore
vendored
Normal file
1
integration/minetest/.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
world
|
1010
integration/minetest/minetest.conf
Normal file
1010
integration/minetest/minetest.conf
Normal file
File diff suppressed because it is too large
Load Diff
8
integration/minetest/world.mt.template
Normal file
8
integration/minetest/world.mt.template
Normal file
@ -0,0 +1,8 @@
|
||||
gameid = minetest
|
||||
backend = postgresql
|
||||
creative_mode = false
|
||||
enable_damage = true
|
||||
player_backend = postgresql
|
||||
pgsql_connection = host=postgres port=5432 user=postgres password=enter dbname=minetest
|
||||
pgsql_player_connection = host=postgres port=5432 user=postgres password=enter dbname=minetest
|
||||
|
1
integration/psql-minetest.sh
Executable file
1
integration/psql-minetest.sh
Executable file
@ -0,0 +1 @@
|
||||
docker-compose exec postgres psql -U postgres minetest
|
1
integration/psql-tiles.sh
Executable file
1
integration/psql-tiles.sh
Executable file
@ -0,0 +1 @@
|
||||
docker-compose exec postgres psql -U postgres tiles
|
Loading…
x
Reference in New Issue
Block a user