Updated tags, now it containing linux distributive, version and asterisk version

This commit is contained in:
Andrius Kairiukstis 2018-09-22 12:44:45 +02:00
parent ac5a0df155
commit 311389246e
37 changed files with 24 additions and 2 deletions

View File

@ -6,11 +6,12 @@ The smallest Docker image with Asterisk PBX https://hub.docker.com/r/andrius/ast
This image is based on Alpine Linux image, which is only a 5MB image, and contains This image is based on Alpine Linux image, which is only a 5MB image, and contains
[Asterisk PBX](http://www.asterisk.org/get-started/features). [Asterisk PBX](http://www.asterisk.org/get-started/features).
Total size of this image for `latest` tag (Alpine-based) is: Total size of this image for `latest` tag (based on Alpine linux) is:
[![](https://images.microbadger.com/badges/image/andrius/asterisk.svg)](https://microbadger.com/images/andrius/asterisk "Get your own image badge on microbadger.com") [![](https://images.microbadger.com/badges/image/andrius/asterisk.svg)](https://microbadger.com/images/andrius/asterisk "Get your own image badge on microbadger.com")
And for `debian-15-current` [![](https://images.microbadger.com/badges/image/andrius/asterisk:debian-15-current.svg)](https://microbadger.com/images/andrius/asterisk:debian-15-current "Get your own image badge on microbadger.com"). And for `debian-stretch-slim-15-current`
[![](https://images.microbadger.com/badges/image/andrius/asterisk:debian-stretch-slim-15-current.svg)](https://microbadger.com/images/andrius/asterisk:debian-stretch-slim-15-current "Get your own image badge on microbadger.com").
# Custom UID/GID # Custom UID/GID

12
build.sh Executable file
View File

@ -0,0 +1,12 @@
#!/bin/sh
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} && \
sleep 3 && \
docker exec -ti asterisk-${TAG} sh -c "cat /etc/iss*"; \
docker exec -ti asterisk-${TAG} sh -c "asterisk -rx 'core show version'"; \
docker stop asterisk-${TAG}; \
cd ..

9
check-docker-hub.sh Executable file
View File

@ -0,0 +1,9 @@
#!/bin/sh
TAG=$1
docker pull andrius/asterisk:${TAG} && \
docker run -d --rm --name asterisk-${TAG} andrius/asterisk:${TAG} && \
sleep 2 && \
docker exec -ti asterisk-${TAG} sh -c "asterisk -rx 'core show version'"; \
docker stop asterisk-${TAG}; \
docker rmi andrius/asterisk:${TAG}