Skip to content

Commit

Permalink
Add signalwire auth for fs-deb-repo (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
kingster authored May 1, 2022
1 parent 7c3beaf commit 86a48a6
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 6 deletions.
15 changes: 10 additions & 5 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,22 @@

FROM debian:9


# https://signalwire.com/docs/signalwire-cli/installation/
ARG SIGNALWIRE_TOKEN=GenerateYourOwnToken

# Install git, process tools
RUN apt-get update && apt-get -y install git procps wget tree
RUN apt-get update && apt-get -y install git procps wget tree gnupg2 wget lsb-release apt-transport-https

# Install C++ tools
RUN apt-get -y install build-essential cmake cppcheck valgrind pkg-config lsb-release
RUN apt-get -y install build-essential cmake cppcheck valgrind pkg-config

# Install Freeswitch dev
RUN echo "deb [trusted=yes] http://files.freeswitch.org/repo/deb/freeswitch-1.8/ stretch main" > /etc/apt/sources.list.d/freeswitch.list
RUN wget -O - https://files.freeswitch.org/repo/deb/freeswitch-1.8/fsstretch-archive-keyring.asc | apt-key add -
RUN wget --http-user=signalwire --http-password=$SIGNALWIRE_TOKEN -O - https://freeswitch.signalwire.com/repo/deb/debian-release/signalwire-freeswitch-repo.gpg | apt-key add -

RUN echo "machine freeswitch.signalwire.com login signalwire password $SIGNALWIRE_TOKEN" > /etc/apt/auth.conf

RUN echo "deb https://freeswitch.signalwire.com/repo/deb/freeswitch-1.8/ `lsb_release -sc` main" > /etc/apt/sources.list.d/freeswitch.list
RUN echo "deb-src https://freeswitch.signalwire.com/repo/deb/freeswitch-1.8/ `lsb_release -sc` main" >> /etc/apt/sources.list.d/freeswitch.list

RUN apt-get update && apt-get -y install libfreeswitch-dev librdkafka-dev libz-dev libssl-dev

Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ jobs:
file: .devcontainer/Dockerfile
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max
build-args: |
SIGNALWIRE_TOKEN=${{ secrets.SIGNALWIRE_TOKEN }}
- name: Compile
run: |
docker run -i localhost:5000/${{ github.repository }}_build:latest bash -c "cd /mod_event_kafka && make && ls"
Expand Down
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -64,4 +64,7 @@ cmake-build-debug/


#dist
*.deb
*.deb

#vagrant
.vagrant

0 comments on commit 86a48a6

Please sign in to comment.