Last active
September 16, 2019 14:21
-
-
Save gaemi/1dff29a5ca1ad027f94b2d9afdfead78 to your computer and use it in GitHub Desktop.
Dockerizing Spring Boot Application Case3. build.gradle
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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