Skip to content

Commit 0876d1d

Browse files
authored
Alternatives databases and structure (#149)
1 parent f6035c6 commit 0876d1d

File tree

23 files changed

+276
-182
lines changed

23 files changed

+276
-182
lines changed

.eslintrc.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ module.exports = {
44
{
55
files: ["*.ts", "*.tsx"],
66
parserOptions: {
7-
project: ["./tsconfig.json"],
7+
project: ["./tsconfig.eslint.json"],
88
},
99
},
1010
],
@@ -20,7 +20,7 @@ module.exports = {
2020
"import/resolver": {
2121
typescript: {
2222
alwaysTryTypes: true, // always try to resolve types under `<root>@types` directory even it doesn't contain any source code, like `@types/unist`
23-
project: "./tsconfig.json", // Asegúrate de que este apunte a tu tsconfig.json
23+
project: "./tsconfig.eslint.json",
2424
},
2525
},
2626
},

Dockerfile

Lines changed: 26 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,15 @@ RUN git clone --depth 1 https://github.com/ProjectIgnis/CardScripts.git scripts
1111
git clone --depth 1 https://github.com/ProjectIgnis/LFLists banlists-project-ignis && \
1212
git clone --depth 1 https://github.com/termitaklk/lflist banlists-evolution && \
1313
git clone --depth 1 https://github.com/mycard/ygopro-scripts.git mercury-scripts && \
14+
git clone --depth 1 https://code.moenext.com/mycard/pre-release-database-cdb.git mercury-prerelases && \
15+
git clone --depth 1 https://github.com/evolutionygo/server-formats-cdb.git alternatives && \
1416
wget -O mercury-lflist.conf https://raw.githubusercontent.com/termitaklk/koishi-Iflist/main/lflist.conf && \
1517
wget -O mercury-cards.cdb https://github.com/purerosefallen/ygopro/raw/server/cards.cdb
1618

17-
RUN mkdir banlists
19+
RUN mkdir banlists mercury-pre-releases-cdbs
1820
RUN mv banlists-project-ignis/* banlists/
1921
RUN mv banlists-evolution/* banlists/
22+
RUN find mercury-prerelases -name "*.cdb" -exec cp {} mercury-pre-releases-cdbs/ \;
2023

2124
RUN conan profile detect
2225

@@ -51,20 +54,24 @@ RUN npm run build && \
5154

5255
FROM public.ecr.aws/docker/library/node:22.11.0-slim
5356

54-
RUN apt-get update && apt-get install -y curl git && apt-get install -y liblua5.3-dev libsqlite3-dev libevent-dev dumb-init
57+
RUN apt-get update && apt-get install -y curl git wget && apt-get install -y liblua5.3-dev libsqlite3-dev libevent-dev dumb-init
5558

5659
WORKDIR /app
5760

5861
COPY certs ./certs
5962

63+
# Server
6064
COPY --from=server-builder /server/dist ./
6165
COPY --from=server-builder /server/package.json ./package.json
6266
COPY --from=server-builder /server/node_modules ./node_modules
6367
COPY --from=server-builder /server/mercury ./mercury
6468
COPY --from=core-integrator-builder /app/libocgcore.so ./core/libocgcore.so
6569
COPY --from=core-integrator-builder /app/CoreIntegrator ./core/CoreIntegrator
70+
# Evolution Resources
6671
COPY --from=core-integrator-builder /repositories/scripts ./scripts/evolution/
6772
COPY --from=core-integrator-builder /repositories/databases ./databases/evolution/
73+
COPY --from=core-integrator-builder /repositories/mercury-pre-releases-cdbs ./databases/mercury/pre-releases
74+
COPY --from=core-integrator-builder /repositories/mercury-cards.cdb ./databases/mercury
6875
COPY --from=core-integrator-builder /repositories/banlists ./banlists/evolution/
6976
## Mercury
7077
COPY --from=core-integrator-builder /repositories/mercury-scripts ./mercury/script
@@ -73,11 +80,24 @@ COPY --from=core-integrator-builder /repositories/mercury-cards.cdb ./mercury/ca
7380
## Mercury Pre releases
7481
COPY --from=core-integrator-builder /repositories/mercury-scripts ./mercury/pre-releases/script
7582
COPY --from=core-integrator-builder /repositories/mercury-lflist.conf ./mercury/pre-releases/lflist.conf
76-
COPY --from=core-integrator-builder /repositories/mercury-cards.cdb ./mercury/pre-releases/cards.cdb
83+
COPY --from=core-integrator-builder /repositories/mercury-prerelases/script/ ./mercury/pre-releases/script/
7784
## Mercury Alternatives
78-
COPY --from=core-integrator-builder /repositories/mercury-scripts ./mercury/alternatives/script
79-
COPY --from=core-integrator-builder /repositories/mercury-lflist.conf ./mercury/alternatives/lflist.conf
80-
COPY --from=core-integrator-builder /repositories/mercury-cards.cdb ./mercury/alternatives/cards.cdb
85+
COPY --from=core-integrator-builder /repositories/alternatives ./mercury/alternatives
86+
RUN for dir in ./mercury/alternatives/*/; do \
87+
cp -r ./mercury/script/* "$dir"/script; \
88+
cp -r ./mercury/ygopro "$dir"; \
89+
done
90+
91+
RUN wget -O ./mercury/alternatives/edison/lflist.conf 'https://raw.githubusercontent.com/termitaklk/lflist/refs/heads/main/2010.03%20Edison(PreErrata).lflist.conf'
92+
RUN wget -O ./mercury/alternatives/hat/lflist.conf 'https://raw.githubusercontent.com/termitaklk/lflist/refs/heads/main/2014.4%20HAT.lflist.conf'
93+
RUN wget -O ./mercury/alternatives/jtp/lflist.conf 'https://raw.githubusercontent.com/termitaklk/lflist/refs/heads/main/jtp-oficial.lflist.conf'
94+
RUN wget -O ./mercury/alternatives/goat/lflist.conf 'https://raw.githubusercontent.com/ProjectIgnis/LFLists/refs/heads/master/GOAT.lflist.conf'
95+
RUN wget -O ./mercury/alternatives/gx/lflist.conf 'https://raw.githubusercontent.com/termitaklk/lflist/refs/heads/main/2008.03%20GX.lflist.conf'
96+
RUN wget -O ./mercury/alternatives/mdc/lflist.conf 'https://raw.githubusercontent.com/termitaklk/lflist/refs/heads/main/mdc.lflist.conf'
97+
RUN wget -O ./mercury/alternatives/rush/lflist.conf 'https://raw.githubusercontent.com/ProjectIgnis/LFLists/refs/heads/master/Rush.lflist.conf'
98+
RUN wget -O ./mercury/alternatives/speed/lflist.conf 'https://raw.githubusercontent.com/ProjectIgnis/LFLists/refs/heads/master/Speed.lflist.conf'
99+
RUN wget -O ./mercury/alternatives/tengu/lflist.conf 'https://raw.githubusercontent.com/termitaklk/lflist/refs/heads/main/Tengu.Plant.lflist.conf'
100+
RUN wget -O ./mercury/alternatives/world/lflist.conf 'https://raw.githubusercontent.com/ProjectIgnis/LFLists/refs/heads/master/World.lflist.conf'
81101

82102
EXPOSE 4000 7711 7911 7922
83103
USER $USER

mercury/alternatives/edison/script

Lines changed: 0 additions & 1 deletion
This file was deleted.

mercury/alternatives/goat/script

Lines changed: 0 additions & 1 deletion
This file was deleted.

mercury/alternatives/gx/script

Lines changed: 0 additions & 1 deletion
This file was deleted.

mercury/alternatives/hat/script

Lines changed: 0 additions & 1 deletion
This file was deleted.

mercury/alternatives/jtp/script

Lines changed: 0 additions & 1 deletion
This file was deleted.

mercury/alternatives/mdc/script

Lines changed: 0 additions & 1 deletion
This file was deleted.

mercury/alternatives/rush/script

Lines changed: 0 additions & 1 deletion
This file was deleted.

mercury/alternatives/speed/script

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)