-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor(Apps/Docker): Remove Deno as a dependency from Docker Build #16898
Conversation
RIP, would probably help if I implemented the thing I had meant to. commit should be in today. |
@podmepodme It should now be fixed. I neglected to consider how the deno install process can get started through the shell script spaghetti. This has been tested on a ARM64 (t4g) EC2 instance in AWS running Amazon Linux 3, and after installing a system install of Deno, I was able to build and start the containers without issue.
Probably. The problem I ran into is that a lot of the change kind of required a refactor, and then the other refactors were such low hanging fruit that it was hard to resist :p |
It's fine to keep it in one pr =) |
Good catch. That didn't happen to me, but maybe I missed something. |
@podmepodme Ok, I'm pretty sure I've gotten it this time. |
Oh, sorry. I forgot to document it. the It's been replaced with a |
conflict |
Bump |
Closing this as it has been superseded by #16934 |
I can be contacted on discord as @mynameismeat. I accept DM's, though I strongly prefer a message in one of the channels. #support-general is probably fine (we can open up a thread), but I defer to Discord Admins to proper topic placement.
Changes Proposed:
apps/docker/docker-cmd.ts
acore.sh
script can only be run on MacOS (Apple Silicon)./acore.sh docker client-data
has been moved and replaced with a service which downloads the client data indocker-compose.yml
Dockerfile
RUN
commands of the same command (such asmkdir
andchown
) have been moved into oneRUN
Issues Addressed:
sudo
usage has been reducedroot
, mostly due to liberal use ofsudo
sudo
is by no means needed. It's easier and cleaner to remove the dependencyservicebase
images have had the libboost packages replaced with their non-development versionsTests Performed:
docker-compose.yml
file is broken (in regards to database)How to Test the Changes:
./acore.sh docker build
./acore.sh docker start:app
a.
docker-compose --profile app --profile dev --profile prod-app --profile prod down --remove-orphans -v
./acore.sh docker prod:build
./acore.sh docker prod:up
a. This will fail due to a bug in the
docker-compose.yml
fileb. This is "somewhat" fine, since the prod containers are mainly used exclusively for the
acore-docker
repo, which hosts its' owndocker-compose.yml
fileKnown Issues and TODO List:
acore.sh
dashboard is complex and jumps through many hoops.docker
cli, or an incredibly thin wrapper (ie, a single layer of abstraction) around thedocker
cliHow 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.