get serverfiles from github
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
556062f9b5
commit
2bbfeec304
2 changed files with 17 additions and 12 deletions
14
.drone.yml
14
.drone.yml
|
@ -3,13 +3,13 @@ type: kubernetes
|
||||||
name: darkflame-build
|
name: darkflame-build
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: build
|
# - name: build
|
||||||
image: gcc:13
|
# image: gcc:13
|
||||||
commands:
|
# commands:
|
||||||
- apt-get update && apt-get install -y cmake
|
# - apt-get update && apt-get install -y cmake
|
||||||
- git clone --recursive https://github.com/DarkflameUniverse/DarkflameServer
|
# - git clone --recursive https://github.com/DarkflameUniverse/DarkflameServer
|
||||||
- cd DarkflameServer
|
# - cd DarkflameServer
|
||||||
- ./build.sh -j4
|
# - ./build.sh -j4
|
||||||
- name: docker-build
|
- name: docker-build
|
||||||
image: plugins/docker
|
image: plugins/docker
|
||||||
settings:
|
settings:
|
||||||
|
|
15
Dockerfile
15
Dockerfile
|
@ -1,9 +1,9 @@
|
||||||
FROM debian:12-slim
|
FROM debian:12-slim
|
||||||
|
|
||||||
RUN apt-get update -qq && apt-get install -qq libmariadb3 --no-install-recommends && rm -rf /var/lib/apt/lists/*
|
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/
|
# 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 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 cp /root/mariadb-connector-cpp-1.1.4-debian-bookworm-amd64/lib/mariadb/libmariadbcpp.so /usr/lib/
|
||||||
|
|
||||||
ARG PUID=1000
|
ARG PUID=1000
|
||||||
ENV GROUP dockergroup
|
ENV GROUP dockergroup
|
||||||
|
@ -14,7 +14,12 @@ RUN useradd -u "${PUID}" -m "${USER}"
|
||||||
|
|
||||||
WORKDIR ${HOMEDIR}
|
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 ./start.sh ${HOMEDIR}/app/
|
||||||
COPY ./masterconfig.ini ${HOMEDIR}/app/
|
COPY ./masterconfig.ini ${HOMEDIR}/app/
|
||||||
COPY ./authconfig.ini ${HOMEDIR}/app/
|
COPY ./authconfig.ini ${HOMEDIR}/app/
|
||||||
|
|
Loading…
Reference in a new issue