更新 'build.sh'
This commit is contained in:
parent
ef1c958d45
commit
26f7112b7f
4
build.sh
4
build.sh
@ -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" ; \
|
||||
|
Loading…
Reference in New Issue
Block a user