-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b8cbaaf
commit 00210d3
Showing
43 changed files
with
13,902 additions
and
450 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,51 @@ | ||
FROM ubuntu:23.04 AS build-stage | ||
|
||
RUN apt-get update && apt-get install -y libgeoip-dev libmysqlclient-dev build-essential && apt-get clean | ||
|
||
COPY gslist /gslist | ||
|
||
WORKDIR /gslist | ||
|
||
RUN make | ||
|
||
FROM python:3.12 AS requirements-stage | ||
WORKDIR /tmp | ||
|
||
RUN pip install poetry poetry-plugin-export | ||
COPY ./bf2-worker/pyproject.toml ./poetry.lock* /tmp/ | ||
RUN poetry export -f requirements.txt --output requirements.txt --without-hashes | ||
|
||
FROM ubuntu:23.04 | ||
RUN apt-get update | ||
RUN apt-get install -y wget software-properties-common gnupg2 xvfb | ||
|
||
RUN dpkg --add-architecture i386 | ||
RUN mkdir -pm755 /etc/apt/keyrings | ||
RUN wget -O /etc/apt/keyrings/winehq-archive.key https://dl.winehq.org/wine-builds/winehq.key | ||
RUN wget -NP /etc/apt/sources.list.d/ https://dl.winehq.org/wine-builds/ubuntu/dists/lunar/winehq-lunar.sources | ||
RUN apt-get update | ||
RUN apt-get install --no-install-recommends -y winehq-stable winetricks winbind python3 curl python3-poetry python-is-python3 | ||
# AMD64 build for bfbc2 | ||
# RUN apt-get install -y wget software-properties-common gnupg2 xvfb | ||
# RUN dpkg --add-architecture i386 | ||
# RUN mkdir -pm755 /etc/apt/keyrings | ||
# RUN wget -O /etc/apt/keyrings/winehq-archive.key https://dl.winehq.org/wine-builds/winehq.key | ||
# RUN wget -NP /etc/apt/sources.list.d/ https://dl.winehq.org/wine-builds/ubuntu/dists/lunar/winehq-lunar.sources | ||
# RUN apt-get update | ||
# RUN apt-get install --no-install-recommends -y winehq-stable winetricks winbind | ||
|
||
# ARM build for bfbc2 | ||
# WORKDIR /temp | ||
# ADD https://github.com/AndreRH/hangover/releases/download/hangover-9.3/hangover_9.3_ubuntu2310_mantic_arm64.tar /temp | ||
# RUN tar -xvf hangover_9.3_ubuntu2310_mantic_arm64.tar | ||
# RUN apt-get update && apt-get install -y ./hangover-wine_9.3~mantic_arm64.deb | ||
|
||
ENV WINEDEBUG=fixme-all | ||
ENV DISPLAY :0 | ||
RUN apt-get update && apt-get install -y python3 curl python3-pip python3-venv python-is-python3 && apt-get clean | ||
# ENV WINEDEBUG=fixme-all | ||
# ENV DISPLAY :0 | ||
|
||
COPY ./pyproject.toml /pyproject.toml | ||
COPY ./poetry.lock /poetry.lock | ||
RUN poetry config virtualenvs.create false | ||
# Set pip env | ||
RUN python3 -m venv /opt/venv | ||
ENV PATH="/opt/venv/bin:$PATH" | ||
|
||
RUN poetry install --only main | ||
COPY --from=requirements-stage /tmp/requirements.txt /code/requirements.txt | ||
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt | ||
|
||
COPY . /bf2-api | ||
COPY ./bf2-worker /bf2-api | ||
COPY ./ealist /bf2-api/ealist | ||
COPY --from=build-stage /gslist/gslist /bf2-api/gslist-2 | ||
WORKDIR /bf2-api | ||
|
||
ENTRYPOINT [ "python3.11", "serverList.py" ] |
File renamed without changes.
File renamed without changes.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
FROM ubuntu:23.04 | ||
|
||
RUN apt-get update && apt-get install -y libssl-dev build-essential && apt-get clean | ||
|
||
COPY ealist /ealist | ||
|
||
WORKDIR /ealist | ||
|
||
RUN make | ||
|
||
RUN ./ealist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
SRC = ealist.c | ||
LIBS = -lssl -lcrypto | ||
|
||
all: ealist | ||
|
||
ealist: | ||
$(CC) $(SRC) $(CFLAGS) -o ealist $(LIBS) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
# Prerequisites | ||
*.d | ||
|
||
# Object files | ||
*.o | ||
*.ko | ||
*.obj | ||
*.elf | ||
|
||
# Linker output | ||
*.ilk | ||
*.map | ||
*.exp | ||
|
||
# Precompiled Headers | ||
*.gch | ||
*.pch | ||
|
||
# Libraries | ||
*.lib | ||
*.a | ||
*.la | ||
*.lo | ||
|
||
# Shared objects (inc. Windows DLLs) | ||
*.dll | ||
*.so | ||
*.so.* | ||
*.dylib | ||
|
||
# Executables | ||
*.exe | ||
*.out | ||
*.app | ||
*.i*86 | ||
*.x86_64 | ||
*.hex | ||
|
||
# Debug files | ||
*.dSYM/ | ||
*.su | ||
*.idb | ||
*.pdb | ||
|
||
# Kernel Module Compile Results | ||
*.mod* | ||
*.cmd | ||
.tmp_versions/ | ||
modules.order | ||
Module.symvers | ||
Mkfile.old | ||
dkms.conf | ||
|
||
*.gsl | ||
|
||
gslist | ||
|
||
gslistsql |
Oops, something went wrong.