Commit Graph

32 Commits

Author SHA1 Message Date
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
23c5e990b6 fix(Apps/Docker): ensure conf files always exist (#17071) 2023-08-25 22:02:21 +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
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
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
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
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
Kargatum
4fbec972a8 refactor(Cmake): add support build selected applications and tools (#11836) 2022-05-31 17:05:39 +07:00
Stefano Borzì
8301434a01 fix(Bash/Dashboard): fix macOS configurations (#11002) 2022-03-16 18:57:03 +01:00
Francesco Borzì
dd79b7f63f feat(CI): C++20 build (#8952) 2021-11-05 08:58:17 +01:00
Kargatum
b680670047 feat(CMake): delete EXTRA_LOGS (#6897) 2021-07-14 23:47:40 +02:00
Patrick Lewis
637041598f fix(BASH/Compiler): error in if condition (#5983) 2021-05-30 22:43:31 +02:00
Patrick Lewis
af04ba0790 fix(Bash): process priority class Permission denied (#5686) 2021-05-09 18:08:42 -06:00
Yehonal
f6c6123d85 feat(docker): production images, integrated ccache and many other improvements (#5551) 2021-05-04 11:35:24 +02:00
Yehonal
e4fafc61dd fix(Docker): windows improvements and permissions fix (#5444) 2021-04-28 22:26:39 +02:00
Patrick Lewis
81301c67d9 feat(CI): add extra_logs to build matrix and update warden ByteArrayToHexStr (#5102) 2021-04-11 16:08:15 +02:00
Francesco Borzì
c838b371dd chore(CMake/Tests): use conventional CMake flag to enable tests (#3809) 2020-11-29 19:28:47 +01:00
Kitzunu
9ce76376da refactor(Apps/Defines): Codefactor warning (#3714) 2020-11-19 11:24:38 -06:00
Francesco Borzì
c2b40b126d feature(testing-automation): unit tests with Google Framework (#3273) 2020-08-15 22:34:45 +02:00
Yehonal
ad6ad094de feat(bash): support for derivated distro + refactor conf (#3259)
* feat(bash): support for derivated distro

* refactor: refactoring for dist files
2020-08-06 02:37:14 +02:00
Stoabrogga
5278e96aca ignore exit code of 'make clean' as it won't find a Makefile if called as first action (which is the case for "compiler all") 2018-08-05 04:55:47 +00:00
Stoabrogga
287b2010ea exit compiler script if any statement returns non-zero exit code 2018-08-04 22:50:16 +00:00
Yehonal
af5256cd5b Various fixes to acore dashboard
+ simple restarter now prevents infinite crash loops
+ client data downloader now uses github releases and fixed downloading path
+ module updating now take care about compatibility version info
+ disabled CONFDIR variable in bash conf file, using BINPATH by default instead
2018-07-17 13:54:23 +02:00
Yehonal
afbe059d5a fixed loop with comp_build() function of compiler 2018-07-15 23:33:22 +02:00
Yehonal
85388901cf Rewrite of bash system
+ Implemented new dashboard menu
+ some fixes for db_assembler
+ new module installation process with version check via json files
+ some fixes to modules installer
+ implemented simple crossplatform worldserver and authserver restarters
+ new compiler script
+ client data downloader (beta)
+ various other fixes
2018-07-15 22:51:17 +02:00
Yehonal
fca0bfdb1f Bash: executable permissions for .sh files 2017-12-21 15:51:39 +01:00
Yehonal
c64f8d8e82 Fixed compilation after dir rework 2017-10-13 19:22:53 +02:00
Yehonal
bbc9a21e94 Bash: fixing scripts after directory rework 2017-10-13 14:37:37 +02:00
Yehonal
f06f32849f Directory Structure [step 1]: moving files
working on #672

NOTE: This commit can't be compiled!!
2017-10-12 20:00:52 +02:00