get serverfiles from github
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Aaron Riedel 2024-07-07 21:57:36 +02:00
parent 556062f9b5
commit 2bbfeec304
Signed by: aaron
GPG key ID: 643004654D40D577
2 changed files with 17 additions and 12 deletions

View file

@ -3,13 +3,13 @@ type: kubernetes
name: darkflame-build
steps:
- name: build
image: gcc:13
commands:
- apt-get update && apt-get install -y cmake
- git clone --recursive https://github.com/DarkflameUniverse/DarkflameServer
- cd DarkflameServer
- ./build.sh -j4
# - name: build
# image: gcc:13
# commands:
# - apt-get update && apt-get install -y cmake
# - git clone --recursive https://github.com/DarkflameUniverse/DarkflameServer
# - cd DarkflameServer
# - ./build.sh -j4
- name: docker-build
image: plugins/docker
settings:

View file

@ -1,9 +1,9 @@
FROM debian:12-slim
RUN apt-get update -qq && apt-get install -qq libmariadb3 --no-install-recommends && rm -rf /var/lib/apt/lists/*
ADD https://dlm.mariadb.com/3848227/Connectors/cpp/connector-cpp-1.1.4/mariadb-connector-cpp-1.1.4-debian-bookworm-amd64.tar.gz /root/
RUN tar -xvzf /root/mariadb-connector-cpp-1.1.4-debian-bookworm-amd64.tar.gz --directory /root
RUN cp /root/mariadb-connector-cpp-1.1.4-debian-bookworm-amd64/lib/mariadb/libmariadbcpp.so /usr/lib/
RUN apt-get update -qq && apt-get install -qq libmariadb3 unzip --no-install-recommends && rm -rf /var/lib/apt/lists/*
# ADD https://dlm.mariadb.com/3848227/Connectors/cpp/connector-cpp-1.1.4/mariadb-connector-cpp-1.1.4-debian-bookworm-amd64.tar.gz /root/
# RUN tar -xvzf /root/mariadb-connector-cpp-1.1.4-debian-bookworm-amd64.tar.gz --directory /root
# RUN cp /root/mariadb-connector-cpp-1.1.4-debian-bookworm-amd64/lib/mariadb/libmariadbcpp.so /usr/lib/
ARG PUID=1000
ENV GROUP dockergroup
@ -14,7 +14,12 @@ RUN useradd -u "${PUID}" -m "${USER}"
WORKDIR ${HOMEDIR}
COPY ./DarkflameServer/build ${HOMEDIR}/app
ADD https://github.com/DarkflameUniverse/DarkflameServer/releases/latest/download/darkflameserver-linux.zip ${HOMEDIR}
RUN mkdir ${HOMEDIR}/app
WORKDIR ${HOMEDIR}/app
RUN unzip ${HOMEDIR}/darkflameserver-linux.zip
RUN rm ${HOMEDIR}/darkflameserver-linux.zip
COPY ./start.sh ${HOMEDIR}/app/
COPY ./masterconfig.ini ${HOMEDIR}/app/
COPY ./authconfig.ini ${HOMEDIR}/app/