You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Instead of using Debian based image for runtime version of BurgWar's server docker image, we should use alpine which is lighter.
I already tried multiple times without really succeeding while doing #64. Here are my tries:
Build image
This image is having issue with 7z build on xmake during RUN /home/burgwar/.local/bin/xmake config --mode=releasedbg -y --build_mapeditor=false.
FROM alpine:latest as build-env
# Update systemRUN apk update
RUN apk upgrade
# Install all we need ...RUN apk add alpine-sdk curl git unzip bash
# TEMP: Install nazara legacy dependenciesRUN apk add --no-cache openal-soft-dev libsndfile freetype sdl2 xcb-util-cursor-dev xcb-util-wm-dev xcb-util-keysyms libx11 mesa-dev mesa-gl assimp
# Install xmake with root (so it will install dependencies)RUN curl -fsSL https://xmake.io/shget.text | /bin/bash
# Add userRUN mkdir -p /home/burgwar
RUN addgroup -S burgwar
RUN adduser \
--disabled-password \
--gecos "" \
--home /home/burgwar \
--ingroup burgwar \
burgwar
RUN chown -R burgwar:burgwar /home/burgwar
# That's ugly ... but we need it to install xmake :/RUN mkdir -p /tmp/
RUN chmod -R 777 /tmp/
# Switch to burgwar userUSER burgwar
WORKDIR /home/burgwar
# Install xmake for burgwar user RUN curl -fsSL https://xmake.io/shget.text | /bin/bash
# Build serverCOPY . /home/burgwar/
RUN /home/burgwar/.local/bin/xmake config --mode=releasedbg -y --build_mapeditor=false
RUN /home/burgwar/.local/bin/xmake -r BurgWarServer
# Compile every default mapRUN /home/burgwar/.local/bin/xmake -r BurgWarMapTool
RUN /home/burgwar/.local/bin/xmake run BurgWarMapTool -c /home/burgwar/maps/*
RUN /home/burgwar/.local/bin/xmake install -v -o build/ BurgWarServer
Runtime
This step (if run after a debian build) generate a segmentation fault during start. After investigations, it looks like it's recieving a command line argument (that is not existing) and making crash the image.
Instead of using Debian based image for runtime version of BurgWar's server docker image, we should use alpine which is lighter.
I already tried multiple times without really succeeding while doing #64. Here are my tries:
Build image
This image is having issue with 7z build on xmake during
RUN /home/burgwar/.local/bin/xmake config --mode=releasedbg -y --build_mapeditor=false
.Runtime
This step (if run after a debian build) generate a segmentation fault during start. After investigations, it looks like it's recieving a command line argument (that is not existing) and making crash the image.
The text was updated successfully, but these errors were encountered: