feat(Docker): update to Ubuntu 20.04 + more improvements (#3277)

This commit is contained in:
Francesco Borzì
2020-08-13 00:25:20 +02:00
committed by GitHub
parent c83c53e718
commit d2cc3fcbc2
14 changed files with 32 additions and 25 deletions

View File

@@ -57,4 +57,4 @@ jobs:
./bin/acore-docker-generate-etc
- name: Build
run: |
./bin/acore-docker-build-no-scripts
./bin/acore-docker-build

0
bin/acore-docker-remove-build-cache Normal file → Executable file
View File

View File

@@ -1,7 +1,7 @@
FROM ubuntu:bionic
FROM ubuntu:20.04
# install the required dependencies to run the authserver
RUN apt update && apt install -y libmysqlclient-dev libssl-dev libace-6.* libace-dev net-tools;
RUN apt update && apt install -y libmysqlclient-dev libssl-dev libace-6.4.5 libace-dev net-tools;
HEALTHCHECK --interval=5s --timeout=15s --start-period=30s --retries=3 CMD netstat -lnpt | grep :3724 || exit 1

View File

@@ -1,7 +1,8 @@
FROM ubuntu:bionic
FROM ubuntu:20.04
# install the required dependencies to compile AzerothCore
RUN apt update && apt install -y git cmake make gcc g++ clang libmysqlclient-dev libssl-dev libbz2-dev libreadline-dev libncurses-dev libace-6.* libace-dev
ARG DEBIAN_FRONTEND=noninteractive
RUN apt update && apt install -y git cmake make gcc g++ clang libmysqlclient-dev libssl-dev libbz2-dev libreadline-dev libncurses-dev libace-6.4.5 libace-dev
# copy the sources from the host machine to the Docker container
ADD .git /azerothcore/.git

View File

@@ -1,7 +1,7 @@
FROM ubuntu:bionic
FROM ubuntu:20.04
# install the required dependencies to run the authserver
RUN apt update && apt install -y libmysqlclient-dev libssl-dev libace-6.* libace-dev libreadline-dev net-tools;
RUN apt update && apt install -y libmysqlclient-dev libssl-dev libace-6.4.5 libace-dev libreadline-dev net-tools;
HEALTHCHECK --interval=5s --timeout=15s --start-period=30s --retries=3 CMD netstat -lnpt | grep :8085 || exit 1

View File

@@ -2052,8 +2052,13 @@ public:
break;
case EVENT_AGGRO_JAINA:
if (me->GetVictim())
if (Creature* jaina = ObjectAccessor::GetCreature(*me, jainaGUID))
jaina->AI()->AttackStart(me->GetVictim()); DoCast(me, SPELL_THUNDER);
{
if (Creature *jaina = ObjectAccessor::GetCreature(*me, jainaGUID))
{
jaina->AI()->AttackStart(me->GetVictim());
}
}
DoCast(me, SPELL_THUNDER);
_events.ScheduleEvent(EVENT_AGGRO_JAINA, 2 * IN_MILLISECONDS);
break;
case EVENT_WRYNN_BUFF:

View File

@@ -1077,8 +1077,9 @@ public:
break;
case EVENT_ARGENT_CHALLENGE_MOVE_FORWARD:
{
if (Creature* boss = instance->GetCreature(NPC_ArgentChampionGUID))
if (Creature* boss = instance->GetCreature(NPC_ArgentChampionGUID)) {
boss->GetMotionMaster()->MovePoint(0, 746.881f, 635.263f, 411.7f);
}
events.ScheduleEvent(EVENT_ARGENT_CHALLENGE_ATTACK, 3000);
events.PopEvent();
}