mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
55005a6f8d
* add nvidia dockerfile.
* add nvidia docker to build.
* remove vaapi.
* add google chrome and brave.
* upgrade to virtualgl 3.1.
* add disable-seccomp-filter-sandbox to chrome.
* use vgl display in vglrun.
* Revert "use vgl display in vglrun."
This reverts commit 0cd556b5d8
.
* update chrome params.
* update changelog.
* update brave.
* update CI.
34 lines
734 B
Bash
Executable File
34 lines
734 B
Bash
Executable File
#!/bin/bash
|
|
|
|
if [ -f ".env.default" ]
|
|
then
|
|
export $(cat .env.default | sed 's/#.*//g' | xargs)
|
|
fi
|
|
|
|
if [ -f ".env" ]
|
|
then
|
|
export $(cat .env | sed 's/#.*//g' | xargs)
|
|
fi
|
|
|
|
BINARY_PATH="${PWD}/../server/bin/neko"
|
|
|
|
# use -r to rebuild
|
|
if [ ! -f "${BINARY_PATH}" ] || [ "$1" == "-r" ]; then
|
|
./rebuild-server
|
|
fi
|
|
|
|
# use --gpus all to enable GPU acceleration
|
|
docker run --rm -it \
|
|
--name "neko_dev" \
|
|
-p "${SERVER_PORT}:8080" \
|
|
-p "${SERVER_EPR}:${SERVER_EPR}/udp" \
|
|
-e "NEKO_SCREEN=1920x1080@60" \
|
|
-e "NEKO_EPR=${SERVER_EPR}" \
|
|
-e "NEKO_NAT1TO1=${SERVER_IP}" \
|
|
-e "NEKO_ICELITE=true" \
|
|
-e "NEKO_MAX_FPS=25" \
|
|
-v "${BINARY_PATH}:/usr/bin/neko" \
|
|
--shm-size=2G \
|
|
--cap-add SYS_ADMIN \
|
|
${BUILD_IMAGE}:${SERVER_TAG}
|