From 79ab1be30654aabff7969712a296cb23e7e01ed9 Mon Sep 17 00:00:00 2001 From: jerryjzhang Date: Tue, 3 Dec 2024 19:08:05 +0800 Subject: [PATCH] [fix][assembly]Fix Dockerfile and add docker compose run script. --- docker/Dockerfile | 8 ++++---- docker/docker-compose-run.sh | 3 +++ 2 files changed, 7 insertions(+), 4 deletions(-) create mode 100644 docker/docker-compose-run.sh diff --git a/docker/Dockerfile b/docker/Dockerfile index 31022ae08..330c70c32 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -10,17 +10,17 @@ ARG SUPERSONIC_VERSION RUN apt-get update # 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. -RUN apt-get install -y vim && \ +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 install -y iputils-ping +RUN apt-get update && apt-get install -y iputils-ping # 更新包列表并安装 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 assembly/build/supersonic-standalone-${SUPERSONIC_VERSION}.zip . diff --git a/docker/docker-compose-run.sh b/docker/docker-compose-run.sh new file mode 100644 index 000000000..7a515ba56 --- /dev/null +++ b/docker/docker-compose-run.sh @@ -0,0 +1,3 @@ +#!/usr/bin/env bash + +SUPERSONIC_VERSION=0.9.10-SNAPSHOT docker-compose -f docker-compose.yml -p supersonic up \ No newline at end of file