Commit Graph

39 Commits

Author SHA1 Message Date
Jelle Meeus
5bc512f75c chore(Docker): Update dev container to ubuntu24.04 (#21044) 2025-01-19 12:46:28 +01: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
Mike Delago
af1a6f3521 apps(docker): Fix Warnings in Dockerfile (#19537) 2024-08-18 06:17:30 +02: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
45145fed48 fix(Docker): Check write access for config dir (#18238) 2024-05-18 19:12:22 +02:00
Mike Delago
e282f6caaa Fix(Docker): Add missing dollar sign (#18314) 2024-02-13 10:34:29 -05: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
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
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
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
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
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
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
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
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
Kargatum
4fbec972a8 refactor(Cmake): add support build selected applications and tools (#11836) 2022-05-31 17:05:39 +07:00
Kitzunu
6b4f141cf8 fix(CI/Docker): Redacted Eluna (#11418) 2022-04-16 18:29:26 +02:00
Kargatum
96c51317f5 feat(Deps/ACE): remove ACE library (part 1/2) (#6980) 2021-07-16 15:05:39 +02:00
Kargatum
5991b2769a feat(Core/Scripts): split the huge scriptloader into smaller pieces (#5346)
* feat(Core/Scripts): split the huge scriptloader into smaller pieces

* AddSC_swamp_of_sorrows del

* 1

* add mod info

* 1

* 039f0e0faa

Co-authored-by: Kitzunu <24550914+Kitzunu@users.noreply.github.com>
2021-06-22 23:19:02 +02:00
Yehonal
3f70d0b80f feat(doc): changelog system (#6350)
This system provides rules and automatizes (Deno-typescript) the creation of a changelog file to help developers to adapt their code and know what is new with every (pre)release
2021-06-15 11:04:29 +02:00
Kargatum
50adcf2065 feat(Deps/Boost): add boost support (#5676)
* feat(Deps/Boost): add boost support

* 1

* 2

* to 1.74
2021-05-23 13:53:15 +02:00
Luis Vaz
29bed995ae Update docker-cmd.ts (#5973)
Co-authored-by: Patrick Lewis <pat@lo5t.com>
2021-05-21 20:15:07 -07:00
Yehonal
ff2737fee8 feat(bash): Improved support for gperftools (#5769) 2021-05-10 22:21:23 +02:00
Yehonal
e564994b37 chore(docker): pre-install deno within the images (#5644) 2021-05-06 14:54:04 +02:00
Yehonal
01f188fcf5 fix(docker): reduced client-data image of 200% 2021-05-04 18:41:55 +02:00
Yehonal
f6c6123d85 feat(docker): production images, integrated ccache and many other improvements (#5551) 2021-05-04 11:35:24 +02:00
Patrick Lewis
e02d5f4ae4 fix(BASH): cp docker configs (#5536)
* fix(BASH): cp docker configs

* fix(DOCKER): typo
2021-04-29 01:31:17 -07:00
Yehonal
e4fafc61dd fix(Docker): windows improvements and permissions fix (#5444) 2021-04-28 22:26:39 +02:00
Yehonal
380f406248 Feat(Docker/bash): docker-compose system rework (#4488)
## ⚠️ATTENTION! ⚠️ Upgrading procedure:

**Database:** After this PR will be merged you need to backup your DB first (you can use the db-assembler or any mysql client to generate the dump) and restore it after.  The reason is that we use now docker named volumes instead of binded ones to improve performance.

**Conf & client data**: if you use the default configuration, both the etc and the data folder are now available inside the **/env/docker**. 

Finally, you can cleanup the /docker folder previously used by our system.

## Changes Proposed:

This PR will implement the [devcontainer ](https://code.visualstudio.com/docs/remote/containers) feature for VSCode. Allowing us to develop and debug directly within the container in the same way on all OSes.

* Implemented support for vscode dev-container feature by remote-extension suite
* Docker performance optimizations for MacOS and non-linux hosts
* Bash system improvements
* Implemented first command using Deno runtime environment (typescript) and [commander.js]
* Implemented wait mechanism for db_assembler
* Implemented db migration command
* possibility to run the authserver and worldserver with GDB using the integrated simple-restarter
* Implemented docker multi-stage mechanism to use one single Dockerfile for all the services
* client-data downloader now creates a placeholder to avoid downloading the same version of data files multiple times
* deployment of pre-compiled docker images on [docker hub](https://hub.docker.com/u/acore), you can test them [here](https://github.com/azerothcore/acore-docker)
2021-04-22 09:57:05 +02:00