Compare commits
25 Commits
26f2e14e85
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
| 28774095e4 | |||
| 2ecee579bb | |||
| 23a2757032 | |||
| 6e829100c4 | |||
| bb7bad029a | |||
| 5c91b7283a | |||
| a1d97d5c9a | |||
| 8d049fc57f | |||
| 5c50e87943 | |||
| 8ac1687958 | |||
| 411d704ffe | |||
| 3be56b8d00 | |||
| a1fad10574 | |||
| 4393e38626 | |||
| bceb1e07d7 | |||
| e18ec90769 | |||
| b523e5adaf | |||
| 576796a5a2 | |||
| 972d457b01 | |||
| 15a0311f38 | |||
| 5b4474001f | |||
| 2fdf8ab2b1 | |||
| 29e8ed363d | |||
| 34f0d0ff3a | |||
| 3d3e428755 |
29
.gitea/workflows/docker.yaml
Normal file
29
.gitea/workflows/docker.yaml
Normal file
@ -0,0 +1,29 @@
|
||||
name: Build AirSignal Docker image
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [master, main]
|
||||
paths:
|
||||
- ".gitea/workflows/docker.yaml"
|
||||
- "Dockerfile"
|
||||
- "*.js"
|
||||
- "*.json"
|
||||
|
||||
jobs:
|
||||
build-docker:
|
||||
runs-on: ubuntu-22.04
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
- name: Login to container registry
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: gitea.vps.chriphost.de
|
||||
username: ${{ secrets.CONTAINER_REGISTRY_USER }}
|
||||
password: ${{ secrets.CONTAINER_REGISTRY_TOKEN }}
|
||||
- name: Build Docker image
|
||||
run: docker build . --file Dockerfile --tag gitea.vps.chriphost.de/christoph/airsignal:latest
|
||||
- name: Push Docker image
|
||||
run: docker push gitea.vps.chriphost.de/christoph/airsignal:latest
|
||||
|
||||
|
||||
21
Dockerfile
Normal file
21
Dockerfile
Normal file
@ -0,0 +1,21 @@
|
||||
# Using official node image as a parent image
|
||||
FROM public.ecr.aws/docker/library/node:20-alpine3.18
|
||||
|
||||
# Create working directory
|
||||
RUN mkdir /app
|
||||
|
||||
# Setting the working directory to /app
|
||||
WORKDIR /app
|
||||
|
||||
# Copy the current directory contents into the container at /app
|
||||
COPY . /app
|
||||
|
||||
# Install AirSignal dependencies
|
||||
RUN npm install
|
||||
|
||||
# AirSignal port
|
||||
EXPOSE 12776
|
||||
|
||||
# Run AirSignal when the container launches
|
||||
ENTRYPOINT ["node"]
|
||||
CMD ["server.js"]
|
||||
@ -3,6 +3,10 @@ This is the nodejs webrtc signalling server code straight off the WebRTC Network
|
||||
|
||||
Use this to create a signalling server for WebRTC projects. AirSignal is used in [AirPeer](https://github.com/adrenak/airpeer), a general purpose WebRTC plugin for Unity as well as [UniVoice](https://github.com/adrenak/univoice), a VoIP solution for Unity based on AirPeer.
|
||||
|
||||
## Installation (Docker)
|
||||
|
||||
Run `docker run --rm --name airsignal -p "12776:12776" -p "12776:12776/udp" -d gitea.vps.chriphost.de/christoph/airsignal:latest` to spin up the container.
|
||||
|
||||
## Installation
|
||||
Install [Nodejs](https://nodejs.org/en/) which comes with [NPM](https://www.npmjs.com/get-npm)
|
||||
After installing run the following commands:
|
||||
|
||||
Reference in New Issue
Block a user