Commit Graph

208 Commits

Author SHA1 Message Date
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
Yehonal
77a52b8001 fix(CORE): another attempt to fix the dbimport command line warning (#13449) 2022-10-22 00:21:16 +02:00
Yehonal
a82cf659a3 feat(CORE/docker): switch to docker compose and check the version (#13444)
* feat(docker): switch to `docker compose` and check the version

* chore: removed all docker-compose commands in CI
2022-10-17 22:50:31 +02:00
Francesco Borzì
562835686a chore(bash/db_assembler): show deprecation warning (#13410) 2022-10-14 21:08:22 +02:00
Yehonal
e189caeb76 feat(docker): implemented dbimport (#13308)
## Changes Proposed:

- Implemented dbimport with docker
- deprecated db_assembler
- Fixed deno scripts and integrated them with the CI
2022-10-05 13:15:42 +02:00
Patrick Lewis
635c79f141 fix(DOCKER): remove docker db import using bash (#12773)
* fix(DOCKER): remove docker db import using bash

* remove db-import command
2022-08-18 14:53:25 -04:00
Stefano Borzì
6673067442 chore(Dashboard/functions.sh): update data version (#12140) 2022-06-21 19:06:34 -04:00
acidmanifesto
ba81fa2919 update (app) Extractor.bat update (#12139)
* update (app) Extractor.bat update

Updating Extractor.bat to match new naming convention of extraction toolsets.

* Update extractor_es.bat

Co-Authored-By: 55Honey <71938210+55Honey@users.noreply.github.com>

Co-authored-by: 55Honey <71938210+55Honey@users.noreply.github.com>
2022-06-21 18:36:52 -04:00
Kargatum
94528cd44d feat(Tools/DbImport): implement separated app for importing DB (#11614) 2022-06-09 08:23:38 -03:00
Kargatum
4fbec972a8 refactor(Cmake): add support build selected applications and tools (#11836) 2022-05-31 17:05:39 +07:00
Kitzunu
671f573044 chore: update AC data version (#11709) 2022-05-10 23:53:19 +02:00
Nefertumm
02b93ee708 chore: update AC data version (#11703) 2022-05-09 20:31:54 -03:00
Skjalf
8c154e6ef7 chore(CI): Remove version check (#11572) 2022-04-29 11:41:16 -03:00
Kitzunu
026941c39e refactor(DB): Handle SQL files in a new way (#11494)
* refactor(DB): Handle SQL files in a new way

* remove proof that it works files

* Update rev_1650721405699287200.sql

* Update rev_1650721339143444200.sql

* Update rev_1650721386624384400.sql

* fix build

* fix
2022-04-28 14:37:37 -03:00
Stefano Borzì
77720506c0 chore: update AC data version (#11535) 2022-04-25 16:21:40 -03:00