-
Notifications
You must be signed in to change notification settings - Fork 1
/
imageapi-docker-build.ps1
69 lines (60 loc) · 3.16 KB
/
imageapi-docker-build.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
Write-Output "Starting Docker Image Builds..."
#Build Image API
Set-Location imageapi
#JVM Image
#.\mvnw package
#docker build -f src/main/docker/Dockerfile.jvm.alpine -t malcolmpereira/imageapi-quarkus-jvm .
#Native Image
.\mvnw package -Pnative '-Dquarkus.native.container-build=true' '-Dquarkus.native.container-runtime=docker' '-Dquarkus.container-image.build=true'
docker build -f src/main/docker/Dockerfile.native -t malcolmpereira/imageapi-quarkus-native .
Set-Location ..
#Build Image Validation
Set-Location imagevalidation
#JVM Image
.\mvnw package
docker build -f src/main/docker/Dockerfile.jvm.alpine -t malcolmpereira/imagevalidation-quarkus-jvm .
#Native Image Not Possible At this time since GRAAL does not support java.awt Graphics/BufferedImage
#.\mvnw package -Pnative -Dquarkus.native.container-build=true -Dquarkus.native.container-runtime=docker -Dquarkus.container-image.build=true -Dquarkus.native.native-image-xmx=3g
#docker build -f src/main/docker/Dockerfile.native -t malcolmpereira/imagevalidation-quarkus-native .
Set-Location ..
#Build Image Thumbnail
Set-Location imagethumbnail
#JVM Image
.\mvnw package
docker build -f src/main/docker/Dockerfile.jvm.alpine -t malcolmpereira/imagethumbnail-quarkus-jvm .
#Native Image Not Possible At this time since GRAAL does not support java.awt Graphics/BufferedImage
#.\mvnw package -Pnative -Dquarkus.native.container-build=true -Dquarkus.native.container-runtime=docker -Dquarkus.container-image.build=true -Dquarkus.native.native-image-xmx=3g
#docker build -f src/main/docker/Dockerfile.native -t malcolmpereira/imagethumbnail-quarkus-native .
Set-Location ..
#Build Image Storage
Set-Location imagestorage
#JVM Image
#.\mvnw package
#docker build -f src/main/docker/Dockerfile.jvm.alpine -t malcolmpereira/imagestorage-quarkus-jvm .
#Native Image
#mvnw package -Pnative -Dquarkus.native.container-build=true -Dquarkus.native.container-runtime=docker -Dquarkus.container-image.build=true -Dquarkus.native.native-image-xmx=3g
.\mvnw package -Pnative '-Dquarkus.native.container-build=true' '-Dquarkus.native.container-runtime=docker' '-Dquarkus.container-image.build=true'
docker build -f src/main/docker/Dockerfile.native -t malcolmpereira/imagestorage-quarkus-native .
Set-Location ..
#Build Image Client
Set-Location imageclient
yarn install
yarn build
docker build -t malcolmpereira/imageclient .
Set-Location ..
#Build PostGreSQL Image
Set-Location postgresql-docker
docker build -t malcolmpereira/imageapi-postgres .
Set-Location ..
#Build RabbitMQ with AMQP 1.0 Image
Set-Location rabbitmq-docker
docker build -t malcolmpereira/imageapi-rabbitmq .
Set-Location ..
Write-Output "Done Docker Image Builds: "
Write-Output "Image API malcolmpereira/imageapi-quarkus-jvm "
Write-Output "Image Validation Service malcolmpereira/imagevalidation-quarkus-jvm "
Write-Output "Image Thumbnail Service malcolmpereira/imagethumbnail-quarkus-jvm "
Write-Output "Image Storage Service imagestorage-quarkus-jvm "
Write-Output "Image React Client malcolmpereira/imageclient "
Write-Output "Image DataStore malcolmpereira/imageapi-postgres"
Write-Output "Image Queue malcolmpereira/imageapi-rabbitmq"