docker push
parent
289328c973
commit
e82ece9fd8
|
|
@ -2,3 +2,4 @@
|
|||
snowboy-2022/snowboy
|
||||
**/*.git.d
|
||||
**/*.wav
|
||||
snowboy-2022/Dockerfile
|
||||
|
|
|
|||
|
|
@ -66,6 +66,20 @@ if false; then
|
|||
else
|
||||
resources="$(realpath snowboy.git.d/resources/common.res)"
|
||||
hotword="$(realpath ./model/hotword.pmdl)"
|
||||
go build -o snowboy
|
||||
./snowboy -model "$hotword" -resources "$resources" -sensitivity 0.5
|
||||
GOPROXY= go build -o snowboy
|
||||
if [ -z "$PUSH" ]; then
|
||||
./snowboy -model "$hotword" -resources "$resources" -sensitivity 0.5
|
||||
else
|
||||
echo '
|
||||
FROM registry-app.eng.qops.net:5001/imported/alpine:3.16
|
||||
WORKDIR /main/
|
||||
COPY ./snowboy.git.d/resources/common.res ./
|
||||
COPY ./model/hotword.pmdl ./
|
||||
COPY ./snowboy ./
|
||||
ENTRYPOINT ["sh", "-c", "true; echo copying /main/ to /mnt/; cp /main/* /mnt/"]
|
||||
CMD []
|
||||
' > Dockerfile
|
||||
docker build -t registry-app.eng.qops.net:5001/breel/snowboy:latest .
|
||||
docker push registry-app.eng.qops.net:5001/breel/snowboy:latest
|
||||
fi
|
||||
fi
|
||||
|
|
|
|||
Loading…
Reference in New Issue