70a64e3709
Freeze the running offline FUT backend into version control as fifa17-recon/docker/fifa17-python/ - declarative and rebuildable from a fresh checkout: * OPENFUT_BIND / OPENFUT_ADVERTISE client/server split in the responders (lsx, blaze, roster, utas, pow) + entrypoint.sh; OPENFUT_ADVERTISE is required for remote mode (compose and entrypoint fail without it) * docker-compose.yml reproducing the frozen baseline container exactly (env, ports incl. the 8085->8080 POW-content remap, /state bind, restart) * .env.example / .env for site config - the LAN IP is never hardcoded in source * tools/ + data/ staged from openfut-fut-backend:python-baseline-2026-08-10, verified byte-identical to the running container at freeze time * client_arm.sh (the 105 client-side arming counterpart) * Dockerfile bakes /app/SHA256SUMS.txt so any image is self-identifying * docs/BASELINE-python-2026-08-10.md: frozen image/container/hash record, restore instructions and rebuild-equivalence procedure Secrets (redir key/cert, .env) and runtime state (docker/state) stay gitignored. The live container is untouched pending the .105 launcher audit.
44 lines
2.0 KiB
Docker
44 lines
2.0 KiB
Docker
# OpenFUT FIFA-17 FUT backend — Python migration deployment (fifa17-python/).
|
|
#
|
|
# Runs the 5 network responders (LSX / Blaze / roster / UTAS / POW) that FIFA 17
|
|
# dials to reach the FUT hub. Pure-Python; the only third-party dep is
|
|
# pycryptodome (LSX AES handshake). autopatch.py is intentionally NOT run here —
|
|
# it patches the game process memory and belongs on the client (105).
|
|
#
|
|
# Build context is this directory (fifa17-python/): tools/ and data/ are the
|
|
# authoritative deployment sources, staged from the frozen baseline image
|
|
# openfut-fut-backend:python-baseline-2026-08-10 (see docs/BASELINE-*.md). A
|
|
# SHA256SUMS.txt is baked into the image so any running backend can be matched
|
|
# to the exact dataset it was built from.
|
|
FROM python:3.12-slim
|
|
|
|
RUN pip install --no-cache-dir pycryptodome==3.20.0
|
|
|
|
WORKDIR /app
|
|
COPY tools/ /app/tools/
|
|
COPY data/ /app/data/
|
|
|
|
# Redirector TLS cert (CN/SAN = winter15.gosredirector.ea.com). ProtoSSL
|
|
# cert-verify is patched client-side, so a self-signed cert is fine. The staged
|
|
# pair is git-ignored (*.pem/*.key); regenerate if absent so a fresh checkout
|
|
# builds without extra steps.
|
|
RUN if [ ! -s tools/redir_cert.pem ] || [ ! -s tools/redir_key.pem ]; then \
|
|
apt-get update && apt-get install -y --no-install-recommends openssl && \
|
|
openssl req -x509 -newkey rsa:2048 -nodes \
|
|
-keyout tools/redir_key.pem -out tools/redir_cert.pem \
|
|
-days 3650 -subj "/CN=winter15.gosredirector.ea.com" \
|
|
-addext "subjectAltName=DNS:winter15.gosredirector.ea.com,DNS:*.gosredirector.ea.com,DNS:*.ea.com" && \
|
|
rm -rf /var/lib/apt/lists/*; \
|
|
fi
|
|
|
|
# Bake a dataset manifest so every image is self-identifying.
|
|
RUN find /app/tools /app/data -type f | LC_ALL=C sort | xargs sha256sum > /app/SHA256SUMS.txt
|
|
|
|
COPY entrypoint.sh /app/entrypoint.sh
|
|
RUN chmod +x /app/entrypoint.sh
|
|
|
|
# LSX 4216 | Blaze redir/main/nucleus 42127/42130/42131 | roster 8081 | UTAS 8099 | POW 8094/8080
|
|
EXPOSE 4216 42127 42130 42131 8081 8099 8094 8080
|
|
|
|
ENTRYPOINT ["/app/entrypoint.sh"]
|