mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
e66cd3978d
* 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.
24 lines
842 B
Bash
Executable File
24 lines
842 B
Bash
Executable File
#!/bin/bash
|
|
cd "$(dirname "$0")"
|
|
|
|
#
|
|
# aborting if any command returns a non-zero value
|
|
set -e
|
|
|
|
GIT_COMMIT=`git rev-parse --short HEAD`
|
|
GIT_BRANCH=`git rev-parse --symbolic-full-name --abbrev-ref HEAD`
|
|
|
|
# if first argument is nvidia, use nvidia dockerfile
|
|
if [ "$1" = "nvidia" ]; then
|
|
echo "Building nvidia docker image"
|
|
DOCKERFILE="Dockerfile.nvidia"
|
|
else
|
|
echo "Building default docker image"
|
|
DOCKERFILE="Dockerfile"
|
|
fi
|
|
|
|
docker build -t neko_server_build --target build --build-arg "GIT_COMMIT=$GIT_COMMIT" --build-arg "GIT_BRANCH=$GIT_BRANCH" -f ../$DOCKERFILE ..
|
|
docker build -t neko_server_runtime --target runtime --build-arg "GIT_COMMIT=$GIT_COMMIT" --build-arg "GIT_BRANCH=$GIT_BRANCH" -f ../$DOCKERFILE ..
|
|
|
|
docker build -t neko_server_app --build-arg "BASE_IMAGE=neko_server_runtime" -f ./runtime/$DOCKERFILE ./runtime
|