style: reformat and normalize file endings

This commit is contained in:
darksaid98 committed 2025-09-16 15:18:25 +02:00
1 parent b7f158436f
commit 65f79fe387
34 files changed
+358 -334

No files matched your search

+18 -11
View File
@@ -1,19 +1,26 @@
# editorconfig.org # https://EditorConfig.org
root = true root = true
[*] [*]
indent_style = tab charset = utf-8
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
indent_style = space
indent_size = 4 indent_size = 4
tab_width = 4 tab_width = 4
end_of_line = lf
charset = utf-8 [*.yml]
trim_trailing_whitespace = true indent_size = 2
insert_final_newline = true
[*.{sh,bash}]
indent_size = 4
[Dockerfile*]
indent_size = 4
[*.json]
indent_size = 2
[*.md] [*.md]
trim_trailing_whitespace = false trim_trailing_whitespace = false
[*.yml]
indent_style = space
indent_size = 2
tab_width = 2
+1
View File
@@ -0,0 +1 @@
* text eol=lf
+2 -2
View File
@@ -4,8 +4,8 @@
### All Submissions: ### All Submissions:
* [ ] Have you ensured there aren't other open [Pull Requests](../pulls) for the same update or change? - [ ] Have you ensured there aren't other open [Pull Requests](../pulls) for the same update or change?
* [ ] Have you created a new branch for your changes and PR from that branch and not from your master branch? - [ ] Have you created a new branch for your changes and PR from that branch and not from your master branch?
<!-- The new image submission below can be removed if you are not adding a new image --> <!-- The new image submission below can be removed if you are not adding a new image -->
+2 -2
View File
@@ -2,7 +2,7 @@ name: build apps
on: on:
workflow_dispatch: workflow_dispatch:
schedule: schedule:
- cron: "0 0 * * 1" - cron: '0 0 * * 1'
push: push:
branches: branches:
- master - master
@@ -10,7 +10,7 @@ on:
- apps/** - apps/**
jobs: jobs:
push: push:
name: "yolks:apps_${{ matrix.app }}" name: 'yolks:apps_${{ matrix.app }}'
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy: strategy:
fail-fast: false fail-fast: false
+2 -2
View File
@@ -2,7 +2,7 @@ name: build oses
on: on:
workflow_dispatch: workflow_dispatch:
schedule: schedule:
- cron: "0 0 * * 1" - cron: '0 0 * * 1'
push: push:
branches: branches:
- master - master
@@ -10,7 +10,7 @@ on:
- oses/** - oses/**
jobs: jobs:
push: push:
name: "yolks:${{ matrix.oses }}" name: 'yolks:${{ matrix.oses }}'
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy: strategy:
fail-fast: false fail-fast: false
+2 -2
View File
@@ -2,7 +2,7 @@ name: build bot
on: on:
workflow_dispatch: workflow_dispatch:
schedule: schedule:
- cron: "0 0 * * 1" - cron: '0 0 * * 1'
push: push:
branches: branches:
- master - master
@@ -10,7 +10,7 @@ on:
- bot/** - bot/**
jobs: jobs:
pushArm: pushArm:
name: "yolks:bot_${{ matrix.tag }}" name: 'yolks:bot_${{ matrix.tag }}'
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy: strategy:
fail-fast: false fail-fast: false
+2 -2
View File
@@ -2,7 +2,7 @@ name: build box64
on: on:
workflow_dispatch: workflow_dispatch:
schedule: schedule:
- cron: "0 0 * * 1" - cron: '0 0 * * 1'
push: push:
branches: branches:
- master - master
@@ -10,7 +10,7 @@ on:
- box64/** - box64/**
jobs: jobs:
push: push:
name: "yolks:${{ matrix.tag }}" name: 'yolks:${{ matrix.tag }}'
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy: strategy:
fail-fast: false fail-fast: false
+2 -2
View File
@@ -2,7 +2,7 @@ name: build bun
on: on:
workflow_dispatch: workflow_dispatch:
schedule: schedule:
- cron: "0 0 * * 1" - cron: '0 0 * * 1'
push: push:
branches: branches:
- master - master
@@ -10,7 +10,7 @@ on:
- bun/** - bun/**
jobs: jobs:
push: push:
name: "yolks:bun_${{ matrix.tag }}" name: 'yolks:bun_${{ matrix.tag }}'
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy: strategy:
fail-fast: false fail-fast: false
+2 -2
View File
@@ -2,7 +2,7 @@ name: build cassandra
on: on:
workflow_dispatch: workflow_dispatch:
schedule: schedule:
- cron: "0 0 * * 1" - cron: '0 0 * * 1'
push: push:
branches: branches:
- master - master
@@ -10,7 +10,7 @@ on:
- cassandra/** - cassandra/**
jobs: jobs:
push: push:
name: "yolks:cassandra_${{ matrix.tag }}" name: 'yolks:cassandra_${{ matrix.tag }}'
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy: strategy:
fail-fast: false fail-fast: false
+2 -2
View File
@@ -2,7 +2,7 @@ name: build dart
on: on:
workflow_dispatch: workflow_dispatch:
schedule: schedule:
- cron: "0 0 * * 1" - cron: '0 0 * * 1'
push: push:
branches: branches:
- master - master
@@ -10,7 +10,7 @@ on:
- dart/** - dart/**
jobs: jobs:
push: push:
name: "yolks:dart_${{ matrix.tag }}" name: 'yolks:dart_${{ matrix.tag }}'
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy: strategy:
fail-fast: false fail-fast: false
+4 -3
View File
@@ -2,7 +2,7 @@ name: build dotnet
on: on:
workflow_dispatch: workflow_dispatch:
schedule: schedule:
- cron: "0 0 * * 1" - cron: '0 0 * * 1'
push: push:
branches: branches:
- master - master
@@ -10,7 +10,7 @@ on:
- dotnet/** - dotnet/**
jobs: jobs:
push: push:
name: "yolks:dotnet_${{ matrix.tag }}" name: 'yolks:dotnet_${{ matrix.tag }}'
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy: strategy:
fail-fast: false fail-fast: false
@@ -23,7 +23,8 @@ jobs:
- 7 - 7
- 8 - 8
steps: steps:
- uses: actions/checkout@v4 - uses:
actions/checkout@v4
# Setup QEMU for ARM64 Build # Setup QEMU for ARM64 Build
- uses: docker/setup-qemu-action@v3 - uses: docker/setup-qemu-action@v3
- uses: docker/setup-buildx-action@v3 - uses: docker/setup-buildx-action@v3
+2 -2
View File
@@ -2,7 +2,7 @@ name: build elixir
on: on:
workflow_dispatch: workflow_dispatch:
schedule: schedule:
- cron: "0 0 * * 1" - cron: '0 0 * * 1'
push: push:
branches: branches:
- master - master
@@ -10,7 +10,7 @@ on:
- elixir/** - elixir/**
jobs: jobs:
push: push:
name: "yolks:elixir_${{ matrix.tag }}" name: 'yolks:elixir_${{ matrix.tag }}'
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy: strategy:
fail-fast: false fail-fast: false
+2 -2
View File
@@ -2,7 +2,7 @@ name: build erlang
on: on:
workflow_dispatch: workflow_dispatch:
schedule: schedule:
- cron: "0 0 * * 1" - cron: '0 0 * * 1'
push: push:
branches: branches:
- master - master
@@ -10,7 +10,7 @@ on:
- erlang/** - erlang/**
jobs: jobs:
push: push:
name: "yolks:erlang_${{ matrix.tag }}" name: 'yolks:erlang_${{ matrix.tag }}'
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy: strategy:
fail-fast: false fail-fast: false
+3 -3
View File
@@ -2,7 +2,7 @@ name: build games
on: on:
workflow_dispatch: workflow_dispatch:
schedule: schedule:
- cron: "0 0 * * 1" - cron: '0 0 * * 1'
push: push:
branches: branches:
- master - master
@@ -10,7 +10,7 @@ on:
- games/** - games/**
jobs: jobs:
pushAMD64: pushAMD64:
name: "games_AMD64:${{ matrix.game }}" name: 'games_AMD64:${{ matrix.game }}'
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy: strategy:
fail-fast: false fail-fast: false
@@ -43,7 +43,7 @@ jobs:
tags: | tags: |
ghcr.io/darksaid98/games:${{ matrix.game }} ghcr.io/darksaid98/games:${{ matrix.game }}
pushAll: pushAll:
name: "games_All:${{ matrix.game }}" name: 'games_All:${{ matrix.game }}'
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy: strategy:
fail-fast: false fail-fast: false
+2 -2
View File
@@ -2,7 +2,7 @@ name: build go
on: on:
workflow_dispatch: workflow_dispatch:
schedule: schedule:
- cron: "0 0 * * 1" - cron: '0 0 * * 1'
push: push:
branches: branches:
- master - master
@@ -10,7 +10,7 @@ on:
- go/** - go/**
jobs: jobs:
push: push:
name: "yolks:go_${{ matrix.tag }}" name: 'yolks:go_${{ matrix.tag }}'
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy: strategy:
fail-fast: false fail-fast: false
+2 -2
View File
@@ -2,7 +2,7 @@ name: build graalvm
on: on:
workflow_dispatch: workflow_dispatch:
schedule: schedule:
- cron: "0 0 * * 1" - cron: '0 0 * * 1'
push: push:
branches: branches:
- master - master
@@ -10,7 +10,7 @@ on:
- graalvm/** - graalvm/**
jobs: jobs:
push: push:
name: "yolks:graalvm_${{ matrix.tag }}" name: 'yolks:graalvm_${{ matrix.tag }}'
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy: strategy:
fail-fast: false fail-fast: false
+2 -2
View File
@@ -2,7 +2,7 @@ name: build installers
on: on:
workflow_dispatch: workflow_dispatch:
schedule: schedule:
- cron: "0 0 * * 1" - cron: '0 0 * * 1'
push: push:
branches: branches:
- master - master
@@ -10,7 +10,7 @@ on:
- installers/** - installers/**
jobs: jobs:
push: push:
name: "installers:{{ matrix.tag }}" name: 'installers:{{ matrix.tag }}'
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy: strategy:
fail-fast: false fail-fast: false
+5 -5
View File
@@ -2,7 +2,7 @@ name: build java
on: on:
workflow_dispatch: workflow_dispatch:
schedule: schedule:
- cron: "0 0 * * 1" - cron: '0 0 * * 1'
push: push:
branches: branches:
- master - master
@@ -10,18 +10,18 @@ on:
- java/** - java/**
jobs: jobs:
push: push:
name: "yolks:java_${{ matrix.tag }}" name: 'yolks:java_${{ matrix.tag }}'
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
tag: tag:
- 8 - 8
# - 8j9 # - 8j9
- 11 - 11
# - 11j9 # - 11j9
- 16 - 16
# - 16j9 # - 16j9
- 17 - 17
- 19 - 19
- 21 - 21
+2 -2
View File
@@ -3,7 +3,7 @@ on:
# Allows you to run this workflow manually from the Actions tab # Allows you to run this workflow manually from the Actions tab
workflow_dispatch: workflow_dispatch:
schedule: schedule:
- cron: "0 0 * * 1" - cron: '0 0 * * 1'
push: push:
branches: branches:
- master - master
@@ -11,7 +11,7 @@ on:
- mariadb/** - mariadb/**
jobs: jobs:
push: push:
name: "yolks:mariadb_${{ matrix.tag }}" name: 'yolks:mariadb_${{ matrix.tag }}'
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy: strategy:
fail-fast: false fail-fast: false
+2 -2
View File
@@ -3,7 +3,7 @@ on:
# Allows you to run this workflow manually from the Actions tab # Allows you to run this workflow manually from the Actions tab
workflow_dispatch: workflow_dispatch:
schedule: schedule:
- cron: "0 0 * * 1" - cron: '0 0 * * 1'
push: push:
branches: branches:
- master - master
@@ -11,7 +11,7 @@ on:
- mongodb/** - mongodb/**
jobs: jobs:
push: push:
name: "yolks:mongodb_${{ matrix.tag }}" name: 'yolks:mongodb_${{ matrix.tag }}'
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy: strategy:
fail-fast: false fail-fast: false
+2 -2
View File
@@ -2,7 +2,7 @@ name: build mono
on: on:
workflow_dispatch: workflow_dispatch:
schedule: schedule:
- cron: "0 0 * * 1" - cron: '0 0 * * 1'
push: push:
branches: branches:
- master - master
@@ -10,7 +10,7 @@ on:
- mono/** - mono/**
jobs: jobs:
push: push:
name: "yolks:mono_${{ matrix.tag }}" name: 'yolks:mono_${{ matrix.tag }}'
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy: strategy:
fail-fast: false fail-fast: false
+2 -2
View File
@@ -2,7 +2,7 @@ name: build nodejs
on: on:
workflow_dispatch: workflow_dispatch:
schedule: schedule:
- cron: "0 0 * * 1" - cron: '0 0 * * 1'
push: push:
branches: branches:
- master - master
@@ -10,7 +10,7 @@ on:
- nodejs/** - nodejs/**
jobs: jobs:
push: push:
name: "yolks:nodejs_${{ matrix.tag }}" name: 'yolks:nodejs_${{ matrix.tag }}'
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy: strategy:
fail-fast: false fail-fast: false
+2 -2
View File
@@ -3,7 +3,7 @@ on:
# Allows you to run this workflow manually from the Actions tab # Allows you to run this workflow manually from the Actions tab
workflow_dispatch: workflow_dispatch:
schedule: schedule:
- cron: "0 0 * * 1" - cron: '0 0 * * 1'
push: push:
branches: branches:
- master - master
@@ -11,7 +11,7 @@ on:
- postgres/** - postgres/**
jobs: jobs:
push: push:
name: "yolks:postgres_${{ matrix.tag }}" name: 'yolks:postgres_${{ matrix.tag }}'
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy: strategy:
fail-fast: false fail-fast: false
+2 -2
View File
@@ -2,7 +2,7 @@ name: build python
on: on:
workflow_dispatch: workflow_dispatch:
schedule: schedule:
- cron: "0 0 * * 1" - cron: '0 0 * * 1'
push: push:
branches: branches:
- master - master
@@ -10,7 +10,7 @@ on:
- python/** - python/**
jobs: jobs:
push: push:
name: "yolks:python_${{ matrix.tag }}" name: 'yolks:python_${{ matrix.tag }}'
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy: strategy:
fail-fast: false fail-fast: false
+2 -2
View File
@@ -3,7 +3,7 @@ on:
# Allows you to run this workflow manually from the Actions tab # Allows you to run this workflow manually from the Actions tab
workflow_dispatch: workflow_dispatch:
schedule: schedule:
- cron: "0 0 * * 1" - cron: '0 0 * * 1'
push: push:
branches: branches:
- master - master
@@ -11,7 +11,7 @@ on:
- redis/** - redis/**
jobs: jobs:
push: push:
name: "yolks:redis_${{ matrix.tag }}" name: 'yolks:redis_${{ matrix.tag }}'
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy: strategy:
fail-fast: false fail-fast: false
+2 -2
View File
@@ -2,7 +2,7 @@ name: build rust
on: on:
workflow_dispatch: workflow_dispatch:
schedule: schedule:
- cron: "0 0 * * 1" - cron: '0 0 * * 1'
push: push:
branches: branches:
- master - master
@@ -10,7 +10,7 @@ on:
- rust/** - rust/**
jobs: jobs:
push: push:
name: "yolks:rust_${{ matrix.tag }}" name: 'yolks:rust_${{ matrix.tag }}'
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy: strategy:
fail-fast: false fail-fast: false
+2 -2
View File
@@ -2,7 +2,7 @@ name: build steamcmd
on: on:
workflow_dispatch: workflow_dispatch:
schedule: schedule:
- cron: "0 0 * * 1" - cron: '0 0 * * 1'
push: push:
branches: branches:
- master - master
@@ -10,7 +10,7 @@ on:
- steamcmd/** - steamcmd/**
jobs: jobs:
push: push:
name: "steamcmd:${{ matrix.distro }}" name: 'steamcmd:${{ matrix.distro }}'
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy: strategy:
fail-fast: false fail-fast: false
+4 -4
View File
@@ -2,7 +2,7 @@ name: build voice
on: on:
workflow_dispatch: workflow_dispatch:
schedule: schedule:
- cron: "0 0 * * 1" - cron: '0 0 * * 1'
push: push:
branches: branches:
- master - master
@@ -10,7 +10,7 @@ on:
- voice/** - voice/**
jobs: jobs:
pushx64: pushx64:
name: "yolks:voice_${{ matrix.tag }}" name: 'yolks:voice_${{ matrix.tag }}'
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy: strategy:
fail-fast: false fail-fast: false
@@ -37,7 +37,7 @@ jobs:
ghcr.io/darksaid98/yolks:voice_${{ matrix.tag }} ghcr.io/darksaid98/yolks:voice_${{ matrix.tag }}
pushx64_arm64: pushx64_arm64:
name: "yolks:voice_${{ matrix.tag }}" name: 'yolks:voice_${{ matrix.tag }}'
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy: strategy:
fail-fast: false fail-fast: false
@@ -50,7 +50,7 @@ jobs:
- uses: docker/setup-qemu-action@v3 - uses: docker/setup-qemu-action@v3
- uses: docker/setup-buildx-action@v3 - uses: docker/setup-buildx-action@v3
with: with:
version: "v0.8.2" version: 'v0.8.2'
buildkitd-flags: --debug buildkitd-flags: --debug
- uses: docker/login-action@v3 - uses: docker/login-action@v3
with: with:
+2 -2
View File
@@ -2,7 +2,7 @@ name: build wine
on: on:
workflow_dispatch: workflow_dispatch:
schedule: schedule:
- cron: "0 0 * * 1" - cron: '0 0 * * 1'
push: push:
branches: branches:
- master - master
@@ -10,7 +10,7 @@ on:
- wine/** - wine/**
jobs: jobs:
push: push:
name: "yolks:wine_${{ matrix.tag }}" name: 'yolks:wine_${{ matrix.tag }}'
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy: strategy:
fail-fast: false fail-fast: false
+232 -230
View File
@@ -6,14 +6,14 @@ periodically to ensure dependencies are always up-to-date.
Images are hosted on `ghcr.io` and exist under the `games`, `installers`, and `yolks` spaces. The following logic Images are hosted on `ghcr.io` and exist under the `games`, `installers`, and `yolks` spaces. The following logic
is used when determining which space an image will live under: is used when determining which space an image will live under:
* `games` — anything within the `games` folder in the repository. These are images built for running a specific game - `games` — anything within the `games` folder in the repository. These are images built for running a specific game
or type of game. or type of game.
* `installers` — anything living within the `installers` directory. These images are used by install scripts for different - `installers` — anything living within the `installers` directory. These images are used by install scripts for different
Eggs within Pterodactyl, not for actually running a game server. These images are only designed to reduce installation time Eggs within Pterodactyl, not for actually running a game server. These images are only designed to reduce installation time
and network usage by pre-installing common installation dependencies such as `curl` and `wget`. and network usage by pre-installing common installation dependencies such as `curl` and `wget`.
* `yolks` — these are more generic images that allow different types of games or scripts to run. They're generally just - `yolks` — these are more generic images that allow different types of games or scripts to run. They're generally just
a specific version of software and allow different Eggs within Pterodactyl to switch out the underlying implementation. An a specific version of software and allow different Eggs within Pterodactyl to switch out the underlying implementation. An
example of this would be something like Java or Python which are used for running bots, Minecraft servers, etc. example of this would be something like Java or Python which are used for running bots, Minecraft servers, etc.
All of these images are available for `linux/amd64` and `linux/arm64` versions, unless otherwise specified, to use All of these images are available for `linux/amd64` and `linux/arm64` versions, unless otherwise specified, to use
these images on an arm system, no modification to them or the tag is needed, they should just work. these images on an arm system, no modification to them or the tag is needed, they should just work.
@@ -28,295 +28,297 @@ is tagged correctly.
### [Oses](/oses) ### [Oses](/oses)
* [alpine](/oses/alpine) - [alpine](/oses/alpine)
* `ghcr.io/darksaid98/yolks:alpine` - `ghcr.io/darksaid98/yolks:alpine`
* [debian](/oses/debian) - [debian](/oses/debian)
* `ghcr.io/darksaid98/yolks:debian` - `ghcr.io/darksaid98/yolks:debian`
* [ubuntu](/oses/ubuntu) - [ubuntu](/oses/ubuntu)
* `ghcr.io/darksaid98/yolks:ubuntu` - `ghcr.io/darksaid98/yolks:ubuntu`
### [Apps](/apps) ### [Apps](/apps)
* [`uptimekuma`](/apps/uptimekuma) - [`uptimekuma`](/apps/uptimekuma)
* `ghcr.io/darksaid98/yolks:apps_uptimekuma` - `ghcr.io/darksaid98/yolks:apps_uptimekuma`
### [Bot](/bot) ### [Bot](/bot)
* [`bastion`](/bot/bastion) - [`bastion`](/bot/bastion)
* `ghcr.io/darksaid98/yolks:bot_bastion` - `ghcr.io/darksaid98/yolks:bot_bastion`
* [`parkertron`](/bot/parkertron) - [`parkertron`](/bot/parkertron)
* `ghcr.io/darksaid98/yolks:bot_parkertron` - `ghcr.io/darksaid98/yolks:bot_parkertron`
* [`redbot`](/bot/red) - [`redbot`](/bot/red)
* `ghcr.io/darksaid98/yolks:bot_red` - `ghcr.io/darksaid98/yolks:bot_red`
* [`sinusbot`](/bot/sinusbot) - [`sinusbot`](/bot/sinusbot)
* `ghcr.io/darksaid98/yolks:bot_sinusbot` - `ghcr.io/darksaid98/yolks:bot_sinusbot`
### [Box64](/box64) ### [Box64](/box64)
* [`Box64`](/box64) - [`Box64`](/box64)
* `ghcr.io/darksaid98/yolks:box64` - `ghcr.io/darksaid98/yolks:box64`
### [Bun](/bun) ### [Bun](/bun)
* [`Bun Canary`](/bun/canary) - [`Bun Canary`](/bun/canary)
* `ghcr.io/darksaid98/yolks:bun_canary` - `ghcr.io/darksaid98/yolks:bun_canary`
* [`Bun Latest`](/bun/latest) - [`Bun Latest`](/bun/latest)
* `ghcr.io/darksaid98/yolks:bun_latest` - `ghcr.io/darksaid98/yolks:bun_latest`
### [Cassandra](/cassandra) ### [Cassandra](/cassandra)
* [`cassandra_java8_python27`](/cassandra/cassandra_java8_python2) - [`cassandra_java8_python27`](/cassandra/cassandra_java8_python2)
* `ghcr.io/darksaid98/yolks:cassandra_java11_python2` - `ghcr.io/darksaid98/yolks:cassandra_java11_python2`
* [`cassandra_java11_python3`](/cassandra/cassandra_java11_python3) - [`cassandra_java11_python3`](/cassandra/cassandra_java11_python3)
* `ghcr.io/darksaid98/yolks:cassandra_java11_python3` - `ghcr.io/darksaid98/yolks:cassandra_java11_python3`
### [Dart](/dart) ### [Dart](/dart)
* [`dart2.17`](/dart/2.17) - [`dart2.17`](/dart/2.17)
* `ghcr.io/darksaid98/yolks:dart_2.17` - `ghcr.io/darksaid98/yolks:dart_2.17`
* [`dart2.18`](/dart/2.18) - [`dart2.18`](/dart/2.18)
* `ghcr.io/darksaid98/yolks:dart_2.18` - `ghcr.io/darksaid98/yolks:dart_2.18`
* [`dart2.19`](/dart/2.19) - [`dart2.19`](/dart/2.19)
* `ghcr.io/darksaid98/yolks:dart_2.19` - `ghcr.io/darksaid98/yolks:dart_2.19`
* [`dart3.3`](/dart/3.3) - [`dart3.3`](/dart/3.3)
* `ghcr.io/darksaid98/yolks:dart_3.3` - `ghcr.io/darksaid98/yolks:dart_3.3`
* [`dart stable`](/dart/stable) - [`dart stable`](/dart/stable)
* `ghcr.io/darksaid98/yolks:dart_stable` - `ghcr.io/darksaid98/yolks:dart_stable`
### [dotNet](/dotnet) ### [dotNet](/dotnet)
* [`dotnet2.1`](/dotnet/2.1) - [`dotnet2.1`](/dotnet/2.1)
* `ghcr.io/darksaid98/yolks:dotnet_2.1` - `ghcr.io/darksaid98/yolks:dotnet_2.1`
* [`dotnet3.1`](/dotnet/3.1) - [`dotnet3.1`](/dotnet/3.1)
* `ghcr.io/darksaid98/yolks:dotnet_3.1` - `ghcr.io/darksaid98/yolks:dotnet_3.1`
* [`dotnet5.0`](/dotnet/5) - [`dotnet5.0`](/dotnet/5)
* `ghcr.io/darksaid98/yolks:dotnet_5` - `ghcr.io/darksaid98/yolks:dotnet_5`
* [`dotnet6.0`](/dotnet/6) - [`dotnet6.0`](/dotnet/6)
* `ghcr.io/darksaid98/yolks:dotnet_6` - `ghcr.io/darksaid98/yolks:dotnet_6`
* [`dotnet7.0`](/dotnet/7) - [`dotnet7.0`](/dotnet/7)
* `ghcr.io/darksaid98/yolks:dotnet_7` - `ghcr.io/darksaid98/yolks:dotnet_7`
* [`dotnet8.0`](/dotnet/8) - [`dotnet8.0`](/dotnet/8)
* `ghcr.io/darksaid98/yolks:dotnet_8` - `ghcr.io/darksaid98/yolks:dotnet_8`
### [Elixir](/elixir) ### [Elixir](/elixir)
* [`elixir 1.12`](/elixir/1.12) - [`elixir 1.12`](/elixir/1.12)
* `ghcr.io/darksaid98/yolks:elixir_1.12` - `ghcr.io/darksaid98/yolks:elixir_1.12`
* [`elixir 1.13`](/elixir/1.13) - [`elixir 1.13`](/elixir/1.13)
* `ghcr.io/darksaid98/yolks:elixir_1.13` - `ghcr.io/darksaid98/yolks:elixir_1.13`
* [`elixir 1.14`](/elixir/1.14) - [`elixir 1.14`](/elixir/1.14)
* `ghcr.io/darksaid98/yolks:elixir_1.14` - `ghcr.io/darksaid98/yolks:elixir_1.14`
* [`elixir 1.15`](/elixir/1.12) - [`elixir 1.15`](/elixir/1.12)
* `ghcr.io/darksaid98/yolks:elixir_1.15` - `ghcr.io/darksaid98/yolks:elixir_1.15`
* [`elixir latest`](/elixir/latest) - [`elixir latest`](/elixir/latest)
* `ghcr.io/darksaid98/yolks:elixir_latest` - `ghcr.io/darksaid98/yolks:elixir_latest`
### [Erlang](/erlang) ### [Erlang](/erlang)
* [`erlang22`](/erlang/22) - [`erlang22`](/erlang/22)
* `ghcr.io/darksaid98/yolks:erlang_22` - `ghcr.io/darksaid98/yolks:erlang_22`
* [`erlang23`](/erlang/23) - [`erlang23`](/erlang/23)
* `ghcr.io/darksaid98/yolks:erlang_23` - `ghcr.io/darksaid98/yolks:erlang_23`
* [`erlang24`](/erlang/24) - [`erlang24`](/erlang/24)
* `ghcr.io/darksaid98/yolks:erlang_24` - `ghcr.io/darksaid98/yolks:erlang_24`
### [Games](/games) ### [Games](/games)
* [`altv`](/games/altv) - [`altv`](/games/altv)
* `ghcr.io/darksaid98/games:altv` - `ghcr.io/darksaid98/games:altv`
* [`arma3`](/games/arma3) - [`arma3`](/games/arma3)
* `ghcr.io/darksaid98/games:arma3` - `ghcr.io/darksaid98/games:arma3`
* [`dayz`](/games/dayz) - [`dayz`](/games/dayz)
* `ghcr.io/darksaid98/games:dayz` - `ghcr.io/darksaid98/games:dayz`
* [`minetest`](/games/minetest) - [`minetest`](/games/minetest)
* `ghcr.io/darksaid98/games:minetest` - `ghcr.io/darksaid98/games:minetest`
* [`mohaa`](games/mohaa) - [`mohaa`](games/mohaa)
* `ghcr.io/darksaid98/games:mohaa` - `ghcr.io/darksaid98/games:mohaa`
* [`Multi Theft Auto: San Andreas`](games/mta) - [`Multi Theft Auto: San Andreas`](games/mta)
* `ghcr.io/darksaid98/games:mta` - `ghcr.io/darksaid98/games:mta`
* [`Rust (dedicated server)`](games/rust) - [`Rust (dedicated server)`](games/rust)
* `ghcr.io/darksaid98/games:rust` - `ghcr.io/darksaid98/games:rust`
* [`samp`](/games/samp) - [`samp`](/games/samp)
* `ghcr.io/darksaid98/games:samp` - `ghcr.io/darksaid98/games:samp`
* [`source`](/games/source) - [`source`](/games/source)
* `ghcr.io/darksaid98/games:source` - `ghcr.io/darksaid98/games:source`
* [`thebattleforwesnoth`](/games/thebattleforwesnoth) - [`thebattleforwesnoth`](/games/thebattleforwesnoth)
* `ghcr.io/darksaid98/games:thebattleforwesnoth` - `ghcr.io/darksaid98/games:thebattleforwesnoth`
* [`valheim`](/games/valheim) - [`valheim`](/games/valheim)
* `ghcr.io/darksaid98/games:valheim` - `ghcr.io/darksaid98/games:valheim`
### [Golang](/go) ### [Golang](/go)
* [`go1.14`](/go/1.14) - [`go1.14`](/go/1.14)
* `ghcr.io/darksaid98/yolks:go_1.14` - `ghcr.io/darksaid98/yolks:go_1.14`
* [`go1.15`](/go/1.15) - [`go1.15`](/go/1.15)
* `ghcr.io/darksaid98/yolks:go_1.15` - `ghcr.io/darksaid98/yolks:go_1.15`
* [`go1.16`](/go/1.16) - [`go1.16`](/go/1.16)
* `ghcr.io/darksaid98/yolks:go_1.16` - `ghcr.io/darksaid98/yolks:go_1.16`
* [`go1.17`](/go/1.17) - [`go1.17`](/go/1.17)
* `ghcr.io/darksaid98/yolks:go_1.17` - `ghcr.io/darksaid98/yolks:go_1.17`
* [`go1.18`](/go/1.18) - [`go1.18`](/go/1.18)
* `ghcr.io/darksaid98/yolks:go_1.18` - `ghcr.io/darksaid98/yolks:go_1.18`
* [`go1.19`](/go/1.19) - [`go1.19`](/go/1.19)
* `ghcr.io/darksaid98/yolks:go_1.19` - `ghcr.io/darksaid98/yolks:go_1.19`
* [`go1.20`](/go/1.20) - [`go1.20`](/go/1.20)
* `ghcr.io/darksaid98/yolks:go_1.20` - `ghcr.io/darksaid98/yolks:go_1.20`
* [`go1.21`](/go/1.21) - [`go1.21`](/go/1.21)
* `ghcr.io/darksaid98/yolks:go_1.21` - `ghcr.io/darksaid98/yolks:go_1.21`
* [`go1.22`](/go/1.22) - [`go1.22`](/go/1.22)
* `ghcr.io/darksaid98/yolks:go_1.22` - `ghcr.io/darksaid98/yolks:go_1.22`
### [Java](/java) ### [Java](/java)
* [`java8`](/java/8) - [`java8`](/java/8)
* `ghcr.io/darksaid98/yolks:java_8` - `ghcr.io/darksaid98/yolks:java_8`
* [`java11`](/java/11) - [`java11`](/java/11)
* `ghcr.io/darksaid98/yolks:java_11` - `ghcr.io/darksaid98/yolks:java_11`
* [`java16`](/java/16) - [`java16`](/java/16)
* `ghcr.io/darksaid98/yolks:java_16` - `ghcr.io/darksaid98/yolks:java_16`
* [`java17`](/java/17) - [`java17`](/java/17)
* `ghcr.io/darksaid98/yolks:java_17` - `ghcr.io/darksaid98/yolks:java_17`
* [`java19`](/java/19) - [`java19`](/java/19)
* `ghcr.io/darksaid98/yolks:java_19` - `ghcr.io/darksaid98/yolks:java_19`
* [`java21`](/java/21) - [`java21`](/java/21)
* `ghcr.io/darksaid98/yolks:java_21` - `ghcr.io/darksaid98/yolks:java_21`
### [MariaDB](/mariadb) ### [MariaDB](/mariadb)
* [`MariaDB 10.3`](/mariadb/10.3) - [`MariaDB 10.3`](/mariadb/10.3)
* `ghcr.io/darksaid98/yolks:mariadb_10.3` - `ghcr.io/darksaid98/yolks:mariadb_10.3`
* [`MariaDB 10.4`](/mariadb/10.4) - [`MariaDB 10.4`](/mariadb/10.4)
* `ghcr.io/darksaid98/yolks:mariadb_10.4` - `ghcr.io/darksaid98/yolks:mariadb_10.4`
* [`MariaDB 10.5`](/mariadb/10.5) - [`MariaDB 10.5`](/mariadb/10.5)
* `ghcr.io/darksaid98/yolks:mariadb_10.5` - `ghcr.io/darksaid98/yolks:mariadb_10.5`
* [`MariaDB 10.6`](/mariadb/10.6) - [`MariaDB 10.6`](/mariadb/10.6)
* `ghcr.io/darksaid98/yolks:mariadb_10.6` - `ghcr.io/darksaid98/yolks:mariadb_10.6`
* [`MariaDB 10.7`](/mariadb/10.7) - [`MariaDB 10.7`](/mariadb/10.7)
* `ghcr.io/darksaid98/yolks:mariadb_10.7` - `ghcr.io/darksaid98/yolks:mariadb_10.7`
* [`MariaDB 11.2`](/mariadb/11.2) - [`MariaDB 11.2`](/mariadb/11.2)
* `ghcr.io/darksaid98/yolks:mariadb_11.2` - `ghcr.io/darksaid98/yolks:mariadb_11.2`
* [`MariaDB 11.3`](/mariadb/11.3) - [`MariaDB 11.3`](/mariadb/11.3)
* `ghcr.io/darksaid98/yolks:mariadb_11.3` - `ghcr.io/darksaid98/yolks:mariadb_11.3`
* [`MariaDB 11.4`](/mariadb/11.4) - [`MariaDB 11.4`](/mariadb/11.4)
* `ghcr.io/darksaid98/yolks:mariadb_11.4` - `ghcr.io/darksaid98/yolks:mariadb_11.4`
### [MongoDB](/mongodb) ### [MongoDB](/mongodb)
* [`MongoDB 4`](/mongodb/4) - [`MongoDB 4`](/mongodb/4)
* `ghcr.io/darksaid98/yolks:mongodb_4` - `ghcr.io/darksaid98/yolks:mongodb_4`
* [`MongoDB 5`](/mongodb/5) - [`MongoDB 5`](/mongodb/5)
* `ghcr.io/darksaid98/yolks:mongodb_5` - `ghcr.io/darksaid98/yolks:mongodb_5`
* [`MongoDB 6`](/mongodb/6) - [`MongoDB 6`](/mongodb/6)
* `ghcr.io/darksaid98/yolks:mongodb_6` - `ghcr.io/darksaid98/yolks:mongodb_6`
* [`MongoDB 7`](/mongodb/7) - [`MongoDB 7`](/mongodb/7)
* `ghcr.io/darksaid98/yolks:mongodb_7` - `ghcr.io/darksaid98/yolks:mongodb_7`
### [Mono](/mono) ### [Mono](/mono)
* [`mono_latest`](/mono/latest) - [`mono_latest`](/mono/latest)
* `ghcr.io/darksaid98/yolks:mono_latest` - `ghcr.io/darksaid98/yolks:mono_latest`
### [Nodejs](/nodejs) ### [Nodejs](/nodejs)
* [`node12`](/nodejs/12) - [`node12`](/nodejs/12)
* `ghcr.io/darksaid98/yolks:nodejs_12` - `ghcr.io/darksaid98/yolks:nodejs_12`
* [`node14`](/nodejs/14) - [`node14`](/nodejs/14)
* `ghcr.io/darksaid98/yolks:nodejs_14` - `ghcr.io/darksaid98/yolks:nodejs_14`
* [`node16`](/nodejs/16) - [`node16`](/nodejs/16)
* `ghcr.io/darksaid98/yolks:nodejs_16` - `ghcr.io/darksaid98/yolks:nodejs_16`
* [`node17`](/nodejs/17) - [`node17`](/nodejs/17)
* `ghcr.io/darksaid98/yolks:nodejs_17` - `ghcr.io/darksaid98/yolks:nodejs_17`
* [`node18`](/nodejs/18) - [`node18`](/nodejs/18)
* `ghcr.io/darksaid98/yolks:nodejs_18` - `ghcr.io/darksaid98/yolks:nodejs_18`
* [`node19`](/nodejs/19) - [`node19`](/nodejs/19)
* `ghcr.io/darksaid98/yolks:nodejs_19` - `ghcr.io/darksaid98/yolks:nodejs_19`
* [`node20`](/nodejs/20) - [`node20`](/nodejs/20)
* `ghcr.io/darksaid98/yolks:nodejs_20` - `ghcr.io/darksaid98/yolks:nodejs_20`
* [`node21`](/nodejs/21) - [`node21`](/nodejs/21)
* `ghcr.io/darksaid98/yolks:nodejs_21` - `ghcr.io/darksaid98/yolks:nodejs_21`
* [`node23`](/nodejs/23) - [`node23`](/nodejs/23)
* `ghcr.io/darksaid98/yolks:nodejs_23` - `ghcr.io/darksaid98/yolks:nodejs_23`
### [PostgreSQL](/postgres) ### [PostgreSQL](/postgres)
* [`Postgres 9`](/postgres/9) - [`Postgres 9`](/postgres/9)
* `ghcr.io/darksaid98/yolks:postgres_9` - `ghcr.io/darksaid98/yolks:postgres_9`
* [`Postgres 10`](/postgres/10) - [`Postgres 10`](/postgres/10)
* `ghcr.io/darksaid98/yolks:postgres_10` - `ghcr.io/darksaid98/yolks:postgres_10`
* [`Postgres 11`](/postgres/11) - [`Postgres 11`](/postgres/11)
* `ghcr.io/darksaid98/yolks:postgres_11` - `ghcr.io/darksaid98/yolks:postgres_11`
* [`Postgres 12`](/postgres/12) - [`Postgres 12`](/postgres/12)
* `ghcr.io/darksaid98/yolks:postgres_12` - `ghcr.io/darksaid98/yolks:postgres_12`
* [`Postgres 13`](/postgres/13) - [`Postgres 13`](/postgres/13)
* `ghcr.io/darksaid98/yolks:postgres_13` - `ghcr.io/darksaid98/yolks:postgres_13`
* [`Postgres 14`](/postgres/14) - [`Postgres 14`](/postgres/14)
* `ghcr.io/darksaid98/yolks:postgres_14` - `ghcr.io/darksaid98/yolks:postgres_14`
### [Python](/python) ### [Python](/python)
* [`python3.7`](/python/3.7) - [`python3.7`](/python/3.7)
* `ghcr.io/darksaid98/yolks:python_3.7` - `ghcr.io/darksaid98/yolks:python_3.7`
* [`python3.8`](/python/3.8) - [`python3.8`](/python/3.8)
* `ghcr.io/darksaid98/yolks:python_3.8` - `ghcr.io/darksaid98/yolks:python_3.8`
* [`python3.9`](/python/3.9) - [`python3.9`](/python/3.9)
* `ghcr.io/darksaid98/yolks:python_3.9` - `ghcr.io/darksaid98/yolks:python_3.9`
* [`python3.10`](/python/3.10) - [`python3.10`](/python/3.10)
* `ghcr.io/darksaid98/yolks:python_3.10` - `ghcr.io/darksaid98/yolks:python_3.10`
* [`python3.11`](/python/3.11) - [`python3.11`](/python/3.11)
* `ghcr.io/darksaid98/yolks:python_3.11` - `ghcr.io/darksaid98/yolks:python_3.11`
* [`python3.12`](/python/3.12) - [`python3.12`](/python/3.12)
* `ghcr.io/darksaid98/yolks:python_3.12` - `ghcr.io/darksaid98/yolks:python_3.12`
### [Redis](/redis) ### [Redis](/redis)
* [`Redis 5`](/redis/5) - [`Redis 5`](/redis/5)
* `ghcr.io/darksaid98/yolks:redis_5` - `ghcr.io/darksaid98/yolks:redis_5`
* [`Redis 6`](/redis/6) - [`Redis 6`](/redis/6)
* `ghcr.io/darksaid98/yolks:redis_6` - `ghcr.io/darksaid98/yolks:redis_6`
* [`Redis 7`](/redis/7) - [`Redis 7`](/redis/7)
* `ghcr.io/darksaid98/yolks:redis_7` - `ghcr.io/darksaid98/yolks:redis_7`
### [Rust](/rust) ### [Rust](/rust)
* ['rust1.56'](/rust/1.56) - ['rust1.56'](/rust/1.56)
* `ghcr.io/darksaid98/yolks:rust_1.56` - `ghcr.io/darksaid98/yolks:rust_1.56`
* ['rust1.60'](/rust/1.60) - ['rust1.60'](/rust/1.60)
* `ghcr.io/darksaid98/yolks:rust_1.60` - `ghcr.io/darksaid98/yolks:rust_1.60`
* ['rust latest'](/rust/latest) - ['rust latest'](/rust/latest)
* `ghcr.io/darksaid98/yolks:rust_latest` - `ghcr.io/darksaid98/yolks:rust_latest`
### [SteamCMD](/steamcmd) ### [SteamCMD](/steamcmd)
* [`SteamCMD Debian lastest`](/steamcmd/debian)
* `ghcr.io/darksaid98/steamcmd:debian` - [`SteamCMD Debian lastest`](/steamcmd/debian)
* [`SteamCMD Debian Dotnet`](/steamcmd/dotnet) - `ghcr.io/darksaid98/steamcmd:debian`
* `ghcr.io/darksaid98/steamcmd:dotnet` - [`SteamCMD Debian Dotnet`](/steamcmd/dotnet)
* [`SteamCMD Proton`](/steamcmd/proton) - `ghcr.io/darksaid98/steamcmd:dotnet`
* `ghcr.io/darksaid98/steamcmd:proton` - [`SteamCMD Proton`](/steamcmd/proton)
* [`SteamCMD Proton`](/steamcmd/proton_8) - `ghcr.io/darksaid98/steamcmd:proton`
* `ghcr.io/darksaid98/steamcmd:proton_8` - [`SteamCMD Proton`](/steamcmd/proton_8)
* [`SteamCMD Sniper latest`](/steamcmd/sniper) - `ghcr.io/darksaid98/steamcmd:proton_8`
* `ghcr.io/darksaid98/steamcmd:sniper` - [`SteamCMD Sniper latest`](/steamcmd/sniper)
* [`SteamCMD Ubuntu latest LTS`](/steamcmd/ubuntu) - `ghcr.io/darksaid98/steamcmd:sniper`
* `ghcr.io/darksaid98/steamcmd:ubuntu` - [`SteamCMD Ubuntu latest LTS`](/steamcmd/ubuntu)
- `ghcr.io/darksaid98/steamcmd:ubuntu`
### [Voice](/voice) ### [Voice](/voice)
* [`Mumble`](/voice/mumble)
* `ghcr.io/darksaid98/yolks:voice_mumble` - [`Mumble`](/voice/mumble)
* [`TeaSpeak`](/voice/teaspeak) - `ghcr.io/darksaid98/yolks:voice_mumble`
* `ghcr.io/darksaid98/yolks:voice_teaspeak` - [`TeaSpeak`](/voice/teaspeak)
- `ghcr.io/darksaid98/yolks:voice_teaspeak`
### [Wine](/wine) ### [Wine](/wine)
* [`Wine`](/wine) - [`Wine`](/wine)
* `ghcr.io/darksaid98/yolks:wine_latest` - `ghcr.io/darksaid98/yolks:wine_latest`
* `ghcr.io/darksaid98/yolks:wine_devel` - `ghcr.io/darksaid98/yolks:wine_devel`
* `ghcr.io/darksaid98/yolks:wine_staging` - `ghcr.io/darksaid98/yolks:wine_staging`
### [Installation Images](/installers) ### [Installation Images](/installers)
* [`alpine-install`](/installers/alpine) - [`alpine-install`](/installers/alpine)
* `ghcr.io/darksaid98/installers:alpine` - `ghcr.io/darksaid98/installers:alpine`
* [`debian-install`](/installers/debian) - [`debian-install`](/installers/debian)
* `ghcr.io/darksaid98/installers:debian` - `ghcr.io/darksaid98/installers:debian`
* [`ubuntu-install`](/installers/ubuntu) - [`ubuntu-install`](/installers/ubuntu)
* `ghcr.io/darksaid98/installers:ubuntu` - `ghcr.io/darksaid98/installers:ubuntu`
+1
View File
@@ -1,2 +1,3 @@
# Arma 3 # Arma 3
Docker container designed to run Bohemia Interactive's Arma 3 dedicated server. Docker container designed to run Bohemia Interactive's Arma 3 dedicated server.
+1
View File
@@ -1,2 +1,3 @@
# DayZ # DayZ
Docker container designed to run Bohemia Interactive's DayZ dedicated server. Docker container designed to run Bohemia Interactive's DayZ dedicated server.
+42 -30
View File
@@ -1,9 +1,9 @@
#!/usr/bin/env node #!/usr/bin/env node
var startupCmd = ""; var startupCmd = '';
const fs = require("fs"); const fs = require('fs');
fs.writeFile("latest.log", "", (err) => { fs.writeFile('latest.log', '', (err) => {
if (err) console.log("Callback error in appendFile:" + err); if (err) console.log('Callback error in appendFile:' + err);
}); });
var args = process.argv.splice(process.execArgv.length + 2); var args = process.argv.splice(process.execArgv.length + 2);
@@ -11,12 +11,12 @@ for (var i = 0; i < args.length; i++) {
if (i === args.length - 1) { if (i === args.length - 1) {
startupCmd += args[i]; startupCmd += args[i];
} else { } else {
startupCmd += args[i] + " "; startupCmd += args[i] + ' ';
} }
} }
if (startupCmd.length < 1) { if (startupCmd.length < 1) {
console.log("Error: Please specify a startup command."); console.log('Error: Please specify a startup command.');
process.exit(); process.exit();
} }
@@ -24,8 +24,9 @@ const seenPercentage = {};
function filter(data) { function filter(data) {
const str = data.toString(); const str = data.toString();
if (str.startsWith("Loading Prefab Bundle ")) { // Rust seems to spam the same percentage, so filter out any duplicates. if (str.startsWith('Loading Prefab Bundle ')) {
const percentage = str.substr("Loading Prefab Bundle ".length); // Rust seems to spam the same percentage, so filter out any duplicates.
const percentage = str.substr('Loading Prefab Bundle '.length);
if (seenPercentage[percentage]) return; if (seenPercentage[percentage]) return;
seenPercentage[percentage] = true; seenPercentage[percentage] = true;
@@ -34,8 +35,8 @@ function filter(data) {
console.log(str); console.log(str);
} }
var exec = require("child_process").exec; var exec = require('child_process').exec;
console.log("Starting Rust..."); console.log('Starting Rust...');
var exited = false; var exited = false;
const gameProcess = exec(startupCmd); const gameProcess = exec(startupCmd);
@@ -45,7 +46,7 @@ gameProcess.on('exit', function (code, signal) {
exited = true; exited = true;
if (code) { if (code) {
console.log("Main game process exited with code " + code); console.log('Main game process exited with code ' + code);
// process.exit(code); // process.exit(code);
} }
}); });
@@ -55,17 +56,21 @@ function initialListener(data) {
if (command === 'quit') { if (command === 'quit') {
gameProcess.kill('SIGTERM'); gameProcess.kill('SIGTERM');
} else { } else {
console.log('Unable to run "' + command + '" due to RCON not being connected yet.'); console.log(
'Unable to run "' +
command +
'" due to RCON not being connected yet.'
);
} }
} }
process.stdin.resume(); process.stdin.resume();
process.stdin.setEncoding("utf8"); process.stdin.setEncoding('utf8');
process.stdin.on('data', initialListener); process.stdin.on('data', initialListener);
process.on('exit', function (code) { process.on('exit', function (code) {
if (exited) return; if (exited) return;
console.log("Received request to stop the process, stopping the game..."); console.log('Received request to stop the process, stopping the game...');
gameProcess.kill('SIGTERM'); gameProcess.kill('SIGTERM');
}); });
@@ -75,19 +80,25 @@ var poll = function () {
var packet = { var packet = {
Identifier: -1, Identifier: -1,
Message: command, Message: command,
Name: "WebRcon" Name: 'WebRcon',
}; };
return JSON.stringify(packet); return JSON.stringify(packet);
} }
var serverHostname = process.env.RCON_IP ? process.env.RCON_IP : "localhost"; var serverHostname = process.env.RCON_IP
? process.env.RCON_IP
: 'localhost';
var serverPort = process.env.RCON_PORT; var serverPort = process.env.RCON_PORT;
var serverPassword = process.env.RCON_PASS; var serverPassword = process.env.RCON_PASS;
var WebSocket = require("ws"); var WebSocket = require('ws');
var ws = new WebSocket("ws://" + serverHostname + ":" + serverPort + "/" + serverPassword); var ws = new WebSocket(
'ws://' + serverHostname + ':' + serverPort + '/' + serverPassword
);
ws.on("open", function open() { ws.on('open', function open() {
console.log("Connected to RCON. Generating the map now. Please wait until the server status switches to \"Running\"."); console.log(
'Connected to RCON. Generating the map now. Please wait until the server status switches to "Running".'
);
waiting = false; waiting = false;
// Hack to fix broken console output // Hack to fix broken console output
@@ -101,19 +112,20 @@ var poll = function () {
}); });
}); });
ws.on("message", function (data, flags) { ws.on('message', function (data, flags) {
try { try {
var json = JSON.parse(data); var json = JSON.parse(data);
if (json !== undefined) { if (json !== undefined) {
if (json.Message !== undefined && json.Message.length > 0) { if (json.Message !== undefined && json.Message.length > 0) {
console.log(json.Message); console.log(json.Message);
const fs = require("fs"); const fs = require('fs');
fs.appendFile("latest.log", "\n" + json.Message, (err) => { fs.appendFile('latest.log', '\n' + json.Message, (err) => {
if (err) console.log("Callback error in appendFile:" + err); if (err)
console.log('Callback error in appendFile:' + err);
}); });
} }
} else { } else {
console.log("Error: Invalid JSON received"); console.log('Error: Invalid JSON received');
} }
} catch (e) { } catch (e) {
if (e) { if (e) {
@@ -122,19 +134,19 @@ var poll = function () {
} }
}); });
ws.on("error", function (err) { ws.on('error', function (err) {
waiting = true; waiting = true;
console.log("Waiting for RCON to come up..."); console.log('Waiting for RCON to come up...');
setTimeout(poll, 5000); setTimeout(poll, 5000);
}); });
ws.on("close", function () { ws.on('close', function () {
if (!waiting) { if (!waiting) {
console.log("Connection to server closed."); console.log('Connection to server closed.');
exited = true; exited = true;
process.exit(); process.exit();
} }
}); });
} };
poll(); poll();
+1 -2
View File
@@ -37,8 +37,7 @@ cd /home/container || exit 1
PARSED=$(echo "$STARTUP" | sed -e 's/{{/${/g' -e 's/}}/}/g') PARSED=$(echo "$STARTUP" | sed -e 's/{{/${/g' -e 's/}}/}/g')
# Display the command we're running in the output, and then execute it with eval # Display the command we're running in the output, and then execute it with eval
printf "\033[1m\033[33mcontainer@pelican~ \033[0m" printf "\033[1m\033[33mcontainer~ \033[0m"
echo "$PARSED" echo "$PARSED"
# shellcheck disable=SC2086 # shellcheck disable=SC2086
eval "$PARSED" eval "$PARSED"