Dockerfile
This commit is contained in:
parent
163e5f19af
commit
c38d6890fd
15
.github/workflows/v2.yml
vendored
15
.github/workflows/v2.yml
vendored
@ -110,7 +110,10 @@ jobs:
|
|||||||
- name: Build and push Docker image
|
- name: Build and push Docker image
|
||||||
uses: docker/build-push-action@v2
|
uses: docker/build-push-action@v2
|
||||||
with:
|
with:
|
||||||
context: ./apps/processer
|
context: .
|
||||||
|
dockerfile: ./Dockerfile
|
||||||
|
args:
|
||||||
|
--build-arg MODULE_NAME=processer
|
||||||
push: true
|
push: true
|
||||||
tags: |
|
tags: |
|
||||||
bskjon/mediaprocessing-processer:v2-latest
|
bskjon/mediaprocessing-processer:v2-latest
|
||||||
@ -155,7 +158,10 @@ jobs:
|
|||||||
- name: Build and push Docker image
|
- name: Build and push Docker image
|
||||||
uses: docker/build-push-action@v2
|
uses: docker/build-push-action@v2
|
||||||
with:
|
with:
|
||||||
context: ./apps/converter
|
context: .
|
||||||
|
dockerfile: ./Dockerfile
|
||||||
|
args:
|
||||||
|
--build-arg MODULE_NAME=converter
|
||||||
push: true
|
push: true
|
||||||
tags: |
|
tags: |
|
||||||
bskjon/mediaprocessing-converter:v2-latest
|
bskjon/mediaprocessing-converter:v2-latest
|
||||||
@ -200,7 +206,10 @@ jobs:
|
|||||||
- name: Build and push Docker image
|
- name: Build and push Docker image
|
||||||
uses: docker/build-push-action@v2
|
uses: docker/build-push-action@v2
|
||||||
with:
|
with:
|
||||||
context: ./apps/coordinator
|
context: .
|
||||||
|
dockerfile: ./Dockerfile
|
||||||
|
args:
|
||||||
|
--build-arg MODULE_NAME=coordinator
|
||||||
push: true
|
push: true
|
||||||
tags: |
|
tags: |
|
||||||
bskjon/mediaprocessing-coordinator:v2-latest
|
bskjon/mediaprocessing-coordinator:v2-latest
|
||||||
|
|||||||
5
Dockerfile
Normal file
5
Dockerfile
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
FROM bskjon/azuljava:17
|
||||||
|
EXPOSE 8080
|
||||||
|
|
||||||
|
ARG MODULE_NAME
|
||||||
|
COPY ./apps/${MODULE_NAME}/build/libs/app.jar /usr/share/app/app.jar
|
||||||
@ -57,4 +57,14 @@ dependencies {
|
|||||||
|
|
||||||
tasks.test {
|
tasks.test {
|
||||||
useJUnitPlatform()
|
useJUnitPlatform()
|
||||||
|
}
|
||||||
|
|
||||||
|
tasks.bootJar {
|
||||||
|
archiveFileName.set("app.jar")
|
||||||
|
launchScript()
|
||||||
|
}
|
||||||
|
|
||||||
|
tasks.jar {
|
||||||
|
archiveFileName.set("app.jar")
|
||||||
|
archiveBaseName.set("app")
|
||||||
}
|
}
|
||||||
@ -87,4 +87,14 @@ tasks.withType<Test> {
|
|||||||
|
|
||||||
kotlin {
|
kotlin {
|
||||||
jvmToolchain(17)
|
jvmToolchain(17)
|
||||||
|
}
|
||||||
|
|
||||||
|
tasks.bootJar {
|
||||||
|
archiveFileName.set("app.jar")
|
||||||
|
launchScript()
|
||||||
|
}
|
||||||
|
|
||||||
|
tasks.jar {
|
||||||
|
archiveFileName.set("app.jar")
|
||||||
|
archiveBaseName.set("app")
|
||||||
}
|
}
|
||||||
@ -63,4 +63,14 @@ dependencies {
|
|||||||
|
|
||||||
tasks.test {
|
tasks.test {
|
||||||
useJUnitPlatform()
|
useJUnitPlatform()
|
||||||
|
}
|
||||||
|
|
||||||
|
tasks.bootJar {
|
||||||
|
archiveFileName.set("app.jar")
|
||||||
|
launchScript()
|
||||||
|
}
|
||||||
|
|
||||||
|
tasks.jar {
|
||||||
|
archiveFileName.set("app.jar")
|
||||||
|
archiveBaseName.set("app")
|
||||||
}
|
}
|
||||||
Loading…
Reference in New Issue
Block a user