Загрузить файлы в «test»
This commit is contained in:
parent
6fd7d9a5c3
commit
2a80b87bda
15
test/Dockerfile
Normal file
15
test/Dockerfile
Normal file
@ -0,0 +1,15 @@
|
||||
ARG ENGINE_VERSION=5.7.0
|
||||
FROM registry.gitlab.com/minetest/minetest/server:${ENGINE_VERSION}
|
||||
|
||||
# copy old v1 maildb for migration testing
|
||||
COPY ./mail.db /root/.minetest/worlds/world/mail.db
|
||||
# copy old v2 mail-dir and auth.sqlite for migration testing
|
||||
COPY ./old_v2_player.json /root/.minetest/worlds/world/mails/
|
||||
COPY ./auth.sqlite /root/.minetest/worlds/world/auth.sqlite
|
||||
|
||||
USER root
|
||||
RUN apk add git &&\
|
||||
mkdir -p /root/.minetest/worlds/world/worldmods/ &&\
|
||||
git clone https://github.com/BuckarooBanzay/mtt /root/.minetest/worlds/world/worldmods/mtt
|
||||
|
||||
ENTRYPOINT minetestserver --config /minetest.conf
|
BIN
test/auth.sqlite
Normal file
BIN
test/auth.sqlite
Normal file
Binary file not shown.
1
test/mail.db
Normal file
1
test/mail.db
Normal file
@ -0,0 +1 @@
|
||||
local _={};_[1]="singleplayer";return {old_v1_player={{unread=true,subject="test1",sender=_[1],body="test2"}},[_[1]]={}}
|
4
test/minetest.conf
Normal file
4
test/minetest.conf
Normal file
@ -0,0 +1,4 @@
|
||||
default_game = minetest_game
|
||||
mg_name = v7
|
||||
mtt_enable = true
|
||||
mtt_filter = mail
|
1
test/old_v2_player.json
Normal file
1
test/old_v2_player.json
Normal file
@ -0,0 +1 @@
|
||||
[{"body":"test2","sender":"someone-else","subject":"test1","time":1678467148,"unread":false}]
|
Loading…
Reference in New Issue
Block a user