mirror of
https://github.com/coral/sipcord-bridge.git
synced 2026-06-29 17:32:52 -06:00
slopfixing so i can host it easy from ghcr
This commit is contained in:
parent
1ff12ecdff
commit
2301acccf9
10
.dockerignore
Normal file
10
.dockerignore
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
.git
|
||||||
|
.github
|
||||||
|
target
|
||||||
|
**/target
|
||||||
|
.env
|
||||||
|
.env.*
|
||||||
|
!.env.example
|
||||||
|
docker-compose.yml
|
||||||
|
compose.yml
|
||||||
|
*.log
|
||||||
59
.github/workflows/publish-ghcr.yml
vendored
Normal file
59
.github/workflows/publish-ghcr.yml
vendored
Normal file
|
|
@ -0,0 +1,59 @@
|
||||||
|
name: Publish GHCR image
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
tags:
|
||||||
|
- "v*"
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
packages: write
|
||||||
|
|
||||||
|
env:
|
||||||
|
IMAGE_NAME: ghcr.io/${{ github.repository }}
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
docker:
|
||||||
|
name: Build and publish Docker image
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
submodules: recursive
|
||||||
|
|
||||||
|
- name: Set up Docker Buildx
|
||||||
|
uses: docker/setup-buildx-action@v3
|
||||||
|
|
||||||
|
- name: Log in to GitHub Container Registry
|
||||||
|
uses: docker/login-action@v3
|
||||||
|
with:
|
||||||
|
registry: ghcr.io
|
||||||
|
username: ${{ github.actor }}
|
||||||
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
|
- name: Docker metadata
|
||||||
|
id: meta
|
||||||
|
uses: docker/metadata-action@v5
|
||||||
|
with:
|
||||||
|
images: ${{ env.IMAGE_NAME }}
|
||||||
|
tags: |
|
||||||
|
type=raw,value=latest,enable={{is_default_branch}}
|
||||||
|
type=ref,event=branch
|
||||||
|
type=ref,event=tag
|
||||||
|
type=sha,prefix=sha-
|
||||||
|
|
||||||
|
- name: Build and push
|
||||||
|
uses: docker/build-push-action@v6
|
||||||
|
with:
|
||||||
|
context: .
|
||||||
|
file: ./Dockerfile
|
||||||
|
platforms: linux/amd64
|
||||||
|
push: true
|
||||||
|
tags: ${{ steps.meta.outputs.tags }}
|
||||||
|
labels: ${{ steps.meta.outputs.labels }}
|
||||||
|
cache-from: type=gha
|
||||||
|
cache-to: type=gha,mode=max
|
||||||
3
.gitmodules
vendored
Normal file
3
.gitmodules
vendored
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
[submodule "pjsua/pjproject"]
|
||||||
|
path = pjsua/pjproject
|
||||||
|
url = https://github.com/pjsip/pjproject.git
|
||||||
|
|
@ -5,5 +5,5 @@ resolver = "2"
|
||||||
[workspace.package]
|
[workspace.package]
|
||||||
authors = ["coral <jonas@jonasbengtson.se>"]
|
authors = ["coral <jonas@jonasbengtson.se>"]
|
||||||
license = "AGPL-3.0-only"
|
license = "AGPL-3.0-only"
|
||||||
repository = "https://github.com/coral/sipcord-bridge"
|
repository = "https://github.com/legop3/sipcord-bridge"
|
||||||
homepage = "https://sipcord.net/"
|
homepage = "https://sipcord.net/"
|
||||||
|
|
|
||||||
11
README.md
11
README.md
|
|
@ -74,7 +74,7 @@ Create a `docker-compose.yml`:
|
||||||
```yaml
|
```yaml
|
||||||
services:
|
services:
|
||||||
sipcord-bridge:
|
sipcord-bridge:
|
||||||
image: ghcr.io/coral/sipcord-bridge:latest
|
image: ghcr.io/legop3/sipcord-bridge:latest
|
||||||
container_name: sipcord-bridge
|
container_name: sipcord-bridge
|
||||||
restart: always
|
restart: always
|
||||||
network_mode: host
|
network_mode: host
|
||||||
|
|
@ -95,6 +95,15 @@ docker logs -f sipcord-bridge
|
||||||
|
|
||||||
You should see it load the dialplan and start listening.
|
You should see it load the dialplan and start listening.
|
||||||
|
|
||||||
|
Images are published by GitHub Actions to `ghcr.io/legop3/sipcord-bridge`
|
||||||
|
on pushes to `master`, version tags like `v2.1.2`, and manual workflow runs.
|
||||||
|
If the package is private, make it public in the GitHub package settings or
|
||||||
|
log in to GHCR from your OMV host before pulling.
|
||||||
|
|
||||||
|
For a FreePBX trunk, point the trunk host at your Docker host and send the
|
||||||
|
extension digits you configured in `dialplan.toml`. The static router ignores
|
||||||
|
SIP usernames/passwords and routes only by the dialed extension.
|
||||||
|
|
||||||
### 4b. Build from source
|
### 4b. Build from source
|
||||||
|
|
||||||
Requires Rust nightly (for `portable_simd`) and system dependencies for pjproject (OpenSSL, Opus, libtiff, etc). See the `Dockerfile` for the full list.
|
Requires Rust nightly (for `portable_simd`) and system dependencies for pjproject (OpenSSL, Opus, libtiff, etc). See the `Dockerfile` for the full list.
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ version = "2.1.2"
|
||||||
edition = "2024"
|
edition = "2024"
|
||||||
authors = ["coral <jonas@jonasbengtson.se>"]
|
authors = ["coral <jonas@jonasbengtson.se>"]
|
||||||
license = "AGPL-3.0-only"
|
license = "AGPL-3.0-only"
|
||||||
repository = "https://github.com/coral/sipcord-bridge"
|
repository = "https://github.com/legop3/sipcord-bridge"
|
||||||
homepage = "https://sipcord.net/"
|
homepage = "https://sipcord.net/"
|
||||||
publish = false
|
publish = false
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue