whole range of asterisk releases plus basic testing
This commit is contained in:
parent
0e1a0f87cb
commit
3a17f7e3f6
@ -1 +0,0 @@
|
||||
debian-stretch-slim-13-current
|
@ -1 +0,0 @@
|
||||
debian-stretch-slim-14-current
|
@ -1 +0,0 @@
|
||||
debian-stretch-slim-15-current
|
@ -1 +0,0 @@
|
||||
debian-buster-slim-16-current
|
288
Makefile
Normal file
288
Makefile
Normal file
@ -0,0 +1,288 @@
|
||||
IMAGE_NAME := andrius/asterisk
|
||||
|
||||
# <Dockerfile>:<version>
|
||||
# OR
|
||||
# <Dockerfile>:<version>,<tag1>,<tag2>,...
|
||||
X86_IMAGES := \
|
||||
alpine/edge:edge \
|
||||
alpine/latest:latest \
|
||||
alpine/glibc:glibc_latest,alpine_glibc-16.x,glibc-16.x,alpine_glibc-16.3.0,glibc-16.3.0 \
|
||||
alpine/3.11:3.11-16.6.2,16.x \
|
||||
alpine/3.10:3.10-16.3.0 \
|
||||
alpine/3.9:3.9-15.7.4,15.x \
|
||||
alpine/3.8:3.8-15.6.2 \
|
||||
alpine/3.7:3.7-15.6.2 \
|
||||
alpine/3.6:3.6-14.7.8,14.x \
|
||||
alpine/3.5:3.5-14.7.8 \
|
||||
alpine/3.4:3.4-13.18.5,13.x \
|
||||
alpine/3.3:3.3-13.17.2 \
|
||||
alpine/3.2:3.2-13.3.2 \
|
||||
alpine/3.1:3.1-13.3.2 \
|
||||
alpine/2.7:2.7-11.25.1,11.x \
|
||||
alpine/2.6:2.6-11.6.1 \
|
||||
debian/17-current:17-current \
|
||||
debian/16-current:16-current \
|
||||
debian/16-certified:16-certified,16.3-cert \
|
||||
debian/13-current:13-current \
|
||||
debian/13-certified:13-certified,13.21-cert \
|
||||
debian/15.7.4:15.7.4 \
|
||||
debian/14.7.8:14.7.8 \
|
||||
debian/12.8.2:12.8.2 \
|
||||
debian/11.25.3:11.25.3 \
|
||||
debian/10.12.4:10.12.4 \
|
||||
debian/1.8.32.3:1.8.32.3 \
|
||||
debian/1.6.2.24:1.6.2.24 \
|
||||
debian/1.4.44:1.4.44 \
|
||||
centos/1.6.2.24:1.6.2.24 \
|
||||
centos/1.4.44:1.4.44 \
|
||||
centos/1.2.40:1.2.40
|
||||
|
||||
ALL_IMAGES := $(X86_IMAGES)
|
||||
|
||||
|
||||
|
||||
# Default is first image from ALL_IMAGES list.
|
||||
DOCKERFILE ?= $(word 1,$(subst :, ,$(word 1,$(ALL_IMAGES))))
|
||||
VERSION ?= $(word 1,$(subst $(comma), ,\
|
||||
$(word 2,$(subst :, ,$(word 1,$(ALL_IMAGES))))))
|
||||
TAGS ?= $(word 2,$(subst :, ,$(word 1,$(ALL_IMAGES))))
|
||||
|
||||
no-cache ?= no
|
||||
|
||||
comma := ,
|
||||
empty :=
|
||||
space := $(empty) $(empty)
|
||||
eq = $(if $(or $(1),$(2)),$(and $(findstring $(1),$(2)),\
|
||||
$(findstring $(2),$(1))),1)
|
||||
|
||||
|
||||
|
||||
# Default Makefile rule:
|
||||
# Make manual release of all supported Docker images to Docker Hub.
|
||||
# Usage:
|
||||
# make all [no-cache=(yes|no)]
|
||||
|
||||
all: | release-all
|
||||
|
||||
|
||||
|
||||
# Make manual release of all supported Docker images to Docker Hub.
|
||||
#
|
||||
# Usage:
|
||||
# make release-all [no-cache=(yes|no)]
|
||||
|
||||
release-all:
|
||||
(set -e ; $(foreach img,$(ALL_IMAGES), \
|
||||
make release no-cache=$(no-cache) \
|
||||
DOCKERFILE=$(word 1,$(subst :, ,$(img))) \
|
||||
VERSION=$(word 1,$(subst $(comma), ,\
|
||||
$(word 2,$(subst :, ,$(img))))) \
|
||||
TAGS=$(word 2,$(subst :, ,$(img))) ; \
|
||||
))
|
||||
|
||||
|
||||
|
||||
# Make manual release of Docker images to Docker Hub.
|
||||
#
|
||||
# Usage:
|
||||
# make release [no-cache=(yes|no)] [DOCKERFILE=] [VERSION=] [TAGS=t1,t2,...]
|
||||
|
||||
release: | post-push-hook post-checkout-hook image tags test push
|
||||
|
||||
|
||||
|
||||
# Build all supported Docker images.
|
||||
#
|
||||
# Usage:
|
||||
# make image-all
|
||||
|
||||
image-all:
|
||||
(set -e ; $(foreach img,$(ALL_IMAGES), \
|
||||
make image no-cache=$(no-cache) \
|
||||
DOCKERFILE=$(word 1,$(subst :, ,$(img))) \
|
||||
VERSION=$(word 1,$(subst $(comma), ,\
|
||||
$(word 2,$(subst :, ,$(img))))) ; \
|
||||
))
|
||||
|
||||
|
||||
|
||||
# Build Docker image.
|
||||
#
|
||||
# Usage:
|
||||
# make image [no-cache=(yes|no)] [DOCKERFILE=] [VERSION=]
|
||||
|
||||
no-cache-arg = $(if $(call eq, $(no-cache), yes), --no-cache, $(empty))
|
||||
|
||||
image:
|
||||
docker build $(no-cache-arg) -t $(IMAGE_NAME):$(VERSION) $(DOCKERFILE) --build-arg VERSION=$(VERSION)
|
||||
|
||||
|
||||
|
||||
# Tag Docker image with given tags.
|
||||
#
|
||||
# Usage:
|
||||
# make tags [VERSION=] [TAGS=t1,t2,...]
|
||||
|
||||
parsed-tags = $(subst $(comma), $(space), $(TAGS))
|
||||
|
||||
tags:
|
||||
(set -e ; $(foreach tag, $(parsed-tags), \
|
||||
docker tag $(IMAGE_NAME):$(VERSION) $(IMAGE_NAME):$(tag) ; \
|
||||
))
|
||||
|
||||
|
||||
|
||||
# Manually push all supported Docker images to Docker Hub.
|
||||
|
||||
push-all:
|
||||
(set -e ; $(foreach img,$(ALL_IMAGES), \
|
||||
make push \
|
||||
TAGS=$(word 2,$(subst :, ,$(img))) ; \
|
||||
))
|
||||
|
||||
|
||||
|
||||
# Manually push Docker images to Docker Hub.
|
||||
#
|
||||
# Usage:
|
||||
# make push [TAGS=t1,t2,...]
|
||||
|
||||
push:
|
||||
(set -e ; $(foreach tag, $(parsed-tags), \
|
||||
docker push $(IMAGE_NAME):$(tag) ; \
|
||||
docker rmi ${IMAGE_NAME}:${tag} ; \
|
||||
))
|
||||
|
||||
|
||||
|
||||
# Create `post_push` Docker Hub hook.
|
||||
#
|
||||
# When Docker Hub triggers automated build all the tags defined in `post_push`
|
||||
# hook will be assigned to built image. It allows to link the same image with
|
||||
# different tags, and not to build identical image for each tag separately.
|
||||
# See details:
|
||||
# http://windsock.io/automated-docker-image-builds-with-multiple-tags
|
||||
#
|
||||
# Usage:
|
||||
# make post-push-hook [DOCKERFILE=] [TAGS=t1,t2,...]
|
||||
|
||||
post-push-hook:
|
||||
mkdir -p $(DOCKERFILE)/hooks
|
||||
docker run --rm -i -v $(PWD)/post_push.erb:/post_push.erb:ro \
|
||||
ruby:alpine erb -U \
|
||||
image_tags='$(TAGS)' \
|
||||
/post_push.erb > $(DOCKERFILE)/hooks/post_push
|
||||
|
||||
|
||||
|
||||
# Create `post_push` Docker Hub hook for all supported Docker images.
|
||||
#
|
||||
# Usage:
|
||||
# make post-push-hook-all
|
||||
|
||||
post-push-hook-all:
|
||||
(set -e ; $(foreach img,$(ALL_IMAGES), \
|
||||
make post-push-hook \
|
||||
DOCKERFILE=$(word 1,$(subst :, ,$(img))) \
|
||||
TAGS=$(word 2,$(subst :, ,$(img))) ; \
|
||||
))
|
||||
|
||||
|
||||
|
||||
# Create `post_checkout` Docker Hub hook.
|
||||
#
|
||||
# When Docker Hub triggers automated build, the `post_checkout` hook is called
|
||||
# after the Git repo is checked out. This can be used to set up prerequisites
|
||||
# for, for example, cross-platform builds.
|
||||
# See details:
|
||||
# https://docs.docker.com/docker-cloud/builds/advanced/#build-hook-examples
|
||||
#
|
||||
# Usage:
|
||||
# make post-checkout-hook [DOCKERFILE=]
|
||||
|
||||
post-checkout-hook:
|
||||
if [ -n "$(findstring /armhf/,$(DOCKERFILE))" ]; then \
|
||||
mkdir -p $(DOCKERFILE)/hooks; \
|
||||
docker run --rm -i -v $(PWD)/post_checkout.erb:/post_checkout.erb:ro \
|
||||
ruby:alpine erb -U \
|
||||
dockerfile='$(DOCKERFILE)' \
|
||||
/post_checkout.erb > $(DOCKERFILE)/hooks/post_checkout ; \
|
||||
fi
|
||||
|
||||
|
||||
# Create `post_push` Docker Hub hook for all supported Docker images.
|
||||
#
|
||||
# Usage:
|
||||
# make post-checkout-hook-all
|
||||
|
||||
post-checkout-hook-all:
|
||||
(set -e ; $(foreach img,$(ALL_IMAGES), \
|
||||
make post-checkout-hook \
|
||||
DOCKERFILE=$(word 1,$(subst :, ,$(img))) ; \
|
||||
))
|
||||
|
||||
|
||||
|
||||
# Run tests for all supported Docker images.
|
||||
#
|
||||
# Usage:
|
||||
# make test-all [prepare-images=(no|yes)]
|
||||
|
||||
prepare-images ?= no
|
||||
|
||||
test-all:
|
||||
ifeq ($(prepare-images),yes)
|
||||
(set -e ; $(foreach img,$(ALL_IMAGES), \
|
||||
make image no-cache=$(no-cache) \
|
||||
DOCKERFILE=$(word 1,$(subst :, ,$(img))) \
|
||||
VERSION=$(word 1,$(subst $(comma), ,\
|
||||
$(word 2,$(subst :, ,$(img))))) ; \
|
||||
))
|
||||
endif
|
||||
(set -e ; $(foreach img,$(ALL_IMAGES), \
|
||||
make test \
|
||||
DOCKERFILE=$(word 1,$(subst :, ,$(img))) \
|
||||
VERSION=$(word 1,$(subst $(comma), ,\
|
||||
$(word 2,$(subst :, ,$(img))))) ; \
|
||||
))
|
||||
|
||||
|
||||
|
||||
# Run tests for Docker image.
|
||||
#
|
||||
# Usage:
|
||||
# make test [DOCKERFILE=] [VERSION=]
|
||||
|
||||
test: deps.bats
|
||||
DOCKERFILE=$(DOCKERFILE) IMAGE=$(IMAGE_NAME):$(VERSION) \
|
||||
./test/bats/bats test/asterisk.bats
|
||||
|
||||
|
||||
|
||||
# Resolve project dependencies for running Bats tests.
|
||||
#
|
||||
# Usage:
|
||||
# make deps.bats [BATS_VER=]
|
||||
|
||||
BATS_VER ?= 0.4.0
|
||||
|
||||
deps.bats:
|
||||
ifeq ($(wildcard $(PWD)/test/bats),)
|
||||
mkdir -p $(PWD)/test/bats/vendor
|
||||
wget https://github.com/sstephenson/bats/archive/v$(BATS_VER).tar.gz \
|
||||
-O $(PWD)/test/bats/vendor/bats.tar.gz
|
||||
tar -xzf $(PWD)/test/bats/vendor/bats.tar.gz \
|
||||
-C $(PWD)/test/bats/vendor
|
||||
rm -f $(PWD)/test/bats/vendor/bats.tar.gz
|
||||
ln -s $(PWD)/test/bats/vendor/bats-$(BATS_VER)/libexec/* \
|
||||
$(PWD)/test/bats/
|
||||
endif
|
||||
|
||||
|
||||
|
||||
.PHONY: image tags push \
|
||||
image-all tags-all push-all \
|
||||
release release-all \
|
||||
post-push-hook post-push-hook-all \
|
||||
post-checkout-hook post-checkout-hook-all \
|
||||
test test-all deps.bats
|
25
alpine/2.6/Dockerfile
Normal file
25
alpine/2.6/Dockerfile
Normal file
@ -0,0 +1,25 @@
|
||||
# vim:set ft=dockerfile:
|
||||
FROM alpine:2.6
|
||||
|
||||
MAINTAINER Andrius Kairiukstis <andrius@kairiukstis.com>
|
||||
|
||||
RUN apk add --update \
|
||||
asterisk \
|
||||
asterisk-sample-config \
|
||||
&& asterisk -U asterisk \
|
||||
&& sleep 5 \
|
||||
&& pkill -9 ast \
|
||||
&& sleep 1 \
|
||||
&& rm -rf /var/run/asterisk/* \
|
||||
&& mkdir -p /var/spool/asterisk/fax \
|
||||
&& chown -R asterisk: /var/spool/asterisk \
|
||||
&& rm -rf /var/cache/apk/* \
|
||||
/tmp/* \
|
||||
/var/tmp/*
|
||||
|
||||
EXPOSE 5060/udp 5060/tcp
|
||||
VOLUME /var/lib/asterisk/sounds /var/lib/asterisk/keys /var/lib/asterisk/phoneprov /var/spool/asterisk /var/log/asterisk
|
||||
|
||||
ADD docker-entrypoint.sh /docker-entrypoint.sh
|
||||
|
||||
ENTRYPOINT ["/docker-entrypoint.sh"]
|
15
alpine/2.6/hooks/post_push
Normal file
15
alpine/2.6/hooks/post_push
Normal file
@ -0,0 +1,15 @@
|
||||
#!/bin/bash
|
||||
# AUTOMATICALLY GENERATED
|
||||
# DO NOT EDIT THIS FILE DIRECTLY, USE /post_push.erb
|
||||
|
||||
set -e
|
||||
|
||||
# Parse image name for repo name
|
||||
tagStart=$(expr index "$IMAGE_NAME" :)
|
||||
repoName=${IMAGE_NAME:0:tagStart-1}
|
||||
|
||||
# Tag and push image for each additional tag
|
||||
for tag in {2.6-11.6.1}; do
|
||||
docker tag $IMAGE_NAME ${repoName}:${tag}
|
||||
docker push ${repoName}:${tag}
|
||||
done
|
25
alpine/2.7/Dockerfile
Normal file
25
alpine/2.7/Dockerfile
Normal file
@ -0,0 +1,25 @@
|
||||
# vim:set ft=dockerfile:
|
||||
FROM alpine:2.7
|
||||
|
||||
MAINTAINER Andrius Kairiukstis <andrius@kairiukstis.com>
|
||||
|
||||
RUN apk add --update \
|
||||
asterisk \
|
||||
asterisk-sample-config \
|
||||
&& asterisk -U asterisk \
|
||||
&& sleep 5 \
|
||||
&& pkill -9 ast \
|
||||
&& sleep 1 \
|
||||
&& rm -rf /var/run/asterisk/* \
|
||||
&& mkdir -p /var/spool/asterisk/fax \
|
||||
&& chown -R asterisk: /var/spool/asterisk \
|
||||
&& rm -rf /var/cache/apk/* \
|
||||
/tmp/* \
|
||||
/var/tmp/*
|
||||
|
||||
EXPOSE 5060/udp 5060/tcp
|
||||
VOLUME /var/lib/asterisk/sounds /var/lib/asterisk/keys /var/lib/asterisk/phoneprov /var/spool/asterisk /var/log/asterisk
|
||||
|
||||
ADD docker-entrypoint.sh /docker-entrypoint.sh
|
||||
|
||||
ENTRYPOINT ["/docker-entrypoint.sh"]
|
15
alpine/2.7/hooks/post_push
Normal file
15
alpine/2.7/hooks/post_push
Normal file
@ -0,0 +1,15 @@
|
||||
#!/bin/bash
|
||||
# AUTOMATICALLY GENERATED
|
||||
# DO NOT EDIT THIS FILE DIRECTLY, USE /post_push.erb
|
||||
|
||||
set -e
|
||||
|
||||
# Parse image name for repo name
|
||||
tagStart=$(expr index "$IMAGE_NAME" :)
|
||||
repoName=${IMAGE_NAME:0:tagStart-1}
|
||||
|
||||
# Tag and push image for each additional tag
|
||||
for tag in {2.7-11.25.1,11.x}; do
|
||||
docker tag $IMAGE_NAME ${repoName}:${tag}
|
||||
docker push ${repoName}:${tag}
|
||||
done
|
26
alpine/3.1/Dockerfile
Normal file
26
alpine/3.1/Dockerfile
Normal file
@ -0,0 +1,26 @@
|
||||
# vim:set ft=dockerfile:
|
||||
FROM alpine:3.1
|
||||
|
||||
MAINTAINER Andrius Kairiukstis <andrius@kairiukstis.com>
|
||||
|
||||
RUN apk add --update \
|
||||
asterisk \
|
||||
asterisk-sample-config \
|
||||
&& rm -rf /usr/lib/asterisk/modules/*pjsip* \
|
||||
&& asterisk -U asterisk \
|
||||
&& sleep 5 \
|
||||
&& pkill -9 ast \
|
||||
&& sleep 1 \
|
||||
&& rm -rf /var/run/asterisk/* \
|
||||
&& mkdir -p /var/spool/asterisk/fax \
|
||||
&& chown -R asterisk: /var/spool/asterisk \
|
||||
&& rm -rf /var/cache/apk/* \
|
||||
/tmp/* \
|
||||
/var/tmp/*
|
||||
|
||||
EXPOSE 5060/udp 5060/tcp
|
||||
VOLUME /var/lib/asterisk/sounds /var/lib/asterisk/keys /var/lib/asterisk/phoneprov /var/spool/asterisk /var/log/asterisk
|
||||
|
||||
ADD docker-entrypoint.sh /docker-entrypoint.sh
|
||||
|
||||
ENTRYPOINT ["/docker-entrypoint.sh"]
|
15
alpine/3.1/hooks/post_push
Normal file
15
alpine/3.1/hooks/post_push
Normal file
@ -0,0 +1,15 @@
|
||||
#!/bin/bash
|
||||
# AUTOMATICALLY GENERATED
|
||||
# DO NOT EDIT THIS FILE DIRECTLY, USE /post_push.erb
|
||||
|
||||
set -e
|
||||
|
||||
# Parse image name for repo name
|
||||
tagStart=$(expr index "$IMAGE_NAME" :)
|
||||
repoName=${IMAGE_NAME:0:tagStart-1}
|
||||
|
||||
# Tag and push image for each additional tag
|
||||
for tag in {3.1-13.3.2}; do
|
||||
docker tag $IMAGE_NAME ${repoName}:${tag}
|
||||
docker push ${repoName}:${tag}
|
||||
done
|
15
alpine/3.10/hooks/post_push
Normal file
15
alpine/3.10/hooks/post_push
Normal file
@ -0,0 +1,15 @@
|
||||
#!/bin/bash
|
||||
# AUTOMATICALLY GENERATED
|
||||
# DO NOT EDIT THIS FILE DIRECTLY, USE /post_push.erb
|
||||
|
||||
set -e
|
||||
|
||||
# Parse image name for repo name
|
||||
tagStart=$(expr index "$IMAGE_NAME" :)
|
||||
repoName=${IMAGE_NAME:0:tagStart-1}
|
||||
|
||||
# Tag and push image for each additional tag
|
||||
for tag in {3.10-16.3.0}; do
|
||||
docker tag $IMAGE_NAME ${repoName}:${tag}
|
||||
docker push ${repoName}:${tag}
|
||||
done
|
29
alpine/3.11/Dockerfile
Normal file
29
alpine/3.11/Dockerfile
Normal file
@ -0,0 +1,29 @@
|
||||
# vim:set ft=dockerfile:
|
||||
FROM alpine:3.11
|
||||
|
||||
MAINTAINER Andrius Kairiukstis <andrius@kairiukstis.com>
|
||||
|
||||
RUN apk add --update \
|
||||
asterisk \
|
||||
asterisk-sample-config \
|
||||
&& rm -rf /usr/lib/asterisk/modules/*pjsip* \
|
||||
&& asterisk -U asterisk \
|
||||
&& sleep 5 \
|
||||
&& pkill -9 asterisk \
|
||||
&& pkill -9 astcanary \
|
||||
&& sleep 2 \
|
||||
&& rm -rf /var/run/asterisk/* \
|
||||
&& mkdir -p /var/spool/asterisk/fax \
|
||||
&& chown -R asterisk: /var/spool/asterisk/fax \
|
||||
&& truncate -s 0 /var/log/asterisk/messages \
|
||||
/var/log/asterisk/queue_log \
|
||||
&& rm -rf /var/cache/apk/* \
|
||||
/tmp/* \
|
||||
/var/tmp/*
|
||||
|
||||
EXPOSE 5060/udp 5060/tcp
|
||||
VOLUME /var/lib/asterisk/sounds /var/lib/asterisk/keys /var/lib/asterisk/phoneprov /var/spool/asterisk /var/log/asterisk
|
||||
|
||||
ADD docker-entrypoint.sh /docker-entrypoint.sh
|
||||
|
||||
ENTRYPOINT ["/docker-entrypoint.sh"]
|
15
alpine/3.11/hooks/post_push
Normal file
15
alpine/3.11/hooks/post_push
Normal file
@ -0,0 +1,15 @@
|
||||
#!/bin/bash
|
||||
# AUTOMATICALLY GENERATED
|
||||
# DO NOT EDIT THIS FILE DIRECTLY, USE /post_push.erb
|
||||
|
||||
set -e
|
||||
|
||||
# Parse image name for repo name
|
||||
tagStart=$(expr index "$IMAGE_NAME" :)
|
||||
repoName=${IMAGE_NAME:0:tagStart-1}
|
||||
|
||||
# Tag and push image for each additional tag
|
||||
for tag in {3.11-16.6.2,16.x}; do
|
||||
docker tag $IMAGE_NAME ${repoName}:${tag}
|
||||
docker push ${repoName}:${tag}
|
||||
done
|
26
alpine/3.2/Dockerfile
Normal file
26
alpine/3.2/Dockerfile
Normal file
@ -0,0 +1,26 @@
|
||||
# vim:set ft=dockerfile:
|
||||
FROM alpine:3.2
|
||||
|
||||
MAINTAINER Andrius Kairiukstis <andrius@kairiukstis.com>
|
||||
|
||||
RUN apk add --update \
|
||||
asterisk \
|
||||
asterisk-sample-config \
|
||||
&& rm -rf /usr/lib/asterisk/modules/*pjsip* \
|
||||
&& asterisk -U asterisk \
|
||||
&& sleep 5 \
|
||||
&& pkill -9 ast \
|
||||
&& sleep 1 \
|
||||
&& rm -rf /var/run/asterisk/* \
|
||||
&& mkdir -p /var/spool/asterisk/fax \
|
||||
&& chown -R asterisk: /var/spool/asterisk \
|
||||
&& rm -rf /var/cache/apk/* \
|
||||
/tmp/* \
|
||||
/var/tmp/*
|
||||
|
||||
EXPOSE 5060/udp 5060/tcp
|
||||
VOLUME /var/lib/asterisk/sounds /var/lib/asterisk/keys /var/lib/asterisk/phoneprov /var/spool/asterisk /var/log/asterisk
|
||||
|
||||
ADD docker-entrypoint.sh /docker-entrypoint.sh
|
||||
|
||||
ENTRYPOINT ["/docker-entrypoint.sh"]
|
15
alpine/3.2/hooks/post_push
Normal file
15
alpine/3.2/hooks/post_push
Normal file
@ -0,0 +1,15 @@
|
||||
#!/bin/bash
|
||||
# AUTOMATICALLY GENERATED
|
||||
# DO NOT EDIT THIS FILE DIRECTLY, USE /post_push.erb
|
||||
|
||||
set -e
|
||||
|
||||
# Parse image name for repo name
|
||||
tagStart=$(expr index "$IMAGE_NAME" :)
|
||||
repoName=${IMAGE_NAME:0:tagStart-1}
|
||||
|
||||
# Tag and push image for each additional tag
|
||||
for tag in {3.2-13.3.2}; do
|
||||
docker tag $IMAGE_NAME ${repoName}:${tag}
|
||||
docker push ${repoName}:${tag}
|
||||
done
|
@ -1,18 +1,22 @@
|
||||
# vim:set ft=dockerfile:
|
||||
FROM alpine:2.6
|
||||
FROM alpine:3.3
|
||||
|
||||
MAINTAINER Andrius Kairiukstis <andrius@kairiukstis.com>
|
||||
|
||||
RUN apk add --update \
|
||||
asterisk \
|
||||
asterisk-sample-config \
|
||||
&& rm -rf /usr/lib/asterisk/modules/*pjsip* \
|
||||
&& asterisk -U asterisk \
|
||||
&& sleep 5 \
|
||||
&& pkill -9 asterisk \
|
||||
&& pkill -9 astcanary \
|
||||
&& sleep 2 \
|
||||
&& rm -rf /var/run/asterisk/* \
|
||||
&& mkdir -p /var/spool/asterisk/fax \
|
||||
&& chown -R asterisk: /var/spool/asterisk/fax \
|
||||
&& truncate -s 0 /var/log/asterisk/messages \
|
||||
/var/log/asterisk/queue_log \
|
||||
&& rm -rf /var/cache/apk/* \
|
||||
/tmp/* \
|
||||
/var/tmp/*
|
15
alpine/3.3/hooks/post_push
Normal file
15
alpine/3.3/hooks/post_push
Normal file
@ -0,0 +1,15 @@
|
||||
#!/bin/bash
|
||||
# AUTOMATICALLY GENERATED
|
||||
# DO NOT EDIT THIS FILE DIRECTLY, USE /post_push.erb
|
||||
|
||||
set -e
|
||||
|
||||
# Parse image name for repo name
|
||||
tagStart=$(expr index "$IMAGE_NAME" :)
|
||||
repoName=${IMAGE_NAME:0:tagStart-1}
|
||||
|
||||
# Tag and push image for each additional tag
|
||||
for tag in {3.3-13.17.2}; do
|
||||
docker tag $IMAGE_NAME ${repoName}:${tag}
|
||||
docker push ${repoName}:${tag}
|
||||
done
|
@ -1,18 +1,22 @@
|
||||
# vim:set ft=dockerfile:
|
||||
FROM alpine:2.7
|
||||
FROM alpine:3.4
|
||||
|
||||
MAINTAINER Andrius Kairiukstis <andrius@kairiukstis.com>
|
||||
|
||||
RUN apk add --update \
|
||||
asterisk \
|
||||
asterisk-sample-config \
|
||||
&& rm -rf /usr/lib/asterisk/modules/*pjsip* \
|
||||
&& asterisk -U asterisk \
|
||||
&& sleep 5 \
|
||||
&& pkill -9 asterisk \
|
||||
&& pkill -9 astcanary \
|
||||
&& sleep 2 \
|
||||
&& rm -rf /var/run/asterisk/* \
|
||||
&& mkdir -p /var/spool/asterisk/fax \
|
||||
&& chown -R asterisk: /var/spool/asterisk/fax \
|
||||
&& truncate -s 0 /var/log/asterisk/messages \
|
||||
/var/log/asterisk/queue_log \
|
||||
&& rm -rf /var/cache/apk/* \
|
||||
/tmp/* \
|
||||
/var/tmp/*
|
15
alpine/3.4/hooks/post_push
Normal file
15
alpine/3.4/hooks/post_push
Normal file
@ -0,0 +1,15 @@
|
||||
#!/bin/bash
|
||||
# AUTOMATICALLY GENERATED
|
||||
# DO NOT EDIT THIS FILE DIRECTLY, USE /post_push.erb
|
||||
|
||||
set -e
|
||||
|
||||
# Parse image name for repo name
|
||||
tagStart=$(expr index "$IMAGE_NAME" :)
|
||||
repoName=${IMAGE_NAME:0:tagStart-1}
|
||||
|
||||
# Tag and push image for each additional tag
|
||||
for tag in {3.4-13.18.5,13.x}; do
|
||||
docker tag $IMAGE_NAME ${repoName}:${tag}
|
||||
docker push ${repoName}:${tag}
|
||||
done
|
29
alpine/3.5/Dockerfile
Normal file
29
alpine/3.5/Dockerfile
Normal file
@ -0,0 +1,29 @@
|
||||
# vim:set ft=dockerfile:
|
||||
FROM alpine:3.5
|
||||
|
||||
MAINTAINER Andrius Kairiukstis <andrius@kairiukstis.com>
|
||||
|
||||
RUN apk add --update \
|
||||
asterisk \
|
||||
asterisk-sample-config \
|
||||
&& rm -rf /usr/lib/asterisk/modules/*pjsip* \
|
||||
&& asterisk -U asterisk \
|
||||
&& sleep 5 \
|
||||
&& pkill -9 asterisk \
|
||||
&& pkill -9 astcanary \
|
||||
&& sleep 2 \
|
||||
&& rm -rf /var/run/asterisk/* \
|
||||
&& mkdir -p /var/spool/asterisk/fax \
|
||||
&& chown -R asterisk: /var/spool/asterisk/fax \
|
||||
&& truncate -s 0 /var/log/asterisk/messages \
|
||||
/var/log/asterisk/queue_log \
|
||||
&& rm -rf /var/cache/apk/* \
|
||||
/tmp/* \
|
||||
/var/tmp/*
|
||||
|
||||
EXPOSE 5060/udp 5060/tcp
|
||||
VOLUME /var/lib/asterisk/sounds /var/lib/asterisk/keys /var/lib/asterisk/phoneprov /var/spool/asterisk /var/log/asterisk
|
||||
|
||||
ADD docker-entrypoint.sh /docker-entrypoint.sh
|
||||
|
||||
ENTRYPOINT ["/docker-entrypoint.sh"]
|
@ -2,6 +2,7 @@
|
||||
|
||||
# run as user asterisk by default
|
||||
ASTERISK_USER=${ASTERISK_USER:-asterisk}
|
||||
ASTERISK_GROUP=${ASTERISK_GROUP:-${ASTERISK_USER}}
|
||||
|
||||
if [ "$1" = "" ]; then
|
||||
COMMAND="/usr/sbin/asterisk -T -W -U ${ASTERISK_USER} -p -vvvdddf"
|
||||
@ -14,11 +15,13 @@ if [ "${ASTERISK_UID}" != "" ] && [ "${ASTERISK_GID}" != "" ]; then
|
||||
# if they've sent as env variables (i.e. to macth with host user to fix permissions for mounted folders
|
||||
|
||||
deluser asterisk && \
|
||||
adduser --gecos "" --no-create-home --uid ${ASTERISK_UID} --disabled-password ${ASTERISK_USER} || exit
|
||||
|
||||
chown -R ${ASTERISK_UID}:${ASTERISK_UID} /etc/asterisk \
|
||||
/var/*/asterisk \
|
||||
/usr/*/asterisk
|
||||
addgroup -g ${ASTERISK_GID} ${ASTERISK_GROUP} && \
|
||||
adduser -D -H -u ${ASTERISK_UID} -G ${ASTERISK_GROUP} ${ASTERISK_USER} \
|
||||
|| exit
|
||||
fi
|
||||
|
||||
chown -R ${ASTERISK_USER}: /var/log/asterisk \
|
||||
/var/lib/asterisk \
|
||||
/var/run/asterisk \
|
||||
/var/spool/asterisk; \
|
||||
exec ${COMMAND}
|
15
alpine/3.5/hooks/post_push
Normal file
15
alpine/3.5/hooks/post_push
Normal file
@ -0,0 +1,15 @@
|
||||
#!/bin/bash
|
||||
# AUTOMATICALLY GENERATED
|
||||
# DO NOT EDIT THIS FILE DIRECTLY, USE /post_push.erb
|
||||
|
||||
set -e
|
||||
|
||||
# Parse image name for repo name
|
||||
tagStart=$(expr index "$IMAGE_NAME" :)
|
||||
repoName=${IMAGE_NAME:0:tagStart-1}
|
||||
|
||||
# Tag and push image for each additional tag
|
||||
for tag in {3.5-14.7.8}; do
|
||||
docker tag $IMAGE_NAME ${repoName}:${tag}
|
||||
docker push ${repoName}:${tag}
|
||||
done
|
27
alpine/3.6/docker-entrypoint.sh
Executable file
27
alpine/3.6/docker-entrypoint.sh
Executable file
@ -0,0 +1,27 @@
|
||||
#!/bin/sh
|
||||
|
||||
# run as user asterisk by default
|
||||
ASTERISK_USER=${ASTERISK_USER:-asterisk}
|
||||
ASTERISK_GROUP=${ASTERISK_GROUP:-${ASTERISK_USER}}
|
||||
|
||||
if [ "$1" = "" ]; then
|
||||
COMMAND="/usr/sbin/asterisk -T -W -U ${ASTERISK_USER} -p -vvvdddf"
|
||||
else
|
||||
COMMAND="$@"
|
||||
fi
|
||||
|
||||
if [ "${ASTERISK_UID}" != "" ] && [ "${ASTERISK_GID}" != "" ]; then
|
||||
# recreate user and group for asterisk
|
||||
# if they've sent as env variables (i.e. to macth with host user to fix permissions for mounted folders
|
||||
|
||||
deluser asterisk && \
|
||||
addgroup -g ${ASTERISK_GID} ${ASTERISK_GROUP} && \
|
||||
adduser -D -H -u ${ASTERISK_UID} -G ${ASTERISK_GROUP} ${ASTERISK_USER} \
|
||||
|| exit
|
||||
fi
|
||||
|
||||
chown -R ${ASTERISK_USER}: /var/log/asterisk \
|
||||
/var/lib/asterisk \
|
||||
/var/run/asterisk \
|
||||
/var/spool/asterisk; \
|
||||
exec ${COMMAND}
|
15
alpine/3.6/hooks/post_push
Normal file
15
alpine/3.6/hooks/post_push
Normal file
@ -0,0 +1,15 @@
|
||||
#!/bin/bash
|
||||
# AUTOMATICALLY GENERATED
|
||||
# DO NOT EDIT THIS FILE DIRECTLY, USE /post_push.erb
|
||||
|
||||
set -e
|
||||
|
||||
# Parse image name for repo name
|
||||
tagStart=$(expr index "$IMAGE_NAME" :)
|
||||
repoName=${IMAGE_NAME:0:tagStart-1}
|
||||
|
||||
# Tag and push image for each additional tag
|
||||
for tag in {3.6-14.7.8,14.x}; do
|
||||
docker tag $IMAGE_NAME ${repoName}:${tag}
|
||||
docker push ${repoName}:${tag}
|
||||
done
|
27
alpine/3.7/docker-entrypoint.sh
Executable file
27
alpine/3.7/docker-entrypoint.sh
Executable file
@ -0,0 +1,27 @@
|
||||
#!/bin/sh
|
||||
|
||||
# run as user asterisk by default
|
||||
ASTERISK_USER=${ASTERISK_USER:-asterisk}
|
||||
ASTERISK_GROUP=${ASTERISK_GROUP:-${ASTERISK_USER}}
|
||||
|
||||
if [ "$1" = "" ]; then
|
||||
COMMAND="/usr/sbin/asterisk -T -W -U ${ASTERISK_USER} -p -vvvdddf"
|
||||
else
|
||||
COMMAND="$@"
|
||||
fi
|
||||
|
||||
if [ "${ASTERISK_UID}" != "" ] && [ "${ASTERISK_GID}" != "" ]; then
|
||||
# recreate user and group for asterisk
|
||||
# if they've sent as env variables (i.e. to macth with host user to fix permissions for mounted folders
|
||||
|
||||
deluser asterisk && \
|
||||
addgroup -g ${ASTERISK_GID} ${ASTERISK_GROUP} && \
|
||||
adduser -D -H -u ${ASTERISK_UID} -G ${ASTERISK_GROUP} ${ASTERISK_USER} \
|
||||
|| exit
|
||||
fi
|
||||
|
||||
chown -R ${ASTERISK_USER}: /var/log/asterisk \
|
||||
/var/lib/asterisk \
|
||||
/var/run/asterisk \
|
||||
/var/spool/asterisk; \
|
||||
exec ${COMMAND}
|
15
alpine/3.7/hooks/post_push
Normal file
15
alpine/3.7/hooks/post_push
Normal file
@ -0,0 +1,15 @@
|
||||
#!/bin/bash
|
||||
# AUTOMATICALLY GENERATED
|
||||
# DO NOT EDIT THIS FILE DIRECTLY, USE /post_push.erb
|
||||
|
||||
set -e
|
||||
|
||||
# Parse image name for repo name
|
||||
tagStart=$(expr index "$IMAGE_NAME" :)
|
||||
repoName=${IMAGE_NAME:0:tagStart-1}
|
||||
|
||||
# Tag and push image for each additional tag
|
||||
for tag in {3.7-15.6.2}; do
|
||||
docker tag $IMAGE_NAME ${repoName}:${tag}
|
||||
docker push ${repoName}:${tag}
|
||||
done
|
27
alpine/3.8/docker-entrypoint.sh
Executable file
27
alpine/3.8/docker-entrypoint.sh
Executable file
@ -0,0 +1,27 @@
|
||||
#!/bin/sh
|
||||
|
||||
# run as user asterisk by default
|
||||
ASTERISK_USER=${ASTERISK_USER:-asterisk}
|
||||
ASTERISK_GROUP=${ASTERISK_GROUP:-${ASTERISK_USER}}
|
||||
|
||||
if [ "$1" = "" ]; then
|
||||
COMMAND="/usr/sbin/asterisk -T -W -U ${ASTERISK_USER} -p -vvvdddf"
|
||||
else
|
||||
COMMAND="$@"
|
||||
fi
|
||||
|
||||
if [ "${ASTERISK_UID}" != "" ] && [ "${ASTERISK_GID}" != "" ]; then
|
||||
# recreate user and group for asterisk
|
||||
# if they've sent as env variables (i.e. to macth with host user to fix permissions for mounted folders
|
||||
|
||||
deluser asterisk && \
|
||||
addgroup -g ${ASTERISK_GID} ${ASTERISK_GROUP} && \
|
||||
adduser -D -H -u ${ASTERISK_UID} -G ${ASTERISK_GROUP} ${ASTERISK_USER} \
|
||||
|| exit
|
||||
fi
|
||||
|
||||
chown -R ${ASTERISK_USER}: /var/log/asterisk \
|
||||
/var/lib/asterisk \
|
||||
/var/run/asterisk \
|
||||
/var/spool/asterisk; \
|
||||
exec ${COMMAND}
|
15
alpine/3.8/hooks/post_push
Normal file
15
alpine/3.8/hooks/post_push
Normal file
@ -0,0 +1,15 @@
|
||||
#!/bin/bash
|
||||
# AUTOMATICALLY GENERATED
|
||||
# DO NOT EDIT THIS FILE DIRECTLY, USE /post_push.erb
|
||||
|
||||
set -e
|
||||
|
||||
# Parse image name for repo name
|
||||
tagStart=$(expr index "$IMAGE_NAME" :)
|
||||
repoName=${IMAGE_NAME:0:tagStart-1}
|
||||
|
||||
# Tag and push image for each additional tag
|
||||
for tag in {3.8-15.6.2}; do
|
||||
docker tag $IMAGE_NAME ${repoName}:${tag}
|
||||
docker push ${repoName}:${tag}
|
||||
done
|
27
alpine/3.9/docker-entrypoint.sh
Executable file
27
alpine/3.9/docker-entrypoint.sh
Executable file
@ -0,0 +1,27 @@
|
||||
#!/bin/sh
|
||||
|
||||
# run as user asterisk by default
|
||||
ASTERISK_USER=${ASTERISK_USER:-asterisk}
|
||||
ASTERISK_GROUP=${ASTERISK_GROUP:-${ASTERISK_USER}}
|
||||
|
||||
if [ "$1" = "" ]; then
|
||||
COMMAND="/usr/sbin/asterisk -T -W -U ${ASTERISK_USER} -p -vvvdddf"
|
||||
else
|
||||
COMMAND="$@"
|
||||
fi
|
||||
|
||||
if [ "${ASTERISK_UID}" != "" ] && [ "${ASTERISK_GID}" != "" ]; then
|
||||
# recreate user and group for asterisk
|
||||
# if they've sent as env variables (i.e. to macth with host user to fix permissions for mounted folders
|
||||
|
||||
deluser asterisk && \
|
||||
addgroup -g ${ASTERISK_GID} ${ASTERISK_GROUP} && \
|
||||
adduser -D -H -u ${ASTERISK_UID} -G ${ASTERISK_GROUP} ${ASTERISK_USER} \
|
||||
|| exit
|
||||
fi
|
||||
|
||||
chown -R ${ASTERISK_USER}: /var/log/asterisk \
|
||||
/var/lib/asterisk \
|
||||
/var/run/asterisk \
|
||||
/var/spool/asterisk; \
|
||||
exec ${COMMAND}
|
15
alpine/3.9/hooks/post_push
Normal file
15
alpine/3.9/hooks/post_push
Normal file
@ -0,0 +1,15 @@
|
||||
#!/bin/bash
|
||||
# AUTOMATICALLY GENERATED
|
||||
# DO NOT EDIT THIS FILE DIRECTLY, USE /post_push.erb
|
||||
|
||||
set -e
|
||||
|
||||
# Parse image name for repo name
|
||||
tagStart=$(expr index "$IMAGE_NAME" :)
|
||||
repoName=${IMAGE_NAME:0:tagStart-1}
|
||||
|
||||
# Tag and push image for each additional tag
|
||||
for tag in {3.9-15.7.4,15.x}; do
|
||||
docker tag $IMAGE_NAME ${repoName}:${tag}
|
||||
docker push ${repoName}:${tag}
|
||||
done
|
15
alpine/edge/hooks/post_push
Normal file
15
alpine/edge/hooks/post_push
Normal file
@ -0,0 +1,15 @@
|
||||
#!/bin/bash
|
||||
# AUTOMATICALLY GENERATED
|
||||
# DO NOT EDIT THIS FILE DIRECTLY, USE /post_push.erb
|
||||
|
||||
set -e
|
||||
|
||||
# Parse image name for repo name
|
||||
tagStart=$(expr index "$IMAGE_NAME" :)
|
||||
repoName=${IMAGE_NAME:0:tagStart-1}
|
||||
|
||||
# Tag and push image for each additional tag
|
||||
for tag in {edge}; do
|
||||
docker tag $IMAGE_NAME ${repoName}:${tag}
|
||||
docker push ${repoName}:${tag}
|
||||
done
|
28
alpine/glibc/Dockerfile
Normal file
28
alpine/glibc/Dockerfile
Normal file
@ -0,0 +1,28 @@
|
||||
# vim:set ft=dockerfile:
|
||||
FROM frolvlad/alpine-glibc
|
||||
|
||||
LABEL maintainer="Andrius Kairiukstis <k@andrius.mobi>"
|
||||
|
||||
RUN apk add --update \
|
||||
asterisk \
|
||||
asterisk-sample-config \
|
||||
&& asterisk -U asterisk \
|
||||
&& sleep 5 \
|
||||
&& pkill -9 asterisk \
|
||||
&& pkill -9 astcanary \
|
||||
&& sleep 2 \
|
||||
&& rm -rf /var/run/asterisk/* \
|
||||
&& mkdir -p /var/spool/asterisk/fax \
|
||||
&& chown -R asterisk: /var/spool/asterisk/fax \
|
||||
&& truncate -s 0 /var/log/asterisk/messages \
|
||||
/var/log/asterisk/queue_log \
|
||||
&& rm -rf /var/cache/apk/* \
|
||||
/tmp/* \
|
||||
/var/tmp/*
|
||||
|
||||
EXPOSE 5060/udp 5060/tcp
|
||||
VOLUME /var/lib/asterisk/sounds /var/lib/asterisk/keys /var/lib/asterisk/phoneprov /var/spool/asterisk /var/log/asterisk
|
||||
|
||||
ADD docker-entrypoint.sh /docker-entrypoint.sh
|
||||
|
||||
ENTRYPOINT ["/docker-entrypoint.sh"]
|
27
alpine/glibc/docker-entrypoint.sh
Executable file
27
alpine/glibc/docker-entrypoint.sh
Executable file
@ -0,0 +1,27 @@
|
||||
#!/bin/sh
|
||||
|
||||
# run as user asterisk by default
|
||||
ASTERISK_USER=${ASTERISK_USER:-asterisk}
|
||||
ASTERISK_GROUP=${ASTERISK_GROUP:-${ASTERISK_USER}}
|
||||
|
||||
if [ "$1" = "" ]; then
|
||||
COMMAND="/usr/sbin/asterisk -T -W -U ${ASTERISK_USER} -p -vvvdddf"
|
||||
else
|
||||
COMMAND="$@"
|
||||
fi
|
||||
|
||||
if [ "${ASTERISK_UID}" != "" ] && [ "${ASTERISK_GID}" != "" ]; then
|
||||
# recreate user and group for asterisk
|
||||
# if they've sent as env variables (i.e. to macth with host user to fix permissions for mounted folders
|
||||
|
||||
deluser asterisk && \
|
||||
addgroup -g ${ASTERISK_GID} ${ASTERISK_GROUP} && \
|
||||
adduser -D -H -u ${ASTERISK_UID} -G ${ASTERISK_GROUP} ${ASTERISK_USER} \
|
||||
|| exit
|
||||
fi
|
||||
|
||||
chown -R ${ASTERISK_USER}: /var/log/asterisk \
|
||||
/var/lib/asterisk \
|
||||
/var/run/asterisk \
|
||||
/var/spool/asterisk; \
|
||||
exec ${COMMAND}
|
15
alpine/glibc/hooks/post_push
Normal file
15
alpine/glibc/hooks/post_push
Normal file
@ -0,0 +1,15 @@
|
||||
#!/bin/bash
|
||||
# AUTOMATICALLY GENERATED
|
||||
# DO NOT EDIT THIS FILE DIRECTLY, USE /post_push.erb
|
||||
|
||||
set -e
|
||||
|
||||
# Parse image name for repo name
|
||||
tagStart=$(expr index "$IMAGE_NAME" :)
|
||||
repoName=${IMAGE_NAME:0:tagStart-1}
|
||||
|
||||
# Tag and push image for each additional tag
|
||||
for tag in {glibc_latest,alpine_glibc-16.x,glibc-16.x,alpine_glibc-16.3.0,glibc-16.3.0}; do
|
||||
docker tag $IMAGE_NAME ${repoName}:${tag}
|
||||
docker push ${repoName}:${tag}
|
||||
done
|
27
alpine/latest/docker-entrypoint.sh
Executable file
27
alpine/latest/docker-entrypoint.sh
Executable file
@ -0,0 +1,27 @@
|
||||
#!/bin/sh
|
||||
|
||||
# run as user asterisk by default
|
||||
ASTERISK_USER=${ASTERISK_USER:-asterisk}
|
||||
ASTERISK_GROUP=${ASTERISK_GROUP:-${ASTERISK_USER}}
|
||||
|
||||
if [ "$1" = "" ]; then
|
||||
COMMAND="/usr/sbin/asterisk -T -W -U ${ASTERISK_USER} -p -vvvdddf"
|
||||
else
|
||||
COMMAND="$@"
|
||||
fi
|
||||
|
||||
if [ "${ASTERISK_UID}" != "" ] && [ "${ASTERISK_GID}" != "" ]; then
|
||||
# recreate user and group for asterisk
|
||||
# if they've sent as env variables (i.e. to macth with host user to fix permissions for mounted folders
|
||||
|
||||
deluser asterisk && \
|
||||
addgroup -g ${ASTERISK_GID} ${ASTERISK_GROUP} && \
|
||||
adduser -D -H -u ${ASTERISK_UID} -G ${ASTERISK_GROUP} ${ASTERISK_USER} \
|
||||
|| exit
|
||||
fi
|
||||
|
||||
chown -R ${ASTERISK_USER}: /var/log/asterisk \
|
||||
/var/lib/asterisk \
|
||||
/var/run/asterisk \
|
||||
/var/spool/asterisk; \
|
||||
exec ${COMMAND}
|
15
alpine/latest/hooks/post_push
Normal file
15
alpine/latest/hooks/post_push
Normal file
@ -0,0 +1,15 @@
|
||||
#!/bin/bash
|
||||
# AUTOMATICALLY GENERATED
|
||||
# DO NOT EDIT THIS FILE DIRECTLY, USE /post_push.erb
|
||||
|
||||
set -e
|
||||
|
||||
# Parse image name for repo name
|
||||
tagStart=$(expr index "$IMAGE_NAME" :)
|
||||
repoName=${IMAGE_NAME:0:tagStart-1}
|
||||
|
||||
# Tag and push image for each additional tag
|
||||
for tag in {latest}; do
|
||||
docker tag $IMAGE_NAME ${repoName}:${tag}
|
||||
docker push ${repoName}:${tag}
|
||||
done
|
@ -18,6 +18,8 @@ if [ "${ASTERISK_UID}" != "" ] && [ "${ASTERISK_GID}" != "" ]; then
|
||||
|| exit
|
||||
fi
|
||||
|
||||
mkdir -p /var/run/asterisk
|
||||
|
||||
chown -R ${ASTERISK_USER}: /var/log/asterisk \
|
||||
/var/lib/asterisk \
|
||||
/var/run/asterisk \
|
15
centos/1.2.40/hooks/post_push
Normal file
15
centos/1.2.40/hooks/post_push
Normal file
@ -0,0 +1,15 @@
|
||||
#!/bin/bash
|
||||
# AUTOMATICALLY GENERATED
|
||||
# DO NOT EDIT THIS FILE DIRECTLY, USE /post_push.erb
|
||||
|
||||
set -e
|
||||
|
||||
# Parse image name for repo name
|
||||
tagStart=$(expr index "$IMAGE_NAME" :)
|
||||
repoName=${IMAGE_NAME:0:tagStart-1}
|
||||
|
||||
# Tag and push image for each additional tag
|
||||
for tag in {1.2.40}; do
|
||||
docker tag $IMAGE_NAME ${repoName}:${tag}
|
||||
docker push ${repoName}:${tag}
|
||||
done
|
@ -18,6 +18,8 @@ if [ "${ASTERISK_UID}" != "" ] && [ "${ASTERISK_GID}" != "" ]; then
|
||||
|| exit
|
||||
fi
|
||||
|
||||
mkdir -p /var/run/asterisk
|
||||
|
||||
chown -R ${ASTERISK_USER}: /var/log/asterisk \
|
||||
/var/lib/asterisk \
|
||||
/var/run/asterisk \
|
15
centos/1.4.44/hooks/post_push
Normal file
15
centos/1.4.44/hooks/post_push
Normal file
@ -0,0 +1,15 @@
|
||||
#!/bin/bash
|
||||
# AUTOMATICALLY GENERATED
|
||||
# DO NOT EDIT THIS FILE DIRECTLY, USE /post_push.erb
|
||||
|
||||
set -e
|
||||
|
||||
# Parse image name for repo name
|
||||
tagStart=$(expr index "$IMAGE_NAME" :)
|
||||
repoName=${IMAGE_NAME:0:tagStart-1}
|
||||
|
||||
# Tag and push image for each additional tag
|
||||
for tag in {1.4.44}; do
|
||||
docker tag $IMAGE_NAME ${repoName}:${tag}
|
||||
docker push ${repoName}:${tag}
|
||||
done
|
@ -18,6 +18,8 @@ if [ "${ASTERISK_UID}" != "" ] && [ "${ASTERISK_GID}" != "" ]; then
|
||||
|| exit
|
||||
fi
|
||||
|
||||
mkdir -p /var/run/asterisk
|
||||
|
||||
chown -R ${ASTERISK_USER}: /var/log/asterisk \
|
||||
/var/lib/asterisk \
|
||||
/var/run/asterisk \
|
15
centos/1.6.2.24/hooks/post_push
Normal file
15
centos/1.6.2.24/hooks/post_push
Normal file
@ -0,0 +1,15 @@
|
||||
#!/bin/bash
|
||||
# AUTOMATICALLY GENERATED
|
||||
# DO NOT EDIT THIS FILE DIRECTLY, USE /post_push.erb
|
||||
|
||||
set -e
|
||||
|
||||
# Parse image name for repo name
|
||||
tagStart=$(expr index "$IMAGE_NAME" :)
|
||||
repoName=${IMAGE_NAME:0:tagStart-1}
|
||||
|
||||
# Tag and push image for each additional tag
|
||||
for tag in {1.6.2.24}; do
|
||||
docker tag $IMAGE_NAME ${repoName}:${tag}
|
||||
docker push ${repoName}:${tag}
|
||||
done
|
@ -1,17 +0,0 @@
|
||||
# vim:set ft=dockerfile:
|
||||
FROM debian:stretch-slim
|
||||
|
||||
LABEL maintainer="Andrius Kairiukstis <k@andrius.mobi>"
|
||||
|
||||
ENV ASTERISK_VERSION 16-current
|
||||
ENV OPUS_CODEC asterisk-16.0/x86-64/codec_opus-16.0_current-x86_64
|
||||
|
||||
COPY build-asterisk.sh /
|
||||
RUN /build-asterisk.sh
|
||||
|
||||
EXPOSE 5060/udp 5060/tcp
|
||||
VOLUME /var/lib/asterisk/sounds /var/lib/asterisk/keys /var/lib/asterisk/phoneprov /var/spool/asterisk /var/log/asterisk
|
||||
|
||||
COPY docker-entrypoint.sh /
|
||||
ENTRYPOINT ["/docker-entrypoint.sh"]
|
||||
CMD ["/usr/sbin/asterisk", "-vvvdddf", "-T", "-W", "-U", "asterisk", "-p"]
|
@ -1,145 +0,0 @@
|
||||
FROM centos:6
|
||||
|
||||
MAINTAINER Andrius Kairiukstis <andrius@kairiukstis.com>
|
||||
|
||||
RUN yum -y install gcc gcc-c++ cpp ncurses ncurses-devel libxml2 libxml2-devel openssl-devel \
|
||||
newt-devel libuuid-devel net-snmp-devel xinetd tar libffi-devel sqlite-devel curl bison supervisor \
|
||||
&& mkdir /tmp/asterisk \
|
||||
&& curl -sf -o /tmp/asterisk.tar.gz -L http://downloads.asterisk.org/pub/telephony/certified-asterisk/certified-asterisk-11.6-current.tar.gz \
|
||||
&& tar -xzf /tmp/asterisk.tar.gz -C /tmp/asterisk --strip-components=1 \
|
||||
&& cd /tmp/asterisk \
|
||||
&& ./configure --libdir=/usr/lib64 \
|
||||
&& make menuselect \
|
||||
&& menuselect/menuselect \
|
||||
--disable-all \
|
||||
--disable-category MENUSELECT_ADDONS \
|
||||
--disable-category MENUSELECT_APPS \
|
||||
--disable-category MENUSELECT_BRIDGES \
|
||||
--disable-category MENUSELECT_CDR \
|
||||
--disable-category MENUSELECT_CEL \
|
||||
--disable-category MENUSELECT_CHANNELS \
|
||||
--enable-category MENUSELECT_CODECS \
|
||||
--enable-category MENUSELECT_FORMATS \
|
||||
--disable-category MENUSELECT_FUNCS \
|
||||
--disable-category MENUSELECT_PBX \
|
||||
--disable-category MENUSELECT_RES \
|
||||
--disable-category MENUSELECT_TESTS \
|
||||
--disable-category MENUSELECT_UTILS \
|
||||
--disable-category MENUSELECT_AGIS \
|
||||
--disable-category MENUSELECT_EMBED \
|
||||
--enable-category MENUSELECT_CORE_SOUNDS \
|
||||
--enable-category MENUSELECT_MOH \
|
||||
--enable-category MENUSELECT_EXTRA_SOUNDS \
|
||||
--disable-category MENUSELECT_TESTS \
|
||||
--enable-category MENUSELECT_OPTS_app_voicemail \
|
||||
--enable func_module \
|
||||
--enable LOADABLE_MODULES \
|
||||
--enable FILE_STORAGE \
|
||||
--disable codec_dahdi \
|
||||
--enable app_dial \
|
||||
--enable app_exec \
|
||||
--enable app_originate \
|
||||
--enable app_verbose \
|
||||
--enable chan_sip \
|
||||
--enable pbx_config \
|
||||
--enable res_agi \
|
||||
--enable res_convert \
|
||||
--enable res_musiconhold \
|
||||
--enable res_timing_timerfd \
|
||||
--disable BUILD_NATIVE \
|
||||
menuselect.makeopts \
|
||||
&& make config \
|
||||
&& make \
|
||||
&& make install \
|
||||
&& mkdir -p /var/lib/asterisk/phoneprov \
|
||||
&& make samples \
|
||||
&& make dist-clean \
|
||||
&& sed -i -e 's/# MAXFILES=/MAXFILES=/' /usr/sbin/safe_asterisk \
|
||||
&& cd .. \
|
||||
&& rm /tmp/asterisk.tar.gz \
|
||||
&& rm -rf /tmp/asterisk \
|
||||
&& yum -y clean all \
|
||||
&& rm -rf /var/cache/yum/*
|
||||
|
||||
|
||||
# RUN yum -y update \
|
||||
# && yum -y install epel-release \
|
||||
# && yum -y install kernel-headers gcc gcc-c++ cpp ncurses ncurses-devel libxml2 libxml2-devel sqlite sqlite-devel \
|
||||
# mysql-devel openssl-devel newt-devel kernel-devel libuuid-devel net-snmp-devel xinetd tar libffi-devel \
|
||||
# curl pcre-devel bison mysql-devel ngrep tmux \
|
||||
# && mkdir /tmp/asterisk \
|
||||
# && curl -sf -o /tmp/asterisk.tar.gz -L http://downloads.asterisk.org/pub/telephony/certified-asterisk/certified-asterisk-11.6-current.tar.gz \
|
||||
# && tar -xzf /tmp/asterisk.tar.gz -C /tmp/asterisk --strip-components=1 \
|
||||
# && cd /tmp/asterisk \
|
||||
# && ./configure --libdir=/usr/lib64 \
|
||||
# && make menuselect \
|
||||
# && menuselect/menuselect \
|
||||
# --disable-category MENUSELECT_ADDONS \
|
||||
# --disable-category MENUSELECT_APPS \
|
||||
# --disable-category MENUSELECT_BRIDGES \
|
||||
# --disable-category MENUSELECT_CDR \
|
||||
# --disable-category MENUSELECT_CEL \
|
||||
# --disable-category MENUSELECT_CHANNELS \
|
||||
# --enable-category MENUSELECT_CODECS \
|
||||
# --enable-category MENUSELECT_FORMATS \
|
||||
# --disable-category MENUSELECT_FUNCS \
|
||||
# --disable-category MENUSELECT_PBX \
|
||||
# --disable-category MENUSELECT_RES \
|
||||
# --disable-category MENUSELECT_TESTS \
|
||||
# --disable-category MENUSELECT_OPTS_app_voicemail \
|
||||
# --disable-category MENUSELECT_UTILS \
|
||||
# --disable-category MENUSELECT_AGIS \
|
||||
# --disable-category MENUSELECT_EMBED \
|
||||
# --disable-category MENUSELECT_CORE_SOUNDS \
|
||||
# --disable-category MENUSELECT_MOH \
|
||||
# --disable-category MENUSELECT_EXTRA_SOUNDS \
|
||||
# --enable app_controlplayback \
|
||||
# --enable app_dial \
|
||||
# --enable app_exec \
|
||||
# --enable app_originate \
|
||||
# --enable app_queue \
|
||||
# --enable app_record \
|
||||
# --enable app_senddtmf \
|
||||
# --enable app_stasis \
|
||||
# --enable app_verbose \
|
||||
# --enable app_waituntil \
|
||||
# --enable chan_sip \
|
||||
# --enable pbx_config \
|
||||
# --enable pbx_realtime \
|
||||
# --enable res_agi \
|
||||
# --enable res_ari \
|
||||
# --enable res_ari_channels \
|
||||
# --enable res_ari_events \
|
||||
# --enable res_ari_playbacks \
|
||||
# --enable res_ari_recordings \
|
||||
# --enable res_ari_sounds \
|
||||
# --enable res_ari_device_states \
|
||||
# --enable res_realtime \
|
||||
# --enable res_rtp_asterisk \
|
||||
# --enable res_rtp_multicast \
|
||||
# --enable res_stasis \
|
||||
# --enable res_stasis_answer \
|
||||
# --enable res_stasis_device_state \
|
||||
# --enable res_stasis_playback \
|
||||
# --enable res_stasis_recording \
|
||||
# --enable res_stun_monitor \
|
||||
# --enable res_timing_timerfd \
|
||||
# --enable func_callcompletion \
|
||||
# --enable func_callerid \
|
||||
# --disable BUILD_NATIVE \
|
||||
# menuselect.makeopts \
|
||||
# && make config \
|
||||
# && make \
|
||||
# && make install \
|
||||
# && mkdir -p /var/lib/asterisk/phoneprov \
|
||||
# && make samples \
|
||||
# && make dist-clean \
|
||||
# && sed -i -e 's/# MAXFILES=/MAXFILES=/' /usr/sbin/safe_asterisk \
|
||||
# && cd .. \
|
||||
# && rm /tmp/asterisk.tar.gz \
|
||||
# && rm -rf /tmp/asterisk \
|
||||
# && yum -y clean all \
|
||||
# && rm -rf /var/cache/yum/*
|
||||
#
|
||||
# CMD asterisk -fvvvvv
|
||||
|
@ -1,132 +0,0 @@
|
||||
#!/bin/bash
|
||||
PROGNAME=$(basename $0)
|
||||
|
||||
if test -z ${ASTERISK_VERSION}; then
|
||||
echo "${PROGNAME}: ASTERISK_VERSION required" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
set -ex
|
||||
|
||||
useradd --system asterisk
|
||||
|
||||
apt-get update -qq
|
||||
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends --no-install-suggests \
|
||||
autoconf \
|
||||
binutils-dev \
|
||||
build-essential \
|
||||
ca-certificates \
|
||||
curl \
|
||||
file \
|
||||
libcurl4-openssl-dev \
|
||||
libedit-dev \
|
||||
libgsm1-dev \
|
||||
libogg-dev \
|
||||
libpopt-dev \
|
||||
libresample1-dev \
|
||||
libspandsp-dev \
|
||||
libspeex-dev \
|
||||
libspeexdsp-dev \
|
||||
libsqlite3-dev \
|
||||
libsrtp0-dev \
|
||||
libssl-dev \
|
||||
libvorbis-dev \
|
||||
libxml2-dev \
|
||||
libxslt1-dev \
|
||||
procps \
|
||||
portaudio19-dev \
|
||||
unixodbc \
|
||||
unixodbc-bin \
|
||||
unixodbc-dev \
|
||||
odbcinst \
|
||||
uuid \
|
||||
uuid-dev \
|
||||
xmlstarlet
|
||||
|
||||
apt-get purge -y --auto-remove
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
mkdir -p /usr/src/asterisk
|
||||
cd /usr/src/asterisk
|
||||
|
||||
curl -vsL http://downloads.asterisk.org/pub/telephony/asterisk/releases/asterisk-${ASTERISK_VERSION}.tar.gz | tar --strip-components 1 -xz || \
|
||||
curl -vsL http://downloads.asterisk.org/pub/telephony/asterisk/asterisk-${ASTERISK_VERSION}.tar.gz | tar --strip-components 1 -xz || \
|
||||
curl -vsL http://downloads.asterisk.org/pub/telephony/asterisk/old-releases/asterisk-${ASTERISK_VERSION}.tar.gz | tar --strip-components 1 -xz
|
||||
|
||||
# 1.5 jobs per core works out okay
|
||||
: ${JOBS:=$(( $(nproc) + $(nproc) / 2 ))}
|
||||
|
||||
./configure --with-resample \
|
||||
--with-pjproject-bundled \
|
||||
--with-jansson-bundled
|
||||
make menuselect/menuselect menuselect-tree menuselect.makeopts
|
||||
|
||||
# disable BUILD_NATIVE to avoid platform issues
|
||||
menuselect/menuselect --disable BUILD_NATIVE menuselect.makeopts
|
||||
|
||||
# enable good things
|
||||
menuselect/menuselect --enable BETTER_BACKTRACES menuselect.makeopts
|
||||
|
||||
# codecs
|
||||
# menuselect/menuselect --enable codec_opus menuselect.makeopts
|
||||
# menuselect/menuselect --enable codec_silk menuselect.makeopts
|
||||
|
||||
# # download more sounds
|
||||
# for i in CORE-SOUNDS-EN MOH-OPSOUND EXTRA-SOUNDS-EN; do
|
||||
# for j in ULAW ALAW G722 GSM SLN16; do
|
||||
# menuselect/menuselect --enable $i-$j menuselect.makeopts
|
||||
# done
|
||||
# done
|
||||
|
||||
# we don't need any sounds in docker, they will be mounted as volume
|
||||
menuselect/menuselect --disable-category MENUSELECT_CORE_SOUNDS
|
||||
menuselect/menuselect --disable-category MENUSELECT_MOH
|
||||
menuselect/menuselect --disable-category MENUSELECT_EXTRA_SOUNDS
|
||||
|
||||
make -j ${JOBS} all
|
||||
make install
|
||||
|
||||
# copy default configs
|
||||
# cp /usr/src/asterisk/configs/basic-pbx/*.conf /etc/asterisk/
|
||||
make samples
|
||||
|
||||
# set runuser and rungroup
|
||||
sed -i -E 's/^;(run)(user|group)/\1\2/' /etc/asterisk/asterisk.conf
|
||||
|
||||
# Install opus, for some reason menuselect option above does not working
|
||||
mkdir -p /usr/src/codecs/opus \
|
||||
&& cd /usr/src/codecs/opus \
|
||||
&& curl -vsL http://downloads.digium.com/pub/telephony/codec_opus/${OPUS_CODEC}.tar.gz | tar --strip-components 1 -xz \
|
||||
&& cp *.so /usr/lib/asterisk/modules/ \
|
||||
&& cp codec_opus_config-en_US.xml /var/lib/asterisk/documentation/
|
||||
|
||||
mkdir -p /etc/asterisk/ \
|
||||
/var/spool/asterisk/fax
|
||||
|
||||
chown -R asterisk:asterisk /etc/asterisk \
|
||||
/var/*/asterisk \
|
||||
/usr/*/asterisk
|
||||
chmod -R 750 /var/spool/asterisk
|
||||
|
||||
cd /
|
||||
rm -rf /usr/src/asterisk \
|
||||
/usr/src/codecs
|
||||
|
||||
# remove *-dev packages
|
||||
devpackages=`dpkg -l|grep '\-dev'|awk '{print $2}'|xargs`
|
||||
DEBIAN_FRONTEND=noninteractive apt-get --yes purge \
|
||||
autoconf \
|
||||
build-essential \
|
||||
bzip2 \
|
||||
cpp \
|
||||
m4 \
|
||||
make \
|
||||
patch \
|
||||
perl \
|
||||
perl-modules \
|
||||
pkg-config \
|
||||
xz-utils \
|
||||
${devpackages}
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
exec rm -f /build-asterisk.sh
|
15
debian/1.4.44/hooks/post_push
vendored
Normal file
15
debian/1.4.44/hooks/post_push
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
#!/bin/bash
|
||||
# AUTOMATICALLY GENERATED
|
||||
# DO NOT EDIT THIS FILE DIRECTLY, USE /post_push.erb
|
||||
|
||||
set -e
|
||||
|
||||
# Parse image name for repo name
|
||||
tagStart=$(expr index "$IMAGE_NAME" :)
|
||||
repoName=${IMAGE_NAME:0:tagStart-1}
|
||||
|
||||
# Tag and push image for each additional tag
|
||||
for tag in {1.4.44}; do
|
||||
docker tag $IMAGE_NAME ${repoName}:${tag}
|
||||
docker push ${repoName}:${tag}
|
||||
done
|
@ -54,9 +54,6 @@ curl -vsL http://downloads.asterisk.org/pub/telephony/asterisk/old-releases/aste
|
||||
cd /usr/src/asterisk
|
||||
curl -vsL http://downloads.asterisk.org/pub/telephony/asterisk/old-releases/asterisk-${ASTERISK_VERSION}.tar.gz | tar --strip-components 1 -xz
|
||||
|
||||
# 1.5 jobs per core works out okay
|
||||
: ${JOBS:=$(( $(nproc) + $(nproc) / 2 ))}
|
||||
|
||||
mkdir -p /etc/asterisk/ \
|
||||
/var/spool/asterisk/fax
|
||||
|
||||
@ -68,7 +65,7 @@ menuselect/menuselect --disable-category MENUSELECT_CORE_SOUNDS menuselect.makeo
|
||||
menuselect/menuselect --disable-category MENUSELECT_MOH menuselect.makeopts
|
||||
menuselect/menuselect --disable-category MENUSELECT_EXTRA_SOUNDS menuselect.makeopts
|
||||
|
||||
make -j ${JOBS} all
|
||||
make all
|
||||
make install
|
||||
|
||||
# copy default configs
|
15
debian/1.6.2.24/hooks/post_push
vendored
Normal file
15
debian/1.6.2.24/hooks/post_push
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
#!/bin/bash
|
||||
# AUTOMATICALLY GENERATED
|
||||
# DO NOT EDIT THIS FILE DIRECTLY, USE /post_push.erb
|
||||
|
||||
set -e
|
||||
|
||||
# Parse image name for repo name
|
||||
tagStart=$(expr index "$IMAGE_NAME" :)
|
||||
repoName=${IMAGE_NAME:0:tagStart-1}
|
||||
|
||||
# Tag and push image for each additional tag
|
||||
for tag in {1.6.2.24}; do
|
||||
docker tag $IMAGE_NAME ${repoName}:${tag}
|
||||
docker push ${repoName}:${tag}
|
||||
done
|
@ -53,9 +53,6 @@ curl -vsL http://downloads.asterisk.org/pub/telephony/asterisk/releases/asterisk
|
||||
curl -vsL http://downloads.asterisk.org/pub/telephony/asterisk/asterisk-${ASTERISK_VERSION}.tar.gz | tar --strip-components 1 -xz || \
|
||||
curl -vsL http://downloads.asterisk.org/pub/telephony/asterisk/old-releases/asterisk-${ASTERISK_VERSION}.tar.gz | tar --strip-components 1 -xz
|
||||
|
||||
# 1.5 jobs per core works out okay
|
||||
: ${JOBS:=$(( $(nproc) + $(nproc) / 2 ))}
|
||||
|
||||
./configure --with-resample --with-pjproject-bundled
|
||||
make menuselect/menuselect menuselect-tree menuselect.makeopts
|
||||
|
||||
@ -77,7 +74,7 @@ menuselect/menuselect --disable-category MENUSELECT_CORE_SOUNDS
|
||||
menuselect/menuselect --disable-category MENUSELECT_MOH
|
||||
menuselect/menuselect --disable-category MENUSELECT_EXTRA_SOUNDS
|
||||
|
||||
make -j ${JOBS} all
|
||||
make all
|
||||
make install
|
||||
|
||||
# copy default configs
|
15
debian/1.8.32.3/hooks/post_push
vendored
Normal file
15
debian/1.8.32.3/hooks/post_push
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
#!/bin/bash
|
||||
# AUTOMATICALLY GENERATED
|
||||
# DO NOT EDIT THIS FILE DIRECTLY, USE /post_push.erb
|
||||
|
||||
set -e
|
||||
|
||||
# Parse image name for repo name
|
||||
tagStart=$(expr index "$IMAGE_NAME" :)
|
||||
repoName=${IMAGE_NAME:0:tagStart-1}
|
||||
|
||||
# Tag and push image for each additional tag
|
||||
for tag in {1.8.32.3}; do
|
||||
docker tag $IMAGE_NAME ${repoName}:${tag}
|
||||
docker push ${repoName}:${tag}
|
||||
done
|
@ -53,9 +53,6 @@ curl -vsL http://downloads.asterisk.org/pub/telephony/asterisk/releases/asterisk
|
||||
curl -vsL http://downloads.asterisk.org/pub/telephony/asterisk/asterisk-${ASTERISK_VERSION}.tar.gz | tar --strip-components 1 -xz || \
|
||||
curl -vsL http://downloads.asterisk.org/pub/telephony/asterisk/old-releases/asterisk-${ASTERISK_VERSION}.tar.gz | tar --strip-components 1 -xz
|
||||
|
||||
# 1.5 jobs per core works out okay
|
||||
: ${JOBS:=$(( $(nproc) + $(nproc) / 2 ))}
|
||||
|
||||
./configure --with-resample --with-pjproject-bundled
|
||||
make menuselect/menuselect menuselect-tree menuselect.makeopts
|
||||
|
||||
@ -77,7 +74,7 @@ menuselect/menuselect --disable-category MENUSELECT_CORE_SOUNDS
|
||||
menuselect/menuselect --disable-category MENUSELECT_MOH
|
||||
menuselect/menuselect --disable-category MENUSELECT_EXTRA_SOUNDS
|
||||
|
||||
make -j ${JOBS} all
|
||||
make all
|
||||
make install
|
||||
|
||||
# copy default configs
|
15
debian/10.12.4/hooks/post_push
vendored
Normal file
15
debian/10.12.4/hooks/post_push
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
#!/bin/bash
|
||||
# AUTOMATICALLY GENERATED
|
||||
# DO NOT EDIT THIS FILE DIRECTLY, USE /post_push.erb
|
||||
|
||||
set -e
|
||||
|
||||
# Parse image name for repo name
|
||||
tagStart=$(expr index "$IMAGE_NAME" :)
|
||||
repoName=${IMAGE_NAME:0:tagStart-1}
|
||||
|
||||
# Tag and push image for each additional tag
|
||||
for tag in {10.12.4}; do
|
||||
docker tag $IMAGE_NAME ${repoName}:${tag}
|
||||
docker push ${repoName}:${tag}
|
||||
done
|
15
debian/11.25.3/hooks/post_push
vendored
Normal file
15
debian/11.25.3/hooks/post_push
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
#!/bin/bash
|
||||
# AUTOMATICALLY GENERATED
|
||||
# DO NOT EDIT THIS FILE DIRECTLY, USE /post_push.erb
|
||||
|
||||
set -e
|
||||
|
||||
# Parse image name for repo name
|
||||
tagStart=$(expr index "$IMAGE_NAME" :)
|
||||
repoName=${IMAGE_NAME:0:tagStart-1}
|
||||
|
||||
# Tag and push image for each additional tag
|
||||
for tag in {11.25.3}; do
|
||||
docker tag $IMAGE_NAME ${repoName}:${tag}
|
||||
docker push ${repoName}:${tag}
|
||||
done
|
15
debian/12.8.2/hooks/post_push
vendored
Normal file
15
debian/12.8.2/hooks/post_push
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
#!/bin/bash
|
||||
# AUTOMATICALLY GENERATED
|
||||
# DO NOT EDIT THIS FILE DIRECTLY, USE /post_push.erb
|
||||
|
||||
set -e
|
||||
|
||||
# Parse image name for repo name
|
||||
tagStart=$(expr index "$IMAGE_NAME" :)
|
||||
repoName=${IMAGE_NAME:0:tagStart-1}
|
||||
|
||||
# Tag and push image for each additional tag
|
||||
for tag in {12.8.2}; do
|
||||
docker tag $IMAGE_NAME ${repoName}:${tag}
|
||||
docker push ${repoName}:${tag}
|
||||
done
|
@ -3,7 +3,7 @@ FROM debian:buster-slim
|
||||
|
||||
LABEL maintainer="Andrius Kairiukstis <k@andrius.mobi>"
|
||||
|
||||
ENV ASTERISK_VERSION asterisk-certified-13.21-cert4
|
||||
ENV ASTERISK_VERSION asterisk-certified-13.21-current
|
||||
ENV OPUS_CODEC asterisk-13.0/x86-64/codec_opus-13.0_current-x86_64
|
||||
|
||||
COPY build-asterisk.sh /
|
@ -51,6 +51,7 @@ rm -rf /var/lib/apt/lists/*
|
||||
mkdir -p /usr/src/asterisk
|
||||
cd /usr/src/asterisk
|
||||
|
||||
curl -vsL http://downloads.asterisk.org/pub/telephony/certified-asterisk/${ASTERISK_VERSION}.tar.gz | tar --strip-components 1 -xz || \
|
||||
curl -vsL http://downloads.asterisk.org/pub/telephony/certified-asterisk/releases/${ASTERISK_VERSION}.tar.gz | tar --strip-components 1 -xz
|
||||
|
||||
# 1.5 jobs per core works out okay
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user