fix(docker): fix docker release (#70)

This commit is contained in:
baifuyu 2024-01-08 20:07:26 +08:00 committed by GitHub
parent 0c04799e0a
commit 7b1613c362
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 9 additions and 9 deletions

View File

@ -4,3 +4,4 @@ mybatis-generator-config.xml
application-default.properties application-default.properties
reasoner.sh reasoner.sh
dev/release/python/Dockerfile dev/release/python/Dockerfile
dev/release/docker-compose.yml

View File

@ -49,7 +49,7 @@
<mainClass>com.antgroup.openspg.builder.runner.local.LocalBuilderMain</mainClass> <mainClass>com.antgroup.openspg.builder.runner.local.LocalBuilderMain</mainClass>
</manifest> </manifest>
</archive> </archive>
<outputDirectory>../../../python/knext/knext/lib</outputDirectory> <outputDirectory>../../../dev/release/python/lib</outputDirectory>
</configuration> </configuration>
<executions> <executions>
<execution> <execution>

View File

@ -12,7 +12,9 @@ services:
- elasticsearch - elasticsearch
command: [ command: [
'--server.repository.impl.jdbc.host=mysql', '--server.repository.impl.jdbc.host=mysql',
'--server.repository.impl.jdbc.password=openspg' '--server.repository.impl.jdbc.password=openspg',
'--cloudext.graphstore.url=tugraph://tugraph:9090?graphName=default&timeout=50000&accessId=admin&accessKey=73@TuGraph',
'--cloudext.searchengine.url=elasticsearch://elasticsearch:9200?scheme=http'
] ]
mysql: mysql:
@ -49,8 +51,3 @@ services:
environment: environment:
- discovery.type=single-node - discovery.type=single-node
- xpack.security.enabled=false - xpack.security.enabled=false

View File

@ -35,4 +35,6 @@ RUN python3 -m venv /openspg_venv && \
pip3 install $PIP_PKGS && \ pip3 install $PIP_PKGS && \
echo "if (tty -s); then \n . /openspg_venv/bin/activate \nfi" >> ~/.bashrc echo "if (tty -s); then \n . /openspg_venv/bin/activate \nfi" >> ~/.bashrc
ADD lib/*.jar /openspg_venv/lib/python3.8/site-packages/knext/lib
RUN git clone --depth=1 https://github.com/OpenSPG/openspg.git RUN git clone --depth=1 https://github.com/OpenSPG/openspg.git

View File

@ -20,4 +20,4 @@ setuptools==60.2.0
openspg-nn4k==0.0.2-beta1 openspg-nn4k==0.0.2-beta1
Jinja2==3.1.2 Jinja2==3.1.2
cachetools==5.3.2 cachetools==5.3.2
numpy=1.24.4 numpy==1.24.4

View File

@ -130,7 +130,7 @@
<mainClass>com.antgroup.openspg.reasoner.runner.local.LocalReasonerMain</mainClass> <mainClass>com.antgroup.openspg.reasoner.runner.local.LocalReasonerMain</mainClass>
</manifest> </manifest>
</archive> </archive>
<outputDirectory>../../../python/knext/knext/lib</outputDirectory> <outputDirectory>../../../dev/release/python/lib</outputDirectory>
</configuration> </configuration>
<executions> <executions>
<execution> <execution>