Add ImageMagick and Im4java

This commit is contained in:
2021-05-25 20:52:45 +02:00
parent 713ab1b84b
commit 6409d0198d
2 changed files with 18 additions and 22 deletions

18
pom.xml
View File

@@ -46,6 +46,16 @@
<groupId>io.quarkus</groupId> <groupId>io.quarkus</groupId>
<artifactId>quarkus-config-yaml</artifactId> <artifactId>quarkus-config-yaml</artifactId>
</dependency> </dependency>
<dependency>
<groupId>org.openimaj</groupId>
<artifactId>core-image</artifactId>
<version>1.3.10</version>
</dependency>
<dependency>
<groupId>org.im4java</groupId>
<artifactId>im4java</artifactId>
<version>1.4.0</version>
</dependency>
<!-- Instance specific--> <!-- Instance specific-->
<dependency> <dependency>
<groupId>io.quarkus</groupId> <groupId>io.quarkus</groupId>
@@ -84,11 +94,9 @@
<profiles> <profiles>
<profile> <profile>
<id>native</id> <id>native</id>
<activation> <properties>
<property> <quarkus.package.type>native</quarkus.package.type>
<name>native</name> </properties>
</property>
</activation>
<build> <build>
<plugins> <plugins>
<plugin> <plugin>

View File

@@ -1,21 +1,9 @@
#### FROM archlinux:latest
# This Dockerfile is used in order to build a container that runs the Quarkus application in native (no JVM) mode
#
# Before building the docker image run:
#
# mvn package -Pnative -Dquarkus.native.container-build=true
#
# Then, build the image with:
#
# docker build -f src/main/docker/Dockerfile.native -t quarkus/lalafin .
#
# Then run the container using:
#
# docker run -i --rm -p 8080:8080 quarkus/lalafin
#
###
FROM registry.access.redhat.com/ubi8/ubi-minimal:latest
WORKDIR /work/ WORKDIR /work/
RUN pacman -Syu --noconfirm
RUN pacman -S --noconfirm imagemagick
COPY target/*-runner /work/application COPY target/*-runner /work/application
RUN chmod 775 /work RUN chmod 775 /work