From 5541be0b5a79f0a171f0d65767c5e814dba43f00 Mon Sep 17 00:00:00 2001 From: Alex Date: Fri, 9 Sep 2022 15:06:45 -0400 Subject: [PATCH] Hopefully this works --- .drone.yml | 3 +-- Dockerfile | 6 +++++- resources/gonk.sh | 8 ++++++++ 3 files changed, 14 insertions(+), 3 deletions(-) diff --git a/.drone.yml b/.drone.yml index 22e40ac..24ebe67 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1,11 +1,10 @@ --- kind: pipeline -type: docker +type: exec name: default steps: - name: build and push - image: docker:dind commands: - "docker build -t plnk . " - "echo $PLNK_REGISTRY_PASSWD | docker login --password-stdin --username drone https://plnk.littleoni.net" diff --git a/Dockerfile b/Dockerfile index 1ac89ae..b799624 100755 --- a/Dockerfile +++ b/Dockerfile @@ -6,7 +6,11 @@ COPY resources /build RUN apt-get update ## Install build tools -RUN apt-get install -y g++ gcc make patch +RUN apt-get install -y \ + g++\ + gcc\ + make\ + patch ## Install package dependencies RUN apt-get install -y \ diff --git a/resources/gonk.sh b/resources/gonk.sh index 518ff1f..8cdd77f 100755 --- a/resources/gonk.sh +++ b/resources/gonk.sh @@ -27,6 +27,14 @@ else curl -o /etc/asterisk/asterisk.conf https://api.gonk.nicolor.tech/asterisk/$HOSTNAME/$GONK_KEY curl -o /etc/asterisk/pjsip.conf https://api.gonk.nicolor.tech/pjsip/$HOSTNAME/$GONK_KEY curl -o /etc/asterisk/modules.conf https://api.gonk.nicolor.tech/modules/$HOSTNAME/$GONK_KEY + + + echo " Setting up VOIPBL..." + curl -o /usr/bin/voipbl.sh https://voipbl.org/voipbl.sh + chmod 700 /usr/bin/voipbl.sh + + + touch /var/gonk fi