更新 'build.sh'

This commit is contained in:
zhongjin 2023-01-18 21:00:32 +08:00
parent ef1c958d45
commit 26f7112b7f

View File

@ -3,8 +3,8 @@
TAG=$1
cd ${TAG} && \
docker build --pull --force-rm -t andrius/asterisk:${TAG} --file ./Dockerfile . && \
docker run -d --rm --name asterisk-${TAG} andrius/asterisk:${TAG} && \
docker build --pull --force-rm -t onenetcom/asterisk:${TAG} --file ./Dockerfile . && \
docker run -d --rm --name asterisk-${TAG} onenetcom/asterisk:${TAG} && \
sleep 3 && \
docker exec -ti asterisk-${TAG} sh -c 'cat /etc/iss*' && \
docker exec -ti asterisk-${TAG} sh -c 'asterisk -rx "core show version"; exit $?' && echo "ok $?" || echo "not ok" ; \