mirror of
https://github.com/tencentmusic/supersonic.git
synced 2025-12-10 11:07:06 +00:00
Some checks are pending
supersonic CentOS CI / build (11) (push) Waiting to run
supersonic CentOS CI / build (21) (push) Waiting to run
supersonic CentOS CI / build (8) (push) Waiting to run
supersonic mac CI / build (11) (push) Waiting to run
supersonic mac CI / build (21) (push) Waiting to run
supersonic mac CI / build (8) (push) Waiting to run
supersonic ubuntu CI / build (11) (push) Waiting to run
supersonic ubuntu CI / build (21) (push) Waiting to run
supersonic ubuntu CI / build (8) (push) Waiting to run
supersonic windows CI / build (11) (push) Waiting to run
supersonic windows CI / build (21) (push) Waiting to run
supersonic windows CI / build (8) (push) Waiting to run
* [improvement][launcher]Use API to get element ID avoiding hard-code. * [fix][launcher]Fix mysql scripts. * [improvement][launcher]Support DuckDB database and refactor translator code structure. * [improvement][headless-fe] Revamped the interaction for semantic modeling routing and successfully implemented the switching between dimension and dataset management. * [improvement][Headless] Add table ddl in Dbschema * [improvement][Headless] Add get database by type * [improvement][Headless] Supports automatic batch creation of models based on db table names. * [improvement][Headless] Supports getting domain by bizName * [improvement][launcher]Refactor unit tests and demo data. * [fix][launcher]Change default vector dimension to 512. * [improvement](Dict) add dimValueAliasMap info for KnowledgeBaseService * [improvement][headless]Use QueryWrapper to replace hard-code SQL in mapper xml. * [improvement][chat]Introduce ChatMemory to delegate ChatMemoryDO. * [fix][common]Fix embedding store sys configs. * [fix][common]Fix postgres schema, using varchar instead of char. * [improvement][launcher]Change supersonic docker deployment from mysql to postgres. * [Fix][launcher]Fix a number of issues related to semantic modeling. * [Fix][headless]Fix the evaluation logic of agg type. * [fix][assembly]Fix Dockerfile and add docker compose run script. * [fix][chat]Fix "multiple assignments to same column "similar_queries". * [improvement][headless]Use LamdaQueryWrapper to avoid hard-coded column names. * [improvement][headless]Refactor headless infra to support advanced semantic modelling. * [improvement][headless]Change class name `Dim` to `Dimension`. * [improvement][chat]Introduce `TimeFieldMapper` to always map time field. * [fix][headless]Remove unnecessary dimension existence check. * [fix][chat]Fix adjusted filters don't take effect. ---------
42 lines
1.4 KiB
Docker
42 lines
1.4 KiB
Docker
# Use an official OpenJDK runtime as a parent image
|
|
FROM openjdk:8-jdk
|
|
|
|
# Set the working directory in the container
|
|
WORKDIR /usr/src/app
|
|
|
|
# Argument to pass in the supersonic version at build time
|
|
ARG SUPERSONIC_VERSION
|
|
|
|
RUN apt-get update
|
|
|
|
# Install necessary packages, including Postgres client
|
|
RUN apt-get update && apt-get install -y postgresql-client
|
|
|
|
# Install the vim editor.
|
|
RUN apt-get update && apt-get install -y vim && \
|
|
rm -rf /var/lib/apt/lists/*
|
|
|
|
# Update the package list and install iputils-ping.
|
|
RUN apt-get update && apt-get install -y iputils-ping
|
|
|
|
# 更新包列表并安装 dnsutils 包
|
|
RUN apt-get update && apt-get install -y dnsutils
|
|
|
|
# Copy the supersonic standalone zip file into the container
|
|
COPY assembly/build/supersonic-standalone-${SUPERSONIC_VERSION}.zip .
|
|
|
|
# Unzip the supersonic standalone zip
|
|
RUN unzip supersonic-standalone-${SUPERSONIC_VERSION}.zip && \
|
|
rm supersonic-standalone-${SUPERSONIC_VERSION}.zip
|
|
|
|
# Create a symbolic link to the supersonic installation directory
|
|
RUN ln -s /usr/src/app/supersonic-standalone-${SUPERSONIC_VERSION} /usr/src/app/supersonic-standalone-latest
|
|
|
|
# Set the working directory to the supersonic installation directory
|
|
WORKDIR /usr/src/app/supersonic-standalone-${SUPERSONIC_VERSION}
|
|
|
|
# Expose the default port
|
|
EXPOSE 9080
|
|
# Command to run the supersonic daemon
|
|
RUN chmod +x bin/supersonic-daemon.sh
|
|
CMD ["bash", "-c", "bin/supersonic-daemon.sh restart standalone docker && tail -f /dev/null"] |