docker push

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

View File

@@ -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