Commit graph

329 commits

Author SHA1 Message Date
j-sax
cee5313554
fix(apps/docker): put TZ ARG after FROM to be correctly applied (#22600)
Co-authored-by: Jesper Saxtorph <gitforgot.sax@manware.dk>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-08-06 12:08:47 +02:00
NoxMax
c7351be94a
fix(bash): Exit simple-restarter script if shutdown is requested (#22617) 2025-08-06 08:48:48 +02:00
Yehonal
dbee211506
fix(bash/starter): enhance interactive mode handling (#22516)
This pull request updates the startup script in `apps/startup-scripts/src/starter` to improve handling of interactive and non-interactive modes, particularly when running under different session managers. 

### Improvements to interactive and non-interactive mode handling:

* Updated the condition to check if the application should run interactively by combining `AC_LAUNCHED_BY_PM2` and `AC_DISABLE_INTERACTIVE` environment variables. This ensures more accurate handling of interactive mode.


Fixes: https://github.com/azerothcore/azerothcore-wotlk/issues/22507
2025-07-27 13:50:20 +02:00
Kitzunu
129434bb42
feat(DB): Release ACDB 13.0.0 (#22508) 2025-07-19 13:16:46 +02:00
Ryan Turner
b90638fdf3
feat(Codestyle/SQL): Ensure InnoDB is used as DB Engine (#22457) 2025-07-11 15:52:16 +02:00
Yehonal
ed8139b82a
feat(tests): add BATS test parallel conf and integration tests for compiler module (#22421) 2025-07-06 17:03:51 +02:00
Yehonal
9fcacf7ea7
feat: improve session management and PM2 support in startup scripts (#22420)
New feature to manage service restart policies and refactors crash logging paths for better flexibility and clarity. The most significant changes include adding support for configurable restart policies (`on-failure` and `always`), updating documentation to reflect these changes, and improving crash path handling in multiple scripts.
2025-07-06 12:00:38 +02:00
Yehonal
9a837ee1f7
fix(bash): Improve session management and GDB handling in service scripts (#22418)
This pull request introduces several enhancements and fixes to the startup scripts for AzerothCore, focusing on improving service management, interactive mode handling, and script execution. The most important changes include adding support for non-interactive mode, enhancing systemd integration, and refactoring the starter script to handle binary paths and files more robustly.

### Enhancements to Service Management:
* **Non-Interactive Mode:** Added `AC_DISABLE_INTERACTIVE` environment variable to disable interactive prompts for services running without session managers (e.g., systemd/pm2). This prevents hanging during non-interactive execution. (`apps/startup-scripts/src/run-engine`, `apps/startup-scripts/src/service-manager.sh`) [[1]](diffhunk://#diff-1792abab64da981c71221890876ce832aab405f670f320f75b73b8788b1a4174R336-R349) [[2]](diffhunk://#diff-31edfed7f73d0647a5fc96ce74c249e025e884cd1fe06621cb78eb4a381464f9R724-R727)
* **Enhanced Systemd Integration:** Services using session managers like tmux/screen are automatically configured with `Type=forking` and appropriate `ExecStop` commands to terminate sessions gracefully. (`apps/startup-scripts/src/service-manager.sh`) [[1]](diffhunk://#diff-31edfed7f73d0647a5fc96ce74c249e025e884cd1fe06621cb78eb4a381464f9R401-R425) [[2]](diffhunk://#diff-31edfed7f73d0647a5fc96ce74c249e025e884cd1fe06621cb78eb4a381464f9R567-R578)

### Improvements to Script Execution:
* **Starter Script Refactor:** Updated the starter script to require both binary path and file name as parameters, improving clarity and error handling. (`apps/startup-scripts/src/starter`) [[1]](diffhunk://#diff-e92f132163ec1e49dc625eac9107c6841ae14e416aa35adec787dca5031dc631L6-R16) [[2]](diffhunk://#diff-e92f132163ec1e49dc625eac9107c6841ae14e416aa35adec787dca5031dc631L26-R44)
* **Temporary GDB File Management:** Enhanced handling of temporary GDB configuration files, ensuring proper cleanup after execution. (`apps/startup-scripts/src/starter`) [[1]](diffhunk://#diff-e92f132163ec1e49dc625eac9107c6841ae14e416aa35adec787dca5031dc631R68-R70) [[2]](diffhunk://#diff-e92f132163ec1e49dc625eac9107c6841ae14e416aa35adec787dca5031dc631R92-R141)

### Updates to Tests:
* **Test Adjustments:** Modified test cases to reflect the updated starter script parameter requirements and error messages. (`apps/startup-scripts/test/test_startup_scripts.bats`) [[1]](diffhunk://#diff-febbaeb294e50bdba0511ecad5d44b0c3f11ae92c79dd19dbd5f61d41a654278L26-R26) [[2]](diffhunk://#diff-febbaeb294e50bdba0511ecad5d44b0c3f11ae92c79dd19dbd5f61d41a654278L41-R49)
2025-07-05 23:02:04 +02:00
Yehonal
161898b7e6
fix(installer/windows): update OpenSSL version to 3.5.1 to fix gh build errors (#22416)
Chocolatey on windows cannot download openssl 3.4.1 since the source has been removed.

3.5.1 is available instead. However, this must be tested

This https://community.chocolatey.org/packages/openssl/3.4.1 is pointing to this: https://slproweb.com/download/Win32OpenSSL-3_4_1.exe that doesn't exist anymore and has been replaced by the 3.4.2, but chocolatey doesn't have this version yet
2025-07-03 20:31:18 +02:00
Yehonal
04547d90b3
fix(CI): update build job to support multiple Ubuntu versions (#22413) 2025-07-03 11:03:16 +02:00
Yehonal
e1b2689c3a
feat(bash): startup-scripts reworked + bash scripts workflow integration (#22401) 2025-07-01 15:35:54 +02:00
Kitzunu
f4e049f227
refactor(db-scripts): replace PowerShell database tools with Bash scripts and update documentation (#22372)
* closes https://github.com/azerothcore/azerothcore-wotlk/issues/4343

This pull request replaces the PowerShell implementation of the AzerothCore database export and squash tools with Bash scripts, streamlining the process and improving compatibility. It also updates the documentation to reflect these changes. The most important changes include the creation of new Bash scripts for exporting databases, squashing databases, and updating versions, as well as the removal of the previous PowerShell script and its associated documentation.

### Script Replacement and Enhancements:
* [`apps/DatabaseSquash/DatabaseExporter/DatabaseExporter.sh`](diffhunk://#diff-af0bd252ac095aaad91b842c75b60a689792e6dc9ce88f5e2e4b6f68acf84dcaR1-R69): Introduced a Bash script to replace the PowerShell implementation for exporting database tables, with added features such as formatted SQL output and dynamic directory creation.
* [`apps/DatabaseSquash/DatabaseSquash.sh`](diffhunk://#diff-79ff4f749c045a7d91e9b43aefb5d6fbebdc5fdfb430fbcba329e4d96d71a4fbR1-R52): Added a Bash script to automate the database squash process, integrating the version updater and database exporter tools.
* [`apps/DatabaseSquash/VersionUpdater/VersionUpdater.sh`](diffhunk://#diff-3abc69c645cb80aff30824739e317c9e847e743eeab15ab4825951d10179b265R1-R84): Created a Bash script for automatically updating the version in `acore.json` and generating SQL update files with proper versioning.

### Documentation Updates:
* [`apps/DatabaseSquash/DatabaseExporter/databaseexporter.md`](diffhunk://#diff-b2b291286f2b900a022474f00754ebfe78410780c010d46752335a372d688aefR1-R16): Rewritten documentation to reflect the usage of the new Bash script for database exporting.
* [`apps/DatabaseSquash/VersionUpdater/versionupdater.md`](diffhunk://#diff-f12e21f8a404957c90d9120cf9df0724ff27a7efdb5de0798d974079cfe8adadR1-R10): Added documentation for the new version updater tool, explaining its functionality and usage.
* [`apps/DatabaseSquash/databasesquash.md`](diffhunk://#diff-4a559f6e7404b529714bac65ad22744feb7b9f88343864a20e0a46974233767eR1-R11): Documented the overall database squash tool, detailing its integration of the version updater and database exporter scripts.

### Removal of Legacy Code:
* [`apps/DatabaseExporter/DatabaseExporter.ps1`](diffhunk://#diff-2b4e49f704d88a372b5160c7278839668c81dbecaf52a4edd327873e30b9ae70L1-L234): Removed the PowerShell script for database exporting, along with its associated functionality and settings.
* [`apps/DatabaseExporter/databaseexporter.md`](diffhunk://#diff-0618d62def0d611be6e0d4fc524df6f702f493cb87870d9382402aaf52f484e8L1-L85): Deleted outdated documentation for the PowerShell-based database exporter tool.
2025-06-28 16:17:48 +02:00
Kitzunu
ca8a2a5f58
fix(CI/Codestyle): Add directory check to SQL codestyle script (#22376) 2025-06-28 15:06:39 +02:00
Yehonal
03df002471
fix(bash): repository initialization bugs and update configurations (#22311) 2025-06-17 18:30:51 +01:00
Jelle Meeus
3e20d6edf8
feat(apps/extractor): add extractor for non windows (#22123) 2025-05-14 23:29:43 +01:00
sudlud
e8ba158c62
fix(CI/modules-build): enable mod-antifarming (#21654) 2025-03-05 13:10:58 +01:00
sudlud
ba37b3d130
feat(CI/modules-build): add all current azerothcore modules (#21624) 2025-03-03 18:46:03 +01:00
Kitzunu
9e4c74bab1
fix(CI/Codestyle): Minor typo in insert_delete_safety_check (#21639) 2025-03-02 18:48:42 +01:00
Kitzunu
6786cb19c3
fix(CI/Codestyle): Imrpove semicolon check and general improvements (#21632) 2025-03-02 18:02:09 +01:00
Kitzunu
ee23fdca3d
fix(CI/Codestyle): Escape all MySQL keywords and skip /* comments (#21631) 2025-03-02 16:49:18 +01:00
Kitzunu
cd8761796f
fix(CI/Codestyle): skip SQL keyword 'NOT' (#21591) 2025-02-24 06:16:20 +01:00
Andrew
f6c4164765
chore(CI): Add mod-costumes (#21548) 2025-02-20 06:29:46 +01:00
Andrew
862690ecc0
chore(CI): Add mod-arena-3v3-solo-queue.git (#21530)
Co-authored-by: sudlud <sudlud@users.noreply.github.com>
2025-02-19 13:38:59 +01:00
demetrzz
75752880e2
fix(Apps/Codestyle) corrected wrong text in the sql codestyle check (#21466)
Co-authored-by: pavel_k <pavel_k@mail.com>
2025-02-15 22:15:37 +01:00
Kitzunu
19847395eb
fix(CI/Windows): Bump openssl version (#21458) 2025-02-15 13:12:13 +01:00
Kitzunu
787b4e4efe
fix(CI/Codestyle): correct double semicolon check (#21388) 2025-02-10 20:24:28 +01:00
Kitzunu
31529db282
fix(CI/Codestyle): Final fixes to backtick check (#21361) 2025-02-08 11:34:38 +01:00
Kitzunu
2c561f0433
fix(CI): typo (#21347) 2025-02-07 09:51:25 +01:00
Kitzunu
306f41a2d8
fix(CI/Codestyle): ignore lines starting with @ (#21346) 2025-02-07 06:52:38 +01:00
Kitzunu
668864556b
fix(CI/Codestyle): Ignore comments for backtick check (#21343) 2025-02-07 00:09:55 +01:00
Kitzunu
f46fea0ac9
fix(CI/Codestyle): Backtick check SET, quote and REPLACE case (#21333) 2025-02-05 17:25:34 +01:00
sudlud
02a903b16f
fix(CI/Windows): fix windows build (#21322) 2025-02-03 22:01:14 +01:00
Kitzunu
5d9e45ab9b
feat(CI/Codestyle): backtick check for sql (#21321) 2025-02-03 21:03:21 +01:00
Kitzunu
9e9a2fe5e3
refactor(Core/ObjectMgr): Change GetAcoreString from char const* to s… (#21213)
...ring
2025-02-01 22:46:42 +01:00
Kitzunu
137337601d
fix(DB/Misc): Bad delete in update file (#21307)
Co-authored-by: Andrew <47818697+Nyeriah@users.noreply.github.com>
2025-02-01 16:48:24 +01:00
Jelle Meeus
b47ec3b5c8
fix(Apps/Codestyle): ignore comments for some checks (#21268) 2025-01-25 19:58:01 +01:00
Grimdhex
7725610ff3
chore(Apps/Codestyle): add new checks for SQL files (#21026) 2025-01-21 10:44:39 +01:00
Jelle Meeus
5bc512f75c
chore(Docker): Update dev container to ubuntu24.04 (#21044) 2025-01-19 12:46:28 +01:00
Grimdhex
ffae375f73
fix(Apps/Codestyle): rewrite semi-colon check (#21027) 2024-12-24 12:39:00 +01:00
Kitzunu
d5fac96a20
refactor(CI/Codestyle): Move the SQL check to python (#21002) 2024-12-22 16:50:32 +01:00
Kitzunu
2c20c9463a
feat(CI/Codestyle): Check for tabs (#20998) 2024-12-22 00:43:23 +01:00
Kitzunu
d2b88bdc1e
feat(CI/Codestyle); Check for double semicolons (#20996) 2024-12-21 22:19:49 +01:00
Kitzunu
ceefd89a06
feat(CI/Codestyle): check for curly brackets before/after if/else statements (#20977)
* feat(CI/Codestyle): check for braces after if/else statements

* right need to edit a cpp file to trigger cpp check

* Revert "right need to edit a cpp file to trigger cpp check"

This reverts commit 2e34d8c52f35216549107a3476e79e79ea2ae077.

* fix codestyle in cpp

* Update oculus.cpp

* Update codestyle.py

* Update codestyle.py

* Update codestyle.py

* Update codestyle.py
2024-12-19 21:14:58 +01:00
sudlud
0a454b08fc
fix(apps/DatabaseExporter): fix utf-8 encoding for sql export (#20951) 2024-12-18 10:33:53 +01:00
Kitzunu
3a20433827
feat(DB): New DB exporter and versioning tools for DB squashes (#20920) 2024-12-16 16:13:05 +01:00
Jelle Meeus
4f23dbbb03
refactor(Apps/Startup): replace 'set logging on` command with 'set logging enabled on' (#20778)
refactor: replace deprecated 'set logging on'
2024-12-01 21:29:35 +01:00
Mike Delago
6161d9969b
fix(CI/SQL import): don't use octal (#20449) 2024-11-05 16:40:41 +01:00
Mike Delago
f1b629035f
fix(CI/Import SQL): reference previous pending update in header (#20219) 2024-10-15 15:06:43 -04:00
Mike Delago
3ef1a4a22a
fix(CI): simplify ci-pending-sql.sh and make it safer (#20209)
* apps: ci: ci-pending-sql.sh: simplify

* ensure proper file header is used
2024-10-14 20:42:04 -04:00
Grimdhex
729cf72f0d
chore(Apps/Codestyle): add a new check for if statements (#20073)
* chore(Apps/CodeStyle): add a new check for if statements

* update

* Update spell_priest.cpp

* Update codestyle.py
2024-09-28 18:35:35 +02:00
Anton Popovichenko
36a8653c83
fix(CI/macOS): Fix macOS CI dependency installation by updating macOS version. (#19997)
* fix(CI/MacOS): Fix MacOS CI dependency installation.

* Try to use macos 14 version

* Remove brew cleanup and z3 dependency

* Adjust readline lib discovery

* Update macos supported version in SECURITY.md
2024-09-21 11:37:55 -03:00
sudlud
2e17b32508
fix(apps/installer): fix Debian 12 build with mysql (#20003) 2024-09-20 23:20:33 +02:00
Ben Carter
6e5cd04591
fix(docker): Modules SQL do not get updated or populated for docker set ups (#19870)
* Added modules to dbimport so sql cab accessed by loader

* updated dbimport tools config option to enable module sql to be updated and populated

* Updated casting around GetOption and changed default to all
2024-09-06 12:37:00 -03:00
Benjamin Jackson
1edac37ac3
refactor(Core): Make more use of helpers. (#19835)
* Init.

* Reword.

* Update codestyle script.

Co-Authored-By: Kitzunu <24550914+Kitzunu@users.noreply.github.com>

* Add gameobject type ID check, reorder checks.

* Add helper/codestyle check for unit type.

* `IsUnit()` -> `IsCreature()`

* Add `IsUnit()` method.

* Use type mask.

https: //github.com/TrinityCore/TrinityCore/commit/cc71da35b5dc74abf71f8691161525a23d870bb5
Co-Authored-By: Giacomo Pozzoni <giacomopoz@gmail.com>
Co-Authored-By: Ovahlord <18347559+Ovahlord@users.noreply.github.com>

* Replace instances of `isType` with `IsUnit`.

---------

Co-authored-by: Kitzunu <24550914+Kitzunu@users.noreply.github.com>
Co-authored-by: Giacomo Pozzoni <giacomopoz@gmail.com>
Co-authored-by: Ovahlord <18347559+Ovahlord@users.noreply.github.com>
2024-09-03 14:41:31 -03:00
Grimdhex
221dbd3fdb
chore(Apps/Codestyle): add new codestyle checks for pointers and range loops (#19841)
* chore(Apps/Codestyle): add new codestyle checks for pointers and range loops

* revert a typo
2024-09-03 13:02:38 -03:00
Kitzunu
de2bcbdabf
refactor(Core/Misc): Acore::StringFormat to fmt format (#19838)
refactor(Core/Utilities): Acore::StringFormat to fmt format

* closes https://github.com/azerothcore/azerothcore-wotlk/issues/10356
2024-09-03 07:59:37 -03:00
Kitzunu
5d31b9f98f
refactor(Core/Item): Add helpers (#19828) 2024-08-31 19:38:50 -03:00
Grimdhex
574ef5203a
chore(Apps/CodeStyle): rewrite Ci-codestyle in python (#19714)
* initial version

* port most current checks

* allow to specify for each checks the exclude files

* Update _ci-codestyle.py

* fix trailing whitespace check and the error_handler logic

* optimize the script to parse all files only one time

* restore the error handling after that all checks are passed

* fix double blank lines at the end of the file

* improve outputs and the codestyle

* .

* update github workflow to the new script

*drop the old ci-codestyle
*move and rename the python script

* use getcwd instead abspath to define src_directory where the script is launch

* test for github workflow

* few cleanup

* fix the logic with the result output

* remove GetTypeId from the output result

* restore GetTypeId() check

* fix reviews

* remove GetTypeId check for gameobjects

*not currently fixed in the core

* fix type hint for file parameters

* remove the test file
2024-08-27 06:19:13 -03:00
sudlud
4ed1815de6
fix(apps/installer): update for Ubuntu 22.04/24.04 with mysql 8.4 LTS (#19737) 2024-08-26 17:29:12 +02:00
sudlud
d4aca0bca1
fix(apps/installer): update for Debian 12 using mysql (#19649)
* fix(apps/installer): update for Debian 11 and 12 using mysql

* drop Debian 11 due to OpenSSL 1.1.1 beeing deprecated already
2024-08-24 20:29:32 +02:00
Mike Delago
af1a6f3521
apps(docker): Fix Warnings in Dockerfile (#19537) 2024-08-18 06:17:30 +02:00
Marcus Schommer
a691ad3f4d
chore(APPS/installer): Detection of BSD* OS (#19285)
Installer output is wrong for BSD*.
"acore.sh install-deps" says "This platform is not supported"
should be "BSD is not supported yet"
2024-08-17 20:27:36 +02:00
Anton Popovichenko
3c4086a5a0
fix(CI/MacOS): Fix macOS mysql setup. (#19634)
* fix(CI/MacOS): Try to fix macOS mysql setup.

* Update ci-compile.sh

* More debug code

* Mooooore debug

* Moooooorreee

* Moooooooooooorereerererer

* m o r e debug

* more debug

* more

* More debug

* 9.0.1.reinstall??? we already had mysql?

* debug

* Debug

* Are we happy now?

* No? And what about now?!

* Adn now?

* Yes, we are happy 😎
2024-08-16 05:07:41 -03:00
Andrew
1565758da4
Revert "chore(Script/Misc): cleanup" (#19627)
Revert "chore(Script/Misc): cleanup (#19619)"

This reverts commit 7ff8f72397.
2024-08-15 05:43:11 +02:00
Kitzunu
7ff8f72397
chore(Script/Misc): cleanup (#19619)
* chore(Script/Misc): cleanup

* more cleanup

* cleanup
2024-08-14 16:29:50 -03:00
dweipert-3138720606
1c5ee47151
fix docker warning about "FromAsCasing" (#19368)
Co-authored-by: Daniel Weipert <git@mail.dweipert.de>
2024-07-29 08:31:51 -04:00
Mike Delago
0e1afaa768
debloat(apps): remove unneeded script (#19466)
remove unneeded script
2024-07-23 20:27:36 -04:00
Mike Delago
45145fed48
fix(Docker): Check write access for config dir (#18238) 2024-05-18 19:12:22 +02:00
Anton Popovichenko
9616433b66
fix(CI/MacOS): Fix MacOS dependency installation (#18507)
Fix MacOS CI/CD
2024-03-10 16:52:03 -03:00
Mike Delago
e282f6caaa
Fix(Docker): Add missing dollar sign (#18314) 2024-02-13 10:34:29 -05:00
Kitzunu
65e25bd7b9
fix(CI): Maybe baby this will solve our problemos (#17889)
* Because BREW and MAC OSX suck a**

* Update core-build-nopch.yml

* if mac dont fix now. I might just quit

* maybe I can bring this back now :pog:
2023-11-29 08:37:48 -03:00
Kitzunu
4a25ac665d
chore(CI): Make some changes (#17861)
* chore(CI): Make some changes. Less CI's maybe better...

* pendingsql

* FORK TEST - TO BE REVERTED

* changes

* test

* fix

* Revert "FORK TEST - TO BE REVERTED"

This reverts commit 875bc281c5a355cce2ddd8015484e256dbc185cf.

* rename workflow

* rename workflow

* rename workflow

* rename workflow

* I argue windows don't need dry runs

* maybe mac wants to be alive. who knows. When do we drop mac support really...?
2023-11-26 17:27:40 +01:00
Mike Delago
6e752c8720
fix(Docker): Tweak entrypoint permissions (#17698)
* fix(Docker): Fix entrypoint permissions

* use entrypoint.sh as an argument to bash

* attempt to use more specified filepaths
2023-11-14 17:36:27 +01:00
Kitzunu
649dc84fea
fix(ci): macos (#17681)
* fix(ci): macos

* Update osx.sh
2023-11-11 20:06:25 -03:00
Mike Delago
ac30d8f6fc
fix(CI): Ensure targeted stage for docker is specified in CI (#17545) 2023-10-20 20:39:34 -03:00
Mike Delago
c4dc20a814
refactor(Docker): remove prod container distinction (#17419)
* refactor(Docker): remove prod containers

* workflows: use buildx

* properly set tags

* comment in Dockerfile

* set docker build context

* minor CI changes

* CI: docker build args shouldnt have quotes

* CI: using matrix and caching is too much work

* CI: I hate yaml

* CI: It was a typo

* CI: extra build removed

* CI: appease the linter

* fixup! CI: appease the linter

* fixup! CI: appease the linter

* apps: docker: remove extraneous files
2023-10-15 17:47:09 +02:00
Mike Delago
619f7297f9
refactor(apps): remove docker image prune in dashboard (#17405)
refactor(apps): remove docker image prune in dash
2023-10-07 23:18:40 +02:00
Kitzunu
5d128d38ea
chore(CI): Update deps for Windows and Mac builds (#17252)
* chore(CI): Update deps for Windows and Mac builds

* Update windows.sh

* Update windows.sh
2023-09-15 02:32:52 +02:00
Mike Delago
2c81ccaea4
fix(apps/Docker): Missing arg for build:prod (#17231) 2023-09-10 21:24:36 +02:00
Mike Delago
c43e1b8c0c
refactor(Apps/Dashboard): Remove Deno as a dependency to the dashboard (#16934)
* remove deno as a dependency

* use the ACORE_VERSION env var

* I forgot client-data

* accidentally removed too much

* docker-cmd: extraneous parallel flag

* typo

* remove docker image prune -af

the `docker image prune` removes the containers we just build.

* fetch everything in the beginning
2023-09-10 01:12:47 +02:00
Mike Delago
23c5e990b6
fix(Apps/Docker): ensure conf files always exist (#17071) 2023-08-25 22:02:21 +02:00
Kitzunu
12456b5496
refactor(Misc/Conf): DBErrors is now Errors (#17053)
* refactor(Misc/Conf): DBErrors is now StartupErrors

* pt2

* Update ci-error-check.sh

* Update ci-error-check.sh
2023-08-22 12:08:53 +02:00
Mike Delago
f241a6e352
feat(Apps/Docker): Use Env Vars for docker configuration (#17040)
* feat(docker): Use Env Vars for docker configuration

use env vars for docker

* simplify docker-compose.yaml
2023-08-20 17:52:38 +02:00
Mike Delago
3033b2da4e
chore(apps): remove deprecated db_assembler and erroneous .gitmodules (#17039)
* chore(Contrib): remove deprecated db_assembler

* chore(repo): Remove erroneous gitmodule
2023-08-19 22:13:22 +02:00
Mike Delago
741403e157
fix(Apps/Docker): adduser/addgroup commands in dockerfile (#14914)
Fix useradds in dockerfile
2023-08-12 21:01:49 +02:00
Mike Delago
4f87cf96d8
fix(Apps/Docker): Git version resolution in docker build (#16379)
fix git for docker build
2023-08-12 17:48:17 +02:00
Mike Delago
e7b3f5e78a
chore(CI): fix ci-pending.sh script for linting SQL (#16913)
* fix Checks for pending sql

* remove strings in general

* Update apps/ci/ci-pending.sh

---------

Co-authored-by: Kitzunu <24550914+Kitzunu@users.noreply.github.com>
2023-08-06 11:43:51 +02:00
Kitzunu
d341492081
fix(CI): Update macos openssl to 3 (#16846) 2023-07-29 15:26:03 +02:00
Mike Delago
1480eba9d4
feat(Apps): Account creation script that isn't worldserver dependent (#14774)
* inital account-create

* fix type

* account-create add gmlevel

* comments and readme

* remove un-used gitignore
2023-06-27 19:44:01 +02:00
Kitzunu
7d40293532
chore(CI): Restore broadcast_text check (#16483) 2023-06-08 22:34:46 -03:00
Angelo Venturini
97dff23ba1
feat(apps/scripts): set a logging file for gdb using starter app (#16278) 2023-05-16 20:57:35 -03:00
Kitzunu
099517161c
refactor(DB/Misc): Improve loading time (#15433)
* refactor(DB/Misc): Improve loading time

* NOTE: Running these SQL files can take several minutes (up to 30minutes depending on your system!)

* This will improve loading time over 50%

* comment out error on editing broadcast_text tables

* Update data/sql/updates/pending_db_world/rev_1679045387127819800.sql
2023-04-23 18:00:51 -03:00
Kitzunu
b3d4d36398
chore(Valgrind): Move Valgrind from data folder to apps folder (#14778) 2023-01-29 11:56:00 -03:00
Mike Delago
ea51cdf0a6
fix(Docker): config loading for ac-dev-server container (#14755)
## Changes Proposed:
-  This properly moves things from `DOCKER_ETC_FOLDER` to `confDir`
- originally broken with
888a718cf3

## Issues Addressed:
- Should hopefully close
https://github.com/azerothcore/acore-docker/issues/12

## SOURCE:

## Tests Performed:
- I'm not exactly aware of the testing procedure for this, as I don't
use acore-docker
- That said, the previous behavior has been replicated:

2420d19e54/apps/compiler/includes/functions.sh (L148-L150)
- Open to suggestions


## How to Test the Changes:
1. Open to Suggestions

## Known Issues and TODO List:

- Test properly

## How to Test AzerothCore PRs
 
When a PR is ready to be tested, it will be marked as **[WAITING TO BE
TESTED]**.

You can help by testing PRs and writing your feedback here on the PR's
page on GitHub. Follow the instructions here:

http://www.azerothcore.org/wiki/How-to-test-a-PR

**REMEMBER**: when testing a PR that changes something **generic** (i.e.
a part of code that handles more than one specific thing), the tester
should not only check that the PR does its job (e.g. fixing spell XXX)
but **especially** check that the PR does not cause any regression (i.e.
introducing new bugs).

**For example**: if a PR fixes spell X by changing a part of code that
handles spells X, Y, and Z, we should not only test X, but **we should
test Y and Z as well**.
2023-01-25 17:55:24 +01:00
Yehonal
3202158af1
fix(docker): missing config file in dev image (#14753)
<!-- First of all, THANK YOU for your contribution. -->

## Changes Proposed:
When we create the dev image we do not have the .dockerdist file under
the etc folder. The ac-dev-server included in the azerothcore-wotlk
repository bind the /env/docker/etc folder inside the container, but the
acore-docker repository doesn't. That's why we are having the error in
that project.

This happened after the latest changes:

* https://github.com/azerothcore/azerothcore-wotlk/pull/14707
* https://github.com/azerothcore/azerothcore-wotlk/pull/14747

Closes https://github.com/azerothcore/acore-docker/issues/12
2023-01-24 14:35:43 +01:00
Mike Delago
888a718cf3
Fix configs in docker builds (#14747)
<!-- First of all, THANK YOU for your contribution. -->

## Changes Proposed
- This fixes an issue where the .conf files aren't properly generated for the docker build
  - With this issue, the dbimport service in the docker compose file would fail to start due to insufficient config. 
  - related to PR #14707
- create a ".user" file extension for custom configs in `env/docker/etc/`
- Layers the ".dockerdist" file and the ".user" file over the ".dist" file (in that order), and then copies the ".dist" file to the base ".conf" file
- Docker specific config changes go in the ".dockerdist" file and should still be committed to the repo
- User specific config changes go in ".user" file and should not be committed to the repo
- If the ".dist" file and the base ".conf" file are different, the ".conf" will be backed up before the ".dist" file is copied into it

## Issues Addressed:
<!-- If your fix has a relating issue, link it below -->
- There isn't a specific issue, however this was reported and discussed in discord over the course of yesterday and today

## SOURCE:
<!-- If you can, include a source that can strengthen your claim -->

## Tests Performed:
<!-- Does it build without errors? Did you test in-game? What did you test? On which OS did you test? Describe any other tests performed -->
- Executing commands to build and start the game server
- after creating an account, I can log in and play without any issues. 


## How to Test the Changes:
<!-- Describe in a detailed step-by-step order how to test the changes -->

1.  Execute commands
   
    ```bash
    $ ./acore.sh docker clean:build && ./acore.sh docker build:nocache && ./acore.sh docker start:app
    ```
2. Create account and log in as normal

## Known Issues and TODO List:
<!-- Is there anything else left to do after this PR? -->

- The largest issue that comes to mind is this is a breaking change for docker users (though, so was the change that caused this)
  - Docker users (and nobody else, of course) can no longer use the ".conf" for custom changes in docker setups. 
  - Their custom changes will have to be migrated to the ".user" file
  - Since the old ".conf" file is backed up, users should have minimal trouble copying the changes in the old ".conf" file to the new ".user" file

<!-- If you intend to contribute repeatedly to our project, it is a good idea to join our discord channel. We set ranks for our contributors and give them access to special resources or knowledge: https://discord.com/invite/DasJqPba)
     Do not remove the instructions below about testing, they will help users to test your PR -->
## How to Test AzerothCore PRs
 
When a PR is ready to be tested, it will be marked as **[WAITING TO BE TESTED]**.

You can help by testing PRs and writing your feedback here on the PR's page on GitHub. Follow the instructions here:

http://www.azerothcore.org/wiki/How-to-test-a-PR

**REMEMBER**: when testing a PR that changes something **generic** (i.e. a part of code that handles more than one specific thing), the tester should not only check that the PR does its job (e.g. fixing spell XXX) but **especially** check that the PR does not cause any regression (i.e. introducing new bugs).

**For example**: if a PR fixes spell X by changing a part of code that handles spells X, Y, and Z, we should not only test X, but **we should test Y and Z as well**.

edit: link related PR
2023-01-23 18:03:28 +01:00
Foereaper
5fa027a222
refactor(Core/Conf): Removal of unnecessary .dist file loading (#14707)
* Remove .dist file requirement

* Remove unnecessary string cast

* Add required variables for CI build configs

* More required variables

* Add some more default variables to reduce log output

* One last default value to cut down log spam

* Rewrite conf file bash script

This should use the standard .dest file as a template

* Change dir we copy the dest files from

* actually use the correct file name

* need to use double quotes for variables

* add missing username

* set the correct datadir

* Attempt to fix dbimport

Co-authored-by: Foereaper <foereaper@elunatech.com>
2023-01-21 14:48:22 +01:00
Revision
b89eea668a
fix(Apps): Update client data version (#14527)
Update functions.sh
2023-01-06 20:54:59 +01:00
Patrick Lewis
a3a835edc4
fix(CI/mac): python issue workaround (#14369) 2022-12-26 11:06:28 +01:00
Yehonal
170de50c9a
chore(CI/docker): disable BUILDKIT_INLINE_CACHE 2022-11-08 00:17:57 +01:00