$crooge MxDuck
$crooge MxDuck
KKord
Created by $crooge MxDuck on 7/13/2024 in #help
Running distribution inside docker container?
Yeah, similarly when I run it locally it works, but when try to run in container its failing
68 replies
KKord
Created by $crooge MxDuck on 7/13/2024 in #help
Running distribution inside docker container?
Will try to found out, if nothing works, guess will need to try with fatJar, anyway, thanks
68 replies
KKord
Created by $crooge MxDuck on 7/13/2024 in #help
Running distribution inside docker container?
ok
68 replies
KKord
Created by $crooge MxDuck on 7/13/2024 in #help
Running distribution inside docker container?
I'm currently on my local macOS machine
68 replies
KKord
Created by $crooge MxDuck on 7/13/2024 in #help
Running distribution inside docker container?
Well, I will later on publish it so I can pull it from my linux server to run it
68 replies
KKord
Created by $crooge MxDuck on 7/13/2024 in #help
Running distribution inside docker container?
Nah, same error
glados-bot-container | Error: Could not find or load main class surik.simyan.glados.MainKt
glados-bot-container | Caused by: java.lang.ClassNotFoundException: surik.simyan.glados.MainKt
glados-bot-container | Error: Could not find or load main class surik.simyan.glados.MainKt
glados-bot-container | Caused by: java.lang.ClassNotFoundException: surik.simyan.glados.MainKt
Maybe something is wrong with compose file?
version: '3.9'

services:

kord:
build: .
image: ssimyan/glados:1.0.0
platform: linux/amd64
restart: always
container_name: "glados-bot-container"
version: '3.9'

services:

kord:
build: .
image: ssimyan/glados:1.0.0
platform: linux/amd64
restart: always
container_name: "glados-bot-container"
68 replies
KKord
Created by $crooge MxDuck on 7/13/2024 in #help
Running distribution inside docker container?
cool, let me prune all and try to run it
68 replies
KKord
Created by $crooge MxDuck on 7/13/2024 in #help
Running distribution inside docker container?
So is everthing right now?
FROM openjdk:21
ADD ./build/install/glados /app/glados
WORKDIR /app/glados
RUN chmod +x ./bin/glados.sh
ENTRYPOINT ["./bin/glados.sh"]
FROM openjdk:21
ADD ./build/install/glados /app/glados
WORKDIR /app/glados
RUN chmod +x ./bin/glados.sh
ENTRYPOINT ["./bin/glados.sh"]
68 replies
KKord
Created by $crooge MxDuck on 7/13/2024 in #help
Running distribution inside docker container?
ok
68 replies
KKord
Created by $crooge MxDuck on 7/13/2024 in #help
Running distribution inside docker container?
Ok, and now my sh file is in /app/glados directly or what?
68 replies
KKord
Created by $crooge MxDuck on 7/13/2024 in #help
Running distribution inside docker container?
Wait, when we run ADD ./build/install/glados /app/glados don't we just add files from glados directory from install to /app/glados?
68 replies
KKord
Created by $crooge MxDuck on 7/13/2024 in #help
Running distribution inside docker container?
So, we end up something like this?
FROM openjdk:21
ADD ./build/install/glados /app/glados
WORKDIR /app/glados
RUN chmod +x /bin/glados.sh
ENTRYPOINT ["/bin/glados.sh"]
FROM openjdk:21
ADD ./build/install/glados /app/glados
WORKDIR /app/glados
RUN chmod +x /bin/glados.sh
ENTRYPOINT ["/bin/glados.sh"]
68 replies
KKord
Created by $crooge MxDuck on 7/13/2024 in #help
Running distribution inside docker container?
Tried even without copying
68 replies
KKord
Created by $crooge MxDuck on 7/13/2024 in #help
Running distribution inside docker container?
I changed it to this
FROM openjdk:21
#COPY ./build/install/glados /app/glados
RUN chmod +x ./build/install/glados
ENTRYPOINT ["./build/install/glados/bin/glados.sh"]
FROM openjdk:21
#COPY ./build/install/glados /app/glados
RUN chmod +x ./build/install/glados
ENTRYPOINT ["./build/install/glados/bin/glados.sh"]
68 replies
KKord
Created by $crooge MxDuck on 7/13/2024 in #help
Running distribution inside docker container?
And gradle build file
68 replies
KKord
Created by $crooge MxDuck on 7/13/2024 in #help
Running distribution inside docker container?
plugins {
alias(libs.plugins.kotlinJvm)
application
}

