mirror of
https://github.com/tencentmusic/supersonic.git
synced 2025-12-10 02:46:56 +00:00
(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:
@@ -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 && \
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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:
|
||||||
Reference in New Issue
Block a user