[DiscordArchive] hey i just got a server working using docker and want to try adding modules. do i just need to add t
[DiscordArchive] hey i just got a server working using docker and want to try adding modules. do i just need to add t
Archived author: leveler • Posted: 2023-10-02T22:03:25.691000+00:00
Original source
hey i just got a server working using docker and want to try adding modules. do i just need to add the modules to what i already have and build again? or should i prune/redownload everything and start from a fresh slate?
Archived author: MATU • Posted: 2023-10-03T00:02:59.023000+00:00
Original source
Is it possible to add an icon to the docker containers for unraid.
At the moment all my azerothcore containers have no icon in unraid.
It is because they have not been installed with the unraid community applications. I think I found the scripts that create these docker containers in the server files:
EXAMPLE:
docker-cmd.sh
`build)
set -x
docker compose --profile local --profile dev --profile dev-build build
docker compose --profile dev-build run --rm --no-deps ac-dev-build /bin/bash /azerothcore/apps/docker/docker-build-dev.sh
set +x
shift
;;`
I just installed a random docker in unraid and found some stuff in the log files of unraid how unraid usually adds a docker:
`docker run
-d
--name='x-mariohtml5'
--net='bridge'
-e TZ="Europe/Berlin"
-e HOST_OS="Unraid"
-e HOST_HOSTNAME="mServer"
-e HOST_CONTAINERNAME="x-mariohtml5"
-l net.unraid.docker.managed=dockerman
-l net.unraid.docker.webui='http://[IP]:[PORT:80]'
-l net.unraid.docker.icon='https://raw.githubusercontent.com/xavier-hernandez/unraid-templates/master/resources/mario.png'
-p '8929:80/tcp' 'xavierh/mariohtml5'
c539fd3d12441770cef5b2e1a4f999ddfd61556888ee346b918b9e5058ed0104
The command finished successfully!`
Can the parameter -l net.unraid.docker.icon=' {URL} ' somehow be added to the command that azerothcore uses to create these dockers? I mean it's just a little cosmetic thing for my unraid UI but it would be nice if that was possible somehow
![[Image: image.png?ex=690be748&is=690a95c8&hm=d96...a8418ebbc&]](https://cdn.discordapp.com/attachments/535208956449128490/1158556457357299712/image.png?ex=690be748&is=690a95c8&hm=d9657d2e843e172635d704add25f0f3d10ffdd4fad90e5e8b23aa2ca8418ebbc&)
Archived author: MATU • Posted: 2023-10-03T00:09:44.427000+00:00
Original source
Here, that you can see what I mean :
![[Image: image.png?ex=690be748&is=690a95c8&hm=d96...a8418ebbc&]](https://cdn.discordapp.com/attachments/535208956449128490/1158556457357299712/image.png?ex=690be748&is=690a95c8&hm=d9657d2e843e172635d704add25f0f3d10ffdd4fad90e5e8b23aa2ca8418ebbc&)
Archived author: mynameismeat • Posted: 2023-10-03T01:14:57.773000+00:00
Original source
I think there's a "labels" parameter in docker compose, so you could add something like
```yaml
services:
ac-worldserver:
labels:
Foo: bar
```
Archived author: mynameismeat • Posted: 2023-10-03T01:21:57.887000+00:00
Original source
I can confirm in like 30 min
Archived author: mynameismeat • Posted: 2023-10-03T01:49:08.250000+00:00
Original source
yeah , doc is here
<https://docs.docker.com/compose/compose-file/compose-file-v3/#labels-2>
Archived author: mynameismeat • Posted: 2023-10-03T01:50:06.288000+00:00
Original source
yeah. Basically just clone the module to `modules` and build again. Should be good to go after that. The process is exactly like it is without docker, except a different build command, of course
Archived author: leveler • Posted: 2023-10-03T02:12:11.273000+00:00
Original source
thanks. i also noticed in the docker instructions it says "If the added module makes use of configurations files you'll have to place them in the azerothcore-wotlk/env/docker/etc/modules". is this meaning that i need to place the entire module folder there instead of azerorthcore-wotlk/modules. or do i just put the conf file in that location (ie transmog.conf.dist)?
Archived author: mynameismeat • Posted: 2023-10-03T02:37:22.777000+00:00
Original source
Yeah, that should be done automatically on build, but if not, the second (so `env/dist/etc/modules/transmog.conf.dist`)