group = "surik.simyan.glados"
version = "1.0.0"
application {
mainClass.set("surik.simyan.glados.MainKt")
}

repositories {
mavenCentral()
maven("https://jitpack.io")
maven("https://maven.lavalink.dev/releases")
maven {
name = "Sonatype Snapshots (Legacy)"
url = uri("https://oss.sonatype.org/content/repositories/snapshots")
}

maven {
name = "Sonatype Snapshots"
url = uri("https://s01.oss.sonatype.org/content/repositories/snapshots")
}
}

dependencies {
implementation(libs.kord.core)
implementation(libs.kord.rest)
implementation(libs.kord.voice)
implementation(libs.kord.core.voice)
implementation(libs.kord.extensions)
implementation(libs.slf4j.simple)
implementation(libs.ktor.client.core)
implementation(libs.ktor.client.logging)
implementation(libs.lavaplayer)
implementation(libs.youtube)
testImplementation(kotlin("test"))
}

tasks.test {
useJUnitPlatform()
}


kotlin {
jvmToolchain(21)
}
plugins {
alias(libs.plugins.kotlinJvm)
application
}

group = "surik.simyan.glados"
version = "1.0.0"
application {
mainClass.set("surik.simyan.glados.MainKt")
}

repositories {
mavenCentral()
maven("https://jitpack.io")
maven("https://maven.lavalink.dev/releases")
maven {
name = "Sonatype Snapshots (Legacy)"
url = uri("https://oss.sonatype.org/content/repositories/snapshots")
}

maven {
name = "Sonatype Snapshots"
url = uri("https://s01.oss.sonatype.org/content/repositories/snapshots")
}
}

dependencies {
implementation(libs.kord.core)
implementation(libs.kord.rest)
implementation(libs.kord.voice)
implementation(libs.kord.core.voice)
implementation(libs.kord.extensions)
implementation(libs.slf4j.simple)
implementation(libs.ktor.client.core)
implementation(libs.ktor.client.logging)
implementation(libs.lavaplayer)
implementation(libs.youtube)
testImplementation(kotlin("test"))
}

tasks.test {
useJUnitPlatform()
}


