mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-02-02 02:23:49 +00:00
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
This commit is contained in:
17
apps/installer/utils.ts
Normal file
17
apps/installer/utils.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
import * as path from "https://deno.land/std/path/mod.ts";
|
||||
import makeloc from "https://deno.land/x/dirname@1.1.2/mod.ts";
|
||||
|
||||
const { __dirname } = makeloc(import.meta);
|
||||
|
||||
// specify the needed paths here
|
||||
const ACORE_JSON = path.resolve(__dirname + "/../../acore.json");
|
||||
|
||||
export async function getAcoreReleaseVersion() {
|
||||
// read the acore.json file to work with the versioning
|
||||
const decoder = new TextDecoder("utf-8");
|
||||
//console.debug(`Open ${ACORE_JSON}`)
|
||||
const data = await Deno.readFile(ACORE_JSON);
|
||||
const acoreInfo = JSON.parse(decoder.decode(data));
|
||||
|
||||
return `AzerothCore Rev. ${acoreInfo.version}`;
|
||||
}
|
||||
Reference in New Issue
Block a user