Skip to content

Commit

Permalink
add jda-nas for linux musl (#920)
Browse files Browse the repository at this point in the history
  • Loading branch information
topi314 authored Jul 21, 2023
1 parent afbb146 commit 6ba2986
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion LavalinkServer/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ tasks {
archiveFileName.set("Lavalink-musl.jar")
// Exclude base dependency jar
exclude {
it.name.contains("lavaplayer-natives-fork") || it.name.contains("udpqueue-native-")
it.name.contains("lavaplayer-natives-fork") || (it.name.contains("udpqueue-native-") && !it.name.contains("musl"))
}

// Add custom jar
Expand Down
2 changes: 2 additions & 0 deletions LavalinkServer/docker/alpine.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
FROM azul/zulu-openjdk-alpine:17-jre-headless-latest

RUN apk add --no-cache libgcc

# Run as non-root user
RUN addgroup -g 322 -S lavalink && \
adduser -u 322 -S lavalink lavalink
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ class KoeConfiguration(val serverConfig: ServerConfig) {
SystemType(DefaultArchitectureTypes.X86_32, DefaultOperatingSystemTypes.LINUX),
SystemType(DefaultArchitectureTypes.ARMv8_64, DefaultOperatingSystemTypes.LINUX),

SystemType(DefaultArchitectureTypes.X86_64, DefaultOperatingSystemTypes.LINUX_MUSL),
SystemType(DefaultArchitectureTypes.ARMv8_64, DefaultOperatingSystemTypes.LINUX_MUSL),

SystemType(DefaultArchitectureTypes.X86_64, DefaultOperatingSystemTypes.WINDOWS),
SystemType(DefaultArchitectureTypes.X86_32, DefaultOperatingSystemTypes.WINDOWS),

Expand Down
6 changes: 3 additions & 3 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ fun VersionCatalogBuilder.spring() {
}

fun VersionCatalogBuilder.voice() {
version("lavaplayer", "17c75f5")
version("lavaplayer", "17c75f51f9")

library("lavaplayer", "com.github.walkyst.lavaplayer-fork", "lavaplayer").versionRef("lavaplayer")
library("lavaplayer-ip-rotator", "com.github.walkyst.lavaplayer-fork", "lavaplayer-ext-youtube-rotator").versionRef("lavaplayer")
Expand All @@ -45,8 +45,8 @@ fun VersionCatalogBuilder.voice() {
library("koe", "moe.kyokobot.koe", "core").version("2.0.0-rc1")
library("koe-udpqueue", "moe.kyokobot.koe", "ext-udpqueue").version("2.0.0-rc1")

version("udpqueue", "0.2.6")
val platforms = listOf("linux-x86-64", "linux-x86", "linux-aarch64", "linux-arm", "win-x86-64", "win-x86", "darwin")
version("udpqueue", "0.2.7")
val platforms = listOf("linux-x86-64", "linux-x86", "linux-aarch64", "linux-arm", "linux-musl-x86-64", "linux-musl-aarch64", "win-x86-64", "win-x86", "darwin")
platforms.forEach {
library("udpqueue-native-$it", "club.minnced", "udpqueue-native-$it").versionRef("udpqueue")
}
Expand Down

0 comments on commit 6ba2986

Please sign in to comment.