Cannot finish task jibDockerBuild use 2byte character in container args
See original GitHub issueUse Gradle plugin. jib.container.args = ['日本語']
$ ./gradlew clean jibDockerBuild
Cannot finish task.
jib-gradle-plugin
Configuration:
plugins {
id 'org.jetbrains.kotlin.jvm' version '1.2.50'
id "application"
id 'com.google.cloud.tools.jib' version '0.9.6'
}
group 'com.github.sakebook'
version '0.0.1-SNAPSHOT'
mainClassName = 'com.github.sakebook.word2vec.Word2VecKt'
jar {
manifest {
attributes 'Main-Class': 'com.github.sakebook.word2vec.Word2VecKt'
}
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
}
jib {
to {
image = 'sakebook/word2vec-deeplearning4j-kotlin'
auth {
username = USERNAME // Defined in 'gradle.properties'.
password = PASSWORD
}
}
container {
args = ['日本語']
}
}
repositories {
mavenCentral()
}
dependencies {
compile "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
compile "org.deeplearning4j:deeplearning4j-core:0.9.1"
compile "org.deeplearning4j:deeplearning4j-nlp:0.9.1"
compile "org.nd4j:nd4j-native-platform:0.9.1"
compile "org.slf4j:slf4j-simple:1.7.25"
compile "org.slf4j:slf4j-api:1.7.25"
}
compileKotlin {
kotlinOptions.jvmTarget = "1.8"
}
compileTestKotlin {
kotlinOptions.jvmTarget = "1.8"
}
Log output:
word2vec$ ./gradlew clean jibDockerBuild
warning: Could not find build output directory 'xxxxxx/word2vec/build/classes/java/main'
warning: Base image 'gcr.io/distroless/java' does not use a specific image digest - build may not be reproducible
Containerizing application to Docker daemon as sakebook/word2vec-deeplearning4j-kotlin...
Getting base image gcr.io/distroless/java...
Building dependencies layer...
Building resources layer...
Building classes layer...
Finalizing...
Loading to Docker daemon...
<==========---> 83% EXECUTING [1h 19m 22s]
Additional Information:
My application wrote by Kotlin.
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
No results found
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Works fine! Thank you mentions.
Only when pushing to the local docker daemon. Might be that we are miscalculating the length of a string or something when multi-byte chars are involved?
Stack trace from
mvn -X jib:buildTar