chore: update
This commit is contained in:
@@ -26,7 +26,8 @@ RUN apt-get update --fix-missing && apt-get install --no-install-recommends --no
|
|||||||
kubectl \
|
kubectl \
|
||||||
openjdk-25-jdk-headless \
|
openjdk-25-jdk-headless \
|
||||||
redis-server \
|
redis-server \
|
||||||
maven
|
maven \
|
||||||
|
python3-venv
|
||||||
|
|
||||||
RUN jbang trust add https://repo1.maven.org/maven2/io/quarkus/quarkus-cli/
|
RUN jbang trust add https://repo1.maven.org/maven2/io/quarkus/quarkus-cli/
|
||||||
RUN jbang app install --fresh --force quarkus@quarkusio
|
RUN jbang app install --fresh --force quarkus@quarkusio
|
||||||
|
|||||||
+47
-30
@@ -1,8 +1,8 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8" ?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<project
|
<project
|
||||||
xmlns="http://maven.apache.org/POM/4.0.0"
|
xmlns="http://maven.apache.org/POM/4.0.0"
|
||||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"
|
||||||
>
|
>
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
|
||||||
@@ -16,11 +16,10 @@
|
|||||||
<artifactId>file-service</artifactId>
|
<artifactId>file-service</artifactId>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
<quarkus.container-image.registry
|
<quarkus.container-image.registry>vps.demonkernel.io.vn</quarkus.container-image.registry>
|
||||||
>vps.demonkernel.io.vn</quarkus.container-image.registry>
|
|
||||||
<quarkus.container-image.group>foodsurf</quarkus.container-image.group>
|
<quarkus.container-image.group>foodsurf</quarkus.container-image.group>
|
||||||
<quarkus.container-image.name
|
<quarkus.container-image.name>file-service</quarkus.container-image.name>
|
||||||
>file-service</quarkus.container-image.name>
|
<quarkus.container-image.push>true</quarkus.container-image.push>
|
||||||
|
|
||||||
<python.image.full.name>
|
<python.image.full.name>
|
||||||
${quarkus.container-image.registry}/${quarkus.container-image.group}/${quarkus.container-image.name}</python.image.full.name>
|
${quarkus.container-image.registry}/${quarkus.container-image.group}/${quarkus.container-image.name}</python.image.full.name>
|
||||||
@@ -48,38 +47,56 @@
|
|||||||
</goals>
|
</goals>
|
||||||
<configuration>
|
<configuration>
|
||||||
<executable>docker</executable>
|
<executable>docker</executable>
|
||||||
<workingDirectory
|
<workingDirectory>${project.basedir}/python</workingDirectory>
|
||||||
>${project.basedir}/python</workingDirectory>
|
|
||||||
<arguments>
|
<arguments>
|
||||||
<argument>build</argument>
|
<argument>build</argument>
|
||||||
<argument>-t</argument>
|
<argument>-t</argument>
|
||||||
<argument
|
<argument>${python.image.full.name}:${parent.version}</argument>
|
||||||
>${python.image.full.name}:${parent.version}</argument>
|
|
||||||
<argument>-t</argument>
|
<argument>-t</argument>
|
||||||
<argument
|
<argument>${python.image.full.name}:latest</argument>
|
||||||
>${python.image.full.name}:latest</argument>
|
|
||||||
<argument>.</argument>
|
<argument>.</argument>
|
||||||
</arguments>
|
</arguments>
|
||||||
</configuration>
|
</configuration>
|
||||||
</execution>
|
</execution>
|
||||||
|
|
||||||
<execution>
|
|
||||||
<id>docker-push-python</id>
|
|
||||||
<phase>install</phase>
|
|
||||||
<goals>
|
|
||||||
<goal>exec</goal>
|
|
||||||
</goals>
|
|
||||||
<configuration>
|
|
||||||
<executable>docker</executable>
|
|
||||||
<arguments>
|
|
||||||
<argument>push</argument>
|
|
||||||
<argument>${python.image.full.name}</argument>
|
|
||||||
</arguments>
|
|
||||||
</configuration>
|
|
||||||
</execution>
|
|
||||||
</executions>
|
</executions>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
|
||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
</project>
|
|
||||||
|
<profiles>
|
||||||
|
<profile>
|
||||||
|
<id>push-python-image</id>
|
||||||
|
<activation>
|
||||||
|
<property>
|
||||||
|
<name>quarkus.container-image.push</name>
|
||||||
|
<value>true</value>
|
||||||
|
</property>
|
||||||
|
</activation>
|
||||||
|
<build>
|
||||||
|
<plugins>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.codehaus.mojo</groupId>
|
||||||
|
<artifactId>exec-maven-plugin</artifactId>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<id>docker-push-python</id>
|
||||||
|
<phase>install</phase>
|
||||||
|
<goals>
|
||||||
|
<goal>exec</goal>
|
||||||
|
</goals>
|
||||||
|
<configuration>
|
||||||
|
<executable>docker</executable>
|
||||||
|
<arguments>
|
||||||
|
<argument>push</argument>
|
||||||
|
<argument>${python.image.full.name}</argument>
|
||||||
|
</arguments>
|
||||||
|
</configuration>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
</plugin>
|
||||||
|
</plugins>
|
||||||
|
</build>
|
||||||
|
</profile>
|
||||||
|
</profiles>
|
||||||
|
</project>
|
||||||
Reference in New Issue
Block a user