Commit Graph

222 Commits

Author SHA1 Message Date
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
Yehonal
d205136345 fix(CORE/docker): restore old client-data image creation 2022-11-07 18:02:29 +01:00
Yehonal
839731d5d5 fix(CORE/docker): client data image deployment 2022-11-07 17:44:47 +01:00
Yehonal
e0313219e3 feat(CORE/docker): cachebust for the client data 2022-11-07 17:30:00 +01:00
Yehonal
e4016823d7 feat(CORE): docker permissions and rework (#13454)
- fix docker permissions with mounted volumes on new docker versions (https://github.com/docker/desktop-linux/issues/31)
- fix ac-tools image
- cleanup unused env
- add  `cap_add: SYS_NICE` to allow setting process high priority
- fix ccache in docker
- allow to switch between root user (default) to acore user in any container
- fix cache of the downloaded client data
- split docker github actions in 2 parts
- versioning mysql images
- performance improvements
2022-11-07 13:20:48 +01:00
Yehonal
2420d19e54 fix(CORE): file permissions for the devcontainer (#13686) 2022-11-04 13:53:07 +01:00
Yehonal
7d2eb5e9bd fix(CORE/docker): path on conf generation 2022-10-22 20:03:42 +02:00
Yehonal
171df31196 feat(CORE/bash): implemented acore dashboard for Windows (#13476)
+ implemented acore dashboard for windows
+ integrated acore dashboard for windows in our pipeline
+ implemented dry run for windows build
+ fixed permissions issue for all the operating systems
+ code clean
2022-10-22 15:40:13 +02:00