kotlin {
jvmToolchain(21)
}
68 replies
KKord
Created by $crooge MxDuck on 7/13/2024 in #help
Running distribution inside docker container?
├── ktor-client-content-negotiation-jvm-2.3.12.jar
├── ktor-client-core-jvm-2.3.12.jar
├── ktor-client-logging-jvm-2.3.12.jar
├── ktor-client-okhttp-jvm-2.3.12.jar
├── ktor-client-websockets-jvm-2.3.12.jar
├── ktor-events-jvm-2.3.12.jar
├── ktor-http-jvm-2.3.12.jar
├── ktor-io-jvm-2.3.12.jar
├── ktor-network-jvm-2.3.12.jar
├── ktor-serialization-jvm-2.3.12.jar
├── ktor-serialization-kotlinx-json-jvm-2.3.12.jar
├── ktor-serialization-kotlinx-jvm-2.3.12.jar
├── ktor-utils-jvm-2.3.12.jar
├── ktor-websocket-serialization-jvm-2.3.12.jar
├── ktor-websockets-jvm-2.3.12.jar
├── lava-common-2.2.1.jar
├── lavaplayer-2.2.1.jar
├── lavaplayer-natives-2.2.1.jar
├── map-jvm-0.5.4.jar
├── nanojson-1.7.jar
├── okhttp-4.12.0.jar
├── okio-jvm-3.7.0.jar
├── pf4j-3.12.0.jar
├── rhino-1.7.15.jar
├── rhino-engine-1.7.15.jar
├── sentry-7.11.0.jar
├── slf4j-api-2.0.13.jar
├── slf4j-simple-2.0.13.jar
├── stately-concurrency-jvm-2.0.6.jar
├── stately-concurrent-collections-jvm-2.0.6.jar
├── stately-strict-jvm-2.0.6.jar
├── token-parser-1.9.0-SNAPSHOT.jar
├── tomlkt-jvm-0.2.0.jar
└── v2-1.4.0.jar
├── ktor-client-content-negotiation-jvm-2.3.12.jar
├── ktor-client-core-jvm-2.3.12.jar
├── ktor-client-logging-jvm-2.3.12.jar
├── ktor-client-okhttp-jvm-2.3.12.jar
├── ktor-client-websockets-jvm-2.3.12.jar
├── ktor-events-jvm-2.3.12.jar
├── ktor-http-jvm-2.3.12.jar
├── ktor-io-jvm-2.3.12.jar
├── ktor-network-jvm-2.3.12.jar
├── ktor-serialization-jvm-2.3.12.jar
├── ktor-serialization-kotlinx-json-jvm-2.3.12.jar
├── ktor-serialization-kotlinx-jvm-2.3.12.jar
├── ktor-utils-jvm-2.3.12.jar
├── ktor-websocket-serialization-jvm-2.3.12.jar
├── ktor-websockets-jvm-2.3.12.jar
├── lava-common-2.2.1.jar
├── lavaplayer-2.2.1.jar
├── lavaplayer-natives-2.2.1.jar
├── map-jvm-0.5.4.jar
├── nanojson-1.7.jar
├── okhttp-4.12.0.jar
├── okio-jvm-3.7.0.jar
├── pf4j-3.12.0.jar
├── rhino-1.7.15.jar
├── rhino-engine-1.7.15.jar
├── sentry-7.11.0.jar
├── slf4j-api-2.0.13.jar
├── slf4j-simple-2.0.13.jar
├── stately-concurrency-jvm-2.0.6.jar
├── stately-concurrent-collections-jvm-2.0.6.jar
├── stately-strict-jvm-2.0.6.jar
├── token-parser-1.9.0-SNAPSHOT.jar
├── tomlkt-jvm-0.2.0.jar
└── v2-1.4.0.jar
68 replies
KKord
Created by $crooge MxDuck on 7/13/2024 in #help
Running distribution inside docker container?
└── glados
├── bin
│   ├── glados
│   └── glados.bat
└── lib
├── annotations-1.9.0-SNAPSHOT.jar
├── annotations-24.0.0.jar
├── api-jvm-0.5.4.jar
├── base64-2.3.9.jar
├── common-1.4.0.jar
├── commons-beanutils-1.9.4.jar
├── commons-codec-1.11.jar
├── commons-collections-3.2.2.jar
├── commons-digester-2.1.jar
├── commons-io-2.13.0.jar
├── commons-logging-1.3.2.jar
├── commons-validator-1.9.0.jar
├── glados-1.0.0.jar
├── httpclient-4.5.14.jar
├── httpcore-4.4.16.jar
├── icu4j-75.1.jar
├── jackson-annotations-2.17.1.jar
├── jackson-core-2.17.1.jar
├── jackson-databind-2.17.1.jar
├── java-semver-0.10.2.jar
├── jemoji-1.4.1.jar
├── json-20240303.jar
├── jsoup-1.16.1.jar
├── koin-core-jvm-3.5.6.jar
├── koin-logger-slf4j-3.5.6.jar
├── kord-common-jvm-0.15.0-SNAPSHOT.jar
├── kord-core-jvm-0.15.0-SNAPSHOT.jar
├── kord-core-voice-0.15.0-SNAPSHOT.jar
├── kord-extensions-1.9.0-SNAPSHOT.jar
├── kord-gateway-jvm-0.15.0-SNAPSHOT.jar
├── kord-rest-jvm-0.15.0-SNAPSHOT.jar
├── kord-voice-0.15.0-SNAPSHOT.jar
├── kotlin-logging-jvm-3.0.5.jar
├── kotlin-logging-jvm-7.0.0.jar
├── kotlin-stdlib-2.0.20-Beta1.jar
├── kotlin-stdlib-jdk7-2.0.20-Beta1.jar
├── kotlin-stdlib-jdk8-2.0.20-Beta1.jar
├── kotlinx-coroutines-core-jvm-1.8.1.jar
├── kotlinx-coroutines-jdk8-1.8.1.jar
├── kotlinx-coroutines-slf4j-1.8.1.jar
├── kotlinx-datetime-jvm-0.6.0.jar
├── kotlinx-serialization-core-jvm-1.7.1.jar
├── kotlinx-serialization-json-jvm-1.7.1.jar
└── glados
├── bin
│   ├── glados
│   └── glados.bat
└── lib
├── annotations-1.9.0-SNAPSHOT.jar
├── annotations-24.0.0.jar
├── api-jvm-0.5.4.jar
├── base64-2.3.9.jar
├── common-1.4.0.jar
├── commons-beanutils-1.9.4.jar
├── commons-codec-1.11.jar
├── commons-collections-3.2.2.jar
├── commons-digester-2.1.jar
├── commons-io-2.13.0.jar
├── commons-logging-1.3.2.jar
├── commons-validator-1.9.0.jar
├── glados-1.0.0.jar
├── httpclient-4.5.14.jar
├── httpcore-4.4.16.jar
├── icu4j-75.1.jar
├── jackson-annotations-2.17.1.jar
├── jackson-core-2.17.1.jar
├── jackson-databind-2.17.1.jar
├── java-semver-0.10.2.jar
├── jemoji-1.4.1.jar
├── json-20240303.jar
├── jsoup-1.16.1.jar
├── koin-core-jvm-3.5.6.jar
├── koin-logger-slf4j-3.5.6.jar
├── kord-common-jvm-0.15.0-SNAPSHOT.jar
├── kord-core-jvm-0.15.0-SNAPSHOT.jar
├── kord-core-voice-0.15.0-SNAPSHOT.jar
├── kord-extensions-1.9.0-SNAPSHOT.jar
├── kord-gateway-jvm-0.15.0-SNAPSHOT.jar
├── kord-rest-jvm-0.15.0-SNAPSHOT.jar
├── kord-voice-0.15.0-SNAPSHOT.jar
├── kotlin-logging-jvm-3.0.5.jar
├── kotlin-logging-jvm-7.0.0.jar
├── kotlin-stdlib-2.0.20-Beta1.jar
├── kotlin-stdlib-jdk7-2.0.20-Beta1.jar
├── kotlin-stdlib-jdk8-2.0.20-Beta1.jar
├── kotlinx-coroutines-core-jvm-1.8.1.jar
├── kotlinx-coroutines-jdk8-1.8.1.jar
├── kotlinx-coroutines-slf4j-1.8.1.jar
├── kotlinx-datetime-jvm-0.6.0.jar
├── kotlinx-serialization-core-jvm-1.7.1.jar
├── kotlinx-serialization-json-jvm-1.7.1.jar
68 replies
KKord
Created by $crooge MxDuck on 7/13/2024 in #help
Running distribution inside docker container?
Here is the directory tree
68 replies
KKord
Created by $crooge MxDuck on 7/13/2024 in #help
Running distribution inside docker container?
Let me clean all and rerun it
68 replies