1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-12 00:28:20 +08:00

Opt: Add optional MAA installation for Docker (#2173)

Tip. Since the MAA latest release is built by g++12 and requires GLIBC 2.32 or higher, we changed the base docker image to ubuntu jammy(22.04 LTS), which already have prebuilt GLIBC 2.35
This commit is contained in:
orangesoup
2023-01-28 18:41:38 +08:00
committed by GitHub
parent bcdfb040cf
commit 80d5a125ec
4 changed files with 41 additions and 4 deletions

View File

@@ -51,4 +51,8 @@ prun_or_continue "adb kill-server"
pprint "Running the container"
trap "rm ${XDG_RUNTIME_DIR}/${CONTAINER}.lock && docker kill ${CONTAINER}" EXIT
prun "docker run --net=host --volume=${SOURCE}/..:/app/AzurLaneAutoScript:rw --interactive --tty --name ${CONTAINER} ${CONTAINER}"
# If you need MAA support, uncomment the following two lines and comment the line above(Modify the path of MAA according to the actual situation)
# MAA_SOURCE="${SOURCE}/../../MAA"
# prun "docker run --net=host --volume=${SOURCE}/..:/app/AzurLaneAutoScript:rw --vloume=${MAA_SOURCE}:/app/MAA:rw --interactive --tty --name ${CONTAINER} ${CONTAINER}"