docker push

master
Bel LaPointe 2022-11-14 08:38:42 -07:00
parent 289328c973
commit e82ece9fd8
2 changed files with 17 additions and 2 deletions

1
.gitignore vendored
View File

@ -2,3 +2,4 @@
snowboy-2022/snowboy snowboy-2022/snowboy
**/*.git.d **/*.git.d
**/*.wav **/*.wav
snowboy-2022/Dockerfile

View File

@ -66,6 +66,20 @@ if false; then
else else
resources="$(realpath snowboy.git.d/resources/common.res)" resources="$(realpath snowboy.git.d/resources/common.res)"
hotword="$(realpath ./model/hotword.pmdl)" hotword="$(realpath ./model/hotword.pmdl)"
go build -o snowboy GOPROXY= go build -o snowboy
./snowboy -model "$hotword" -resources "$resources" -sensitivity 0.5 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 fi