Skip to content

Instantly share code, notes, and snippets.

@gaemi
Last active September 16, 2019 14:21
Show Gist options
  • Save gaemi/1dff29a5ca1ad027f94b2d9afdfead78 to your computer and use it in GitHub Desktop.
Save gaemi/1dff29a5ca1ad027f94b2d9afdfead78 to your computer and use it in GitHub Desktop.
Dockerizing Spring Boot Application Case3. build.gradle
plugins {
...
id 'com.google.cloud.tools.jib' version '1.6.0'
}
...
jib {
from {
image = "docker://openjdk:8-jre-alpine" // 로컬환경에 설치되어 있는 도커데몬에서 Base Image 를 가져온다. (지금 상황에서는 굳이 원격에서 가져올 필요가 없으므로...)
}
to {
image = "gaemi/jib-example-case3"
tags = ["${project.version}".toString(), "${BUILD_VERSION}".toString()]
credHelper = "pass"
}
container {
mainClass = "gaemi.jib.excample.JibExampleApplication"
ports = ["8080"]
volumes = ["/tmp"]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment