Skip to content

Commit

Permalink
feat: mumble integration initial
Browse files Browse the repository at this point in the history
  • Loading branch information
garrappachc committed Feb 4, 2025
1 parent f5a677d commit 204e92d
Show file tree
Hide file tree
Showing 48 changed files with 890 additions and 16 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ jobs:
LOG_RELAY_PORT: '9871'
GAME_SERVER_SECRET: 'xxxxxx'
KEY_STORE_PASSPHRASE: 'a_password'
MUMBLE_SUPERUSER_PASSWORD: '123456'

strategy:
fail-fast: false
Expand All @@ -106,6 +107,20 @@ jobs:
- uses: pnpm/action-setup@v2
with:
version: 8

- name: Start mumble server
run: |
docker run \
--rm --detach \
--name mumble-server \
--network=${{ job.services.mongo.network }} \
-p 64738:64738/tcp \
-p 64738:64738/udp \
-e MUMBLE_CONFIG_AUTOBAN_ATTEMPTS=0 \
-e MUMBLE_SUPERUSER_PASSWORD=${{ env.MUMBLE_SUPERUSER_PASSWORD }} \
--user root \
mumblevoip/mumble-server:latest
- uses: actions/setup-node@v4
with:
node-version: 20
Expand Down Expand Up @@ -161,6 +176,8 @@ jobs:
env:
STEAM_USERNAME: ${{ secrets.TEST_USER_USERNAME }}
STEAM_PASSWORD: ${{ secrets.TEST_USER_PASSWORD }}
TEST_MUMBLE_SERVER_HOST: 'mumble-server'
TEST_MUMBLE_SERVER_SUPERUSER_PASSWORD: ${{ env.MUMBLE_SUPERUSER_PASSWORD }}

- name: Stop app
if: ${{ always() }}
Expand Down
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --frozen-lockfile
RUN pnpm run build

FROM base
RUN apt update && apt install -y --no-install-recommends openssl
COPY package.json /app
COPY --from=prod-deps /app/node_modules /app/node_modules
COPY --from=build /app/dist /app/dist
Expand Down
8 changes: 8 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,13 @@ services:
profiles:
- dev

mumble:
image: mumblevoip/mumble-server:latest
environment:
- MUMBLE_SUPERUSER_PASSWORD=123456
ports:
- 64738:64738/tcp
- 64738:64738/udp

volumes:
mongo:
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
"@kitajs/ts-html-plugin": "4.1.1",
"@tailwindcss/typography": "0.5.16",
"@tf2pickup-org/serveme-tf-client": "0.1.2",
"@tf2pickup-org/mumble-client": "0.10.0",
"async-mutex": "0.5.0",
"autoprefixer": "10.4.20",
"country-flag-icons": "1.5.14",
Expand All @@ -48,6 +49,8 @@
"mongodb": "6.13.0",
"nanoid": "5.0.9",
"openid": "2.0.12",
"package-up": "5.0.0",
"pem": "1.14.8",
"pino": "9.6.0",
"postcss": "8.5.1",
"postcss-import": "16.1.0",
Expand All @@ -68,6 +71,7 @@
"@types/jsonwebtoken": "9.0.8",
"@types/node": "22.13.1",
"@types/openid": "2.0.5",
"@types/pem": "1.14.4",
"@types/postcss-import": "14.0.3",
"@types/steamid": "2.0.3",
"@types/ws": "8.5.13",
Expand Down
108 changes: 108 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 204e92d

Please sign in to comment.