neko/dev/rebuild
Miroslav Šedivý e66cd3978d
Build gstreamer in nvidia image (#36)
* build gstreamer 1.20 for nvidia dockerfile.

* add nvidia to build.

* add nvidia to start.

* add config for nvidia.

* upgrade cuda ro 11.4.3.

* add cudaconvert to comment.

* fix paths.

* add cuda to ld.

* upgrade supervisord version.

* add config to suprtvisord in rebuild.

* update nvenc params.

* update nvidia dockerfile.

* h264 profile constrained-baseline.

* h264 send SPS PPS with every IDR.
2023-04-04 23:52:15 +02:00

33 lines
670 B
Bash
Executable File

#!/bin/bash
cd "$(dirname "$0")"
#
# aborting if any command returns a non-zero value
set -e
#
# build server
docker run --rm -it \
-v "${PWD}/../:/src" \
--entrypoint="/bin/bash" \
neko_server_build "./build" "$@";
#
# remove old plugins
docker exec neko_server_dev rm -rf /etc/neko/plugins
#
# replace server binary in container
docker cp "${PWD}/../bin/neko" neko_server_dev:/usr/bin/neko
#
# replace plugin binaries in container
if [ -d "${PWD}/../bin/plugins" ];
then
docker cp "${PWD}/../bin/plugins" neko_server_dev:/etc/neko/plugins
fi
#
# restart server
docker exec neko_server_dev supervisorctl -c /etc/neko/supervisord.conf restart neko