[fix][assembly]Fix Dockerfile and add docker compose run script.

This commit is contained in:
jerryjzhang
2024-12-03 19:08:05 +08:00
parent 3e903b862e
commit 79ab1be306
2 changed files with 7 additions and 4 deletions

View File

@@ -10,17 +10,17 @@ ARG SUPERSONIC_VERSION
RUN apt-get update RUN apt-get update
# Install necessary packages, including Postgres client # Install necessary packages, including Postgres client
RUN apt-get install -y postgresql-client RUN apt-get update && apt-get install -y postgresql-client
# Install the vim editor. # Install the vim editor.
RUN apt-get install -y vim && \ RUN apt-get update && apt-get install -y vim && \
rm -rf /var/lib/apt/lists/* rm -rf /var/lib/apt/lists/*
# Update the package list and install iputils-ping. # Update the package list and install iputils-ping.
RUN apt-get install -y iputils-ping RUN apt-get update && apt-get install -y iputils-ping
# 更新包列表并安装 dnsutils 包 # 更新包列表并安装 dnsutils 包
RUN apt-get install -y dnsutils RUN apt-get update && apt-get install -y dnsutils
# Copy the supersonic standalone zip file into the container # Copy the supersonic standalone zip file into the container
COPY assembly/build/supersonic-standalone-${SUPERSONIC_VERSION}.zip . COPY assembly/build/supersonic-standalone-${SUPERSONIC_VERSION}.zip .

View File

@@ -0,0 +1,3 @@
#!/usr/bin/env bash
SUPERSONIC_VERSION=0.9.10-SNAPSHOT docker-compose -f docker-compose.yml -p supersonic up