(improvement)(project) Chroma supports storing and modifying Docker image paths. The Java backend service has been enhanced with a MySQL client and name modification. (#1303)

This commit is contained in:
lexluo09
2024-06-30 22:31:58 +08:00
committed by GitHub
parent b59c1303cc
commit 96339f425c
4 changed files with 12 additions and 4 deletions

View File

@@ -7,6 +7,11 @@ WORKDIR /usr/src/app
# Argument to pass in the supersonic version at build time # Argument to pass in the supersonic version at build time
ARG SUPERSONIC_VERSION ARG SUPERSONIC_VERSION
# Install necessary packages, including MySQL client
RUN apt-get update && \
apt-get install -y default-mysql-client unzip && \
rm -rf /var/lib/apt/lists/*
# Install the vim editor. # Install the vim editor.
RUN apt-get update && \ RUN apt-get update && \
apt-get install -y vim && \ apt-get install -y vim && \

View File

@@ -15,7 +15,7 @@ REM Function to build the Docker image
:build_docker_image :build_docker_image
set "version=%1" set "version=%1"
echo Building Docker image: supersonic:%version% echo Building Docker image: supersonic:%version%
docker build --no-cache --build-arg SUPERSONIC_VERSION=%version% -t supersonic:%version% -f docker\Dockerfile . docker build --no-cache --build-arg SUPERSONIC_VERSION=%version% -t supersonicbi/supersonic:%version% -f docker\Dockerfile .
if %errorlevel% neq 0 ( if %errorlevel% neq 0 (
echo Docker build failed. Exiting. echo Docker build failed. Exiting.
exit /b 1 exit /b 1

View File

@@ -10,7 +10,7 @@ execute_build_script() {
build_docker_image() { build_docker_image() {
local version=$1 local version=$1
echo "Building Docker image: supersonic:$version" echo "Building Docker image: supersonic:$version"
docker build --no-cache --build-arg SUPERSONIC_VERSION=$version -t supersonic:$version -f docker/Dockerfile . docker build --no-cache --build-arg SUPERSONIC_VERSION=$version -t supersonicbi/supersonic:$version -f docker/Dockerfile .
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
echo "Docker build failed. Exiting." echo "Docker build failed. Exiting."
exit 1 exit 1

View File

@@ -44,15 +44,17 @@ services:
container_name: supersonic_chroma container_name: supersonic_chroma
ports: ports:
- "8000:8000" - "8000:8000"
volumes:
- chroma_data:/chroma
networks: networks:
- supersonic_network - supersonic_network
dns: dns:
- 8.8.8.8 - 8.8.8.8
- 8.8.4.4 - 8.8.4.4
java_backend: supersonic_standalone:
image: supersonicbi/supersonic:0.9.2-SNAPSHOT image: supersonicbi/supersonic:0.9.2-SNAPSHOT
container_name: supersonic_java_backend container_name: supersonic_standalone
environment: environment:
DB_HOST: supersonic_mysql DB_HOST: supersonic_mysql
DB_NAME: supersonic_db DB_NAME: supersonic_db
@@ -72,6 +74,7 @@ services:
volumes: volumes:
mysql_data: mysql_data:
chroma_data:
networks: networks:
supersonic_network: supersonic_network: