Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
FROM eclipse-temurin:21-jre
LABEL maintainer="protege.stanford.edu"

EXPOSE 7772
ARG JAR_FILE
COPY target/${JAR_FILE} webprotege-robot-service.jar
ENTRYPOINT ["java","--add-opens=java.management/sun.net=ALL-UNNAMED","-jar","/webprotege-robot-service.jar"]
45 changes: 44 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,49 @@
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>3.3.0</version>
<executions>
<execution>
<id>docker-build</id>
<phase>package</phase>
<goals>
<goal>exec</goal>
</goals>
<configuration>
<executable>docker</executable>
<workingDirectory>${project.basedir}</workingDirectory>
<arguments>
<argument>build</argument>
<argument>-f</argument>
<argument>Dockerfile</argument>
<argument>--build-arg</argument>
<argument>JAR_FILE=${project.artifactId}-${project.version}.jar</argument>
<argument>-t</argument>
<argument>protegeproject/${project.artifactId}:${project.version}</argument>
<argument>.</argument>
</arguments>
</configuration>
</execution>
<execution>
<id>docker-push</id>
<phase>install</phase>
<goals>
<goal>exec</goal>
</goals>
<configuration>
<executable>docker</executable>
<workingDirectory>${project.basedir}</workingDirectory>
<arguments>
<argument>push</argument>
<argument>protegeproject/${project.artifactId}:${project.version}</argument>
</arguments>
</configuration>
</execution>
</executions>
</plugin>

<!-- Maven Surefire Plugin for Tests -->
<plugin>
Expand Down Expand Up @@ -277,4 +320,4 @@
</profile>
</profiles>

</project>
</project>
11 changes: 10 additions & 1 deletion src/main/resources/application.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,24 @@
spring:
application:
name: webprotege-robot-service
rabbitmq:
host: rabbitmq
port: 5672
username: guest
password: guest
data:
mongodb:
host: localhost
port: 27017
database: webprotege
auto-index-creation: true
webprotege:
rabbitmq:
requestqueue: webprotege-robot-queue
responsequeue: webprotege-robot-response-queue
timeout: 60000
minio:
access-key: webprotege
end-point: http://localhost:9000
secret-key: webprotege
robot-output-documents-bucket-name: webprotege-robot-output-documents
robot-output-documents-bucket-name: webprotege-robot-output-documents