mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2025-11-29 17:38:24 +08:00
chore(Docker): Update dev container to ubuntu24.04 (#21044)
This commit is contained in:
@@ -7,7 +7,7 @@
|
|||||||
#
|
#
|
||||||
#=================================================================
|
#=================================================================
|
||||||
|
|
||||||
FROM ubuntu:22.04 as dev
|
FROM ubuntu:24.04 as dev
|
||||||
ARG USER_ID=1000
|
ARG USER_ID=1000
|
||||||
ARG GROUP_ID=1000
|
ARG GROUP_ID=1000
|
||||||
ARG DOCKER_USER=acore
|
ARG DOCKER_USER=acore
|
||||||
@@ -29,13 +29,37 @@ ENV TZ=$TZ
|
|||||||
ENV DEBIAN_FRONTEND=noninteractive
|
ENV DEBIAN_FRONTEND=noninteractive
|
||||||
|
|
||||||
RUN apt-get update \
|
RUN apt-get update \
|
||||||
&& apt-get install -y \
|
&& apt-get install -y --no-install-recommends \
|
||||||
gdb gdbserver git dos2unix lsb-core sudo curl unzip \
|
# Classic install
|
||||||
make cmake clang libmysqlclient-dev libboost-all-dev \
|
git \
|
||||||
build-essential libtool cmake-data openssl libgoogle-perftools-dev google-perftools \
|
clang lldb lld clang-format clang-tidy \
|
||||||
libssl-dev libmysql++-dev libreadline6-dev zlib1g-dev libbz2-dev mysql-client \
|
make cmake \
|
||||||
libncurses5-dev ccache tzdata \
|
gcc g++ \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
libmysqlclient-dev \
|
||||||
|
libssl-dev \
|
||||||
|
libbz2-dev \
|
||||||
|
libreadline-dev \
|
||||||
|
libncurses-dev \
|
||||||
|
mysql-server \
|
||||||
|
libboost-all-dev \
|
||||||
|
# Other
|
||||||
|
curl \
|
||||||
|
unzip \
|
||||||
|
sudo \
|
||||||
|
gdb gdbserver \
|
||||||
|
libtool \
|
||||||
|
build-essential \
|
||||||
|
cmake-data \
|
||||||
|
openssl \
|
||||||
|
google-perftools libgoogle-perftools-dev \
|
||||||
|
libmysql++-dev \
|
||||||
|
ccache \
|
||||||
|
tzdata \
|
||||||
|
# Utility for column command used by dashboard
|
||||||
|
util-linux \
|
||||||
|
# Certificates for downloading client data
|
||||||
|
ca-certificates \
|
||||||
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
# Ensure git will work with the AzerothCore source directory
|
# Ensure git will work with the AzerothCore source directory
|
||||||
RUN git config --global --add safe.directory /azerothcore
|
RUN git config --global --add safe.directory /azerothcore
|
||||||
@@ -45,10 +69,11 @@ RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime \
|
|||||||
&& echo $TZ > /etc/timezone && dpkg-reconfigure --frontend noninteractive tzdata
|
&& echo $TZ > /etc/timezone && dpkg-reconfigure --frontend noninteractive tzdata
|
||||||
|
|
||||||
# Create a non-root user
|
# Create a non-root user
|
||||||
RUN addgroup --gid "$GROUP_ID" "$DOCKER_USER" && \
|
RUN userdel --remove ubuntu \
|
||||||
adduser --disabled-password --gecos '' --uid "$USER_ID" --gid "$GROUP_ID" "$DOCKER_USER" && \
|
&& addgroup --gid "$GROUP_ID" "$DOCKER_USER" \
|
||||||
passwd -d "$DOCKER_USER" && \
|
&& adduser --disabled-password --gecos '' --uid "$USER_ID" --gid "$GROUP_ID" "$DOCKER_USER" \
|
||||||
echo "$DOCKER_USER ALL=(ALL:ALL) NOPASSWD: ALL" >> /etc/sudoers
|
&& passwd -d "$DOCKER_USER" \
|
||||||
|
&& echo "$DOCKER_USER ALL=(ALL:ALL) NOPASSWD: ALL" >> /etc/sudoers
|
||||||
|
|
||||||
# must be created to set the correct permissions on them
|
# must be created to set the correct permissions on them
|
||||||
RUN mkdir -p \
|
RUN mkdir -p \
|
||||||
|
|||||||
@@ -188,6 +188,8 @@ services:
|
|||||||
AC_LOGIN_DATABASE_INFO: "ac-database;3306;root;${DOCKER_DB_ROOT_PASSWORD:-password};acore_auth"
|
AC_LOGIN_DATABASE_INFO: "ac-database;3306;root;${DOCKER_DB_ROOT_PASSWORD:-password};acore_auth"
|
||||||
AC_WORLD_DATABASE_INFO: "ac-database;3306;root;${DOCKER_DB_ROOT_PASSWORD:-password};acore_world"
|
AC_WORLD_DATABASE_INFO: "ac-database;3306;root;${DOCKER_DB_ROOT_PASSWORD:-password};acore_world"
|
||||||
AC_CHARACTER_DATABASE_INFO: "ac-database;3306;root;${DOCKER_DB_ROOT_PASSWORD:-password};acore_characters"
|
AC_CHARACTER_DATABASE_INFO: "ac-database;3306;root;${DOCKER_DB_ROOT_PASSWORD:-password};acore_characters"
|
||||||
|
networks:
|
||||||
|
- ac-network
|
||||||
ports:
|
ports:
|
||||||
- ${DOCKER_AUTH_EXTERNAL_PORT:-3724}:3724
|
- ${DOCKER_AUTH_EXTERNAL_PORT:-3724}:3724
|
||||||
- ${DOCKER_WORLD_EXTERNAL_PORT:-8085}:8085
|
- ${DOCKER_WORLD_EXTERNAL_PORT:-8085}:8085
|
||||||
|
|||||||
Reference in New Issue
Block a user