diff --git a/CHANGELOG.md b/CHANGELOG.md index dd883da34f..69cbd0aaa3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -36,4 +36,3 @@ your changes, such as: - [public] [both] [updated] add a new feature ## [Unreleased] -- [inner] [both] [updated] Support SLS Metricstore output \ No newline at end of file diff --git a/Makefile b/Makefile index 2d3c129d12..25373161c1 100644 --- a/Makefile +++ b/Makefile @@ -13,7 +13,7 @@ # limitations under the License. .DEFAULT_GOAL := all -VERSION ?= 0.0.1 +VERSION ?= loongcollector-0.2.0 DOCKER_PUSH ?= false DOCKER_REPOSITORY ?= aliyun/loongcollector BUILD_REPOSITORY ?= aliyun/loongcollector_build diff --git a/changes/vloongcollector-0.2.0.md b/changes/vloongcollector-0.2.0.md new file mode 100644 index 0000000000..281a55dc5b --- /dev/null +++ b/changes/vloongcollector-0.2.0.md @@ -0,0 +1,30 @@ +# loongcollector-0.2.0 + +## Changes + +All issues and pull requests are [here](https://github.com/alibaba/ilogtail/milestone/25). + +### Features + +- [inner] [both] [updated] Support SLS Metricstore output + +### Fixed + + +### Doc + + +## Download + +| **Filename** | **OS** | **Arch** | **SHA256 Checksum** | +| ---- | ---- | ---- | ---- | +|[ilogtail-loongcollector-0.2.0.linux-amd64.tar.gz](https://ilogtail-community-edition.oss-cn-shanghai.aliyuncs.com/loongcollector-0.2.0/ilogtail-loongcollector-0.2.0.linux-amd64.tar.gz)|Linux|x86-64|[ilogtail-loongcollector-0.2.0.linux-amd64.tar.gz.sha256](https://ilogtail-community-edition.oss-cn-shanghai.aliyuncs.com/loongcollector-0.2.0/ilogtail-loongcollector-0.2.0.linux-amd64.tar.gz.sha256)| +|[ilogtail-loongcollector-0.2.0.linux-arm64.tar.gz](https://ilogtail-community-edition.oss-cn-shanghai.aliyuncs.com/loongcollector-0.2.0/ilogtail-loongcollector-0.2.0.linux-arm64.tar.gz)|Linux|arm64|[ilogtail-loongcollector-0.2.0.linux-arm64.tar.gz.sha256](https://ilogtail-community-edition.oss-cn-shanghai.aliyuncs.com/loongcollector-0.2.0/ilogtail-loongcollector-0.2.0.linux-arm64.tar.gz.sha256)| +|[ilogtail-loongcollector-0.2.0.windows-amd64.zip](https://ilogtail-community-edition.oss-cn-shanghai.aliyuncs.com/loongcollector-0.2.0/ilogtail-loongcollector-0.2.0.windows-amd64.zip)|Windows|x86-64|[ilogtail-loongcollector-0.2.0.windows-amd64.zip.sha256](https://ilogtail-community-edition.oss-cn-shanghai.aliyuncs.com/loongcollector-0.2.0/ilogtail-loongcollector-0.2.0.windows-amd64.zip.sha256)| + +## Docker Image + +**Docker Pull Command** +``` bash +docker pull sls-opensource-registry.cn-shanghai.cr.aliyuncs.com/ilogtail-community-edition/ilogtail:loongcollector-0.2.0 +``` diff --git a/core/options.cmake b/core/options.cmake index 79881d7c98..af1705bef7 100644 --- a/core/options.cmake +++ b/core/options.cmake @@ -14,7 +14,7 @@ # Name/Version information. if (NOT DEFINED LOGTAIL_VERSION) - set(LOGTAIL_VERSION "0.0.1") + set(LOGTAIL_VERSION "loongcollector-0.2.0") endif () message(STATUS "Version: ${LOGTAIL_VERSION}") diff --git a/docker/Dockerfile_build b/docker/Dockerfile_build index 2977ee50a0..2c73040ae6 100644 --- a/docker/Dockerfile_build +++ b/docker/Dockerfile_build @@ -19,7 +19,7 @@ WORKDIR /src COPY . . ARG HOST_OS=Linux -ARG VERSION=0.0.1 +ARG VERSION=loongcollector-0.2.0 USER root diff --git a/docker/Dockerfile_development_part b/docker/Dockerfile_development_part index a6117fe571..6120fa09c5 100644 --- a/docker/Dockerfile_development_part +++ b/docker/Dockerfile_development_part @@ -15,7 +15,7 @@ FROM sls-opensource-registry.cn-shanghai.cr.aliyuncs.com/loongcollector-community-edition/loongcollector-build-linux:2.0.5 ARG HOST_OS=Linux -ARG VERSION=0.0.1 +ARG VERSION=loongcollector-0.2.0 USER root WORKDIR /loongcollector diff --git a/docker/Dockerfile_e2e b/docker/Dockerfile_e2e index 53cb09411c..d84085f7e4 100644 --- a/docker/Dockerfile_e2e +++ b/docker/Dockerfile_e2e @@ -15,7 +15,7 @@ FROM sls-opensource-registry.cn-shanghai.cr.aliyuncs.com/loongcollector-community-edition/loongcollector-build-linux:2.0.5 ARG HOST_OS=Linux -ARG VERSION=0.0.1 +ARG VERSION=loongcollector-0.2.0 USER root WORKDIR /loongcollector diff --git a/docker/Dockerfile_production b/docker/Dockerfile_production index 602ccd4915..fdfc48e470 100644 --- a/docker/Dockerfile_production +++ b/docker/Dockerfile_production @@ -13,7 +13,7 @@ # limitations under the License. FROM --platform=$TARGETPLATFORM centos:centos7.9.2009 as build -ARG VERSION=0.0.1 +ARG VERSION=loongcollector-0.2.0 ARG TARGETPLATFORM WORKDIR /usr/local COPY dist/loongcollector-${VERSION}.linux-*.tar.gz . @@ -30,7 +30,7 @@ RUN curl -L -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/ RUN yum update -y && yum upgrade -y && yum -y clean all && rm -fr /var/cache && rm -rf /core.* ARG HOST_OS=Linux -ARG VERSION=0.0.1 +ARG VERSION=loongcollector-0.2.0 ARG TARGETPLATFORM COPY --from=build /usr/local/loongcollector-${VERSION} /usr/local/loongcollector diff --git a/docker/Dockerfile_production_minimal b/docker/Dockerfile_production_minimal index 7b177c5873..61e13b9c28 100644 --- a/docker/Dockerfile_production_minimal +++ b/docker/Dockerfile_production_minimal @@ -13,7 +13,7 @@ # limitations under the License. FROM --platform=$TARGETPLATFORM debian:bookworm as build -ARG VERSION=0.0.1 +ARG VERSION=loongcollector-0.2.0 ARG TARGETPLATFORM ARG UID=65532 WORKDIR /usr/local @@ -31,7 +31,7 @@ LABEL org.opencontainers.image.authors="yyuuttaaoo@gmail.com, jiangdeyan@gmail.c COPY --from=build /usr/lib/x86_64-linux-gnu/libuuid.so.1.3.0 /lib/x86_64-linux-gnu/libuuid.so.1 ARG HOST_OS=Linux -ARG VERSION=0.0.1 +ARG VERSION=loongcollector-0.2.0 ARG TARGETPLATFORM COPY --from=build --chown=$UID:$UID /usr/local/loongcollector /usr/local/loongcollector diff --git a/docs/en/guides/How-to-build-with-docker.md b/docs/en/guides/How-to-build-with-docker.md index e3d03d7723..62eea3ce4e 100644 --- a/docs/en/guides/How-to-build-with-docker.md +++ b/docs/en/guides/How-to-build-with-docker.md @@ -17,7 +17,7 @@ make solib ### Build image - The default {DOCKER_REPOSITORY} is `aliyun/ilogtail`. - - The default {VERSION} is `2.0.0`. + - The default {VERSION} is `loongcollector-0.2.0`. - The default {DOCKER_PUSH} is `false`. When the option is configured as true, the built images would also be pushed to the {DOCKER_REPOSITORY} with {VERSION} tag. ```shell @@ -32,7 +32,7 @@ If the features that you want to use only in Go part, such as collecting stdout ### Build image - The default {DOCKER_REPOSITORY} is `aliyun/ilogtail`. - - The default {VERSION} is `2.0.0`. + - The default {VERSION} is `loongcollector-0.2.0`. - The default {DOCKER_PUSH} is `false`. When the option is configured as true, the built images would also be pushed to the {DOCKER_REPOSITORY} with {VERSION} tag. ```shell diff --git a/scripts/docker_build.sh b/scripts/docker_build.sh index 66b07f73e2..e3725aea3a 100755 --- a/scripts/docker_build.sh +++ b/scripts/docker_build.sh @@ -56,7 +56,7 @@ function check_docker_buildkit_support { ARCH=$(arch) CATEGORY=$1 GENERATED_HOME=$2 -VERSION=${3:-0.0.1} +VERSION=${3:-loongcollector-0.2.0} REPOSITORY=${4:-aliyun/loongcollector} PUSH=${5:-false} USE_DOCKER_BUILDKIT=${6:-${DOCKER_BUILD_USE_BUILDKIT:-$(check_docker_buildkit_support)}} diff --git a/scripts/gen_build_scripts.sh b/scripts/gen_build_scripts.sh index 1123da9507..ce30badf1c 100755 --- a/scripts/gen_build_scripts.sh +++ b/scripts/gen_build_scripts.sh @@ -24,7 +24,7 @@ set -o pipefail # e2e: Build plugin dynamic lib with GOC and build the CPP part. CATEGORY=$1 GENERATED_HOME=$2 -VERSION=${3:-0.0.1} +VERSION=${3:-loongcollector-0.2.0} REPOSITORY=${4:-aliyun/loongcollector} OUT_DIR=${5:-output} EXPORT_GO_ENVS=${6:-${DOCKER_BUILD_EXPORT_GO_ENVS:-true}} diff --git a/scripts/plugin_build.sh b/scripts/plugin_build.sh index fa70e344de..ab50cf964f 100755 --- a/scripts/plugin_build.sh +++ b/scripts/plugin_build.sh @@ -27,7 +27,7 @@ function os() { MOD=${1:-mod} BUILDMODE=${2:-default} OUT_DIR=${3:-output} -VERSION=${4:-0.0.1} +VERSION=${4:-loongcollector-0.2.0} PLUGINS_CONFIG_FILE=${5:-${PLUGINS_CONFIG_FILE:-plugins.yml,external_plugins.yml}} GO_MOD_FILE=${6:-${GO_MOD_FILE:-go.mod}} NAME=ilogtail diff --git a/scripts/update_version.sh b/scripts/update_version.sh index a93b996afe..42e7fa8cbd 100755 --- a/scripts/update_version.sh +++ b/scripts/update_version.sh @@ -42,7 +42,7 @@ sed -i "s/VERSION=\${3:-.*}/VERSION=\${3:-$version}/g" scripts/*.sh sed -i "s/VERSION=\${4:-.*}/VERSION=\${4:-$version}/g" scripts/*.sh sed -i "s/DIST_DIR=\${2:-loongcollector-.*}/DIST_DIR=\${2:-loongcollector-$version}/g" scripts/dist.sh sed -i "s/^set ILOGTAIL_VERSION=.*/set ILOGTAIL_VERSION=$version/g" scripts/*.bat -sed -i "s/image: aliyun\\/loongcollector:.*/image: aliyun\\/loongcollector:$version/g" test/engine/boot/compose.go +sed -i "s/image: aliyun\\/loongcollector:.*/image: aliyun\\/loongcollector:$version/g" test/engine/setup/dockercompose/compose.go # Docs sed -i "s/aliyun\\/loongcollector:[^\` ]*/aliyun\\/loongcollector:$version/g" \ diff --git a/scripts/windows32_build.bat b/scripts/windows32_build.bat index 7aea286b36..00a46c59d9 100644 --- a/scripts/windows32_build.bat +++ b/scripts/windows32_build.bat @@ -6,7 +6,7 @@ REM 2. Build iLogtail. REM 3. Build iLogtail plugin. REM 4. Make package. -set ILOGTAIL_VERSION=2.0.0 +set ILOGTAIL_VERSION=loongcollector-0.2.0 if not "%1" == "" set ILOGTAIL_VERSION=%1 set CurrentPath=%~dp0 set P1Path= diff --git a/scripts/windows64_build.bat b/scripts/windows64_build.bat index 17ec0f8db4..9afa3a6de1 100644 --- a/scripts/windows64_build.bat +++ b/scripts/windows64_build.bat @@ -6,7 +6,7 @@ REM 2. Build iLogtail. REM 3. Build iLogtail plugin. REM 4. Make package. -set ILOGTAIL_VERSION=2.0.0 +set ILOGTAIL_VERSION=loongcollector-0.2.0 if not "%1" == "" set ILOGTAIL_VERSION=%1 set CurrentPath=%~dp0 set P1Path= diff --git a/scripts/windows64_dist.bat b/scripts/windows64_dist.bat index 791347c7f7..ab70fa9dfc 100644 --- a/scripts/windows64_dist.bat +++ b/scripts/windows64_dist.bat @@ -5,7 +5,7 @@ REM 1. Set environments. REM 2. Copy output to dist package dir. REM 3. Pack dir to zip archive. -set ILOGTAIL_VERSION=2.0.0 +set ILOGTAIL_VERSION=loongcollector-0.2.0 if not "%1" == "" set ILOGTAIL_VERSION=%1 set CurrentPath=%~dp0 set P1Path= diff --git a/test/engine/setup/dockercompose/compose.go b/test/engine/setup/dockercompose/compose.go index 780df589e5..15ac7b0575 100644 --- a/test/engine/setup/dockercompose/compose.go +++ b/test/engine/setup/dockercompose/compose.go @@ -56,7 +56,7 @@ services: interval: 1s retries: 10 loongcollectorC: - image: aliyun/loongcollector:0.0.1 + image: aliyun/loongcollector:loongcollector-0.2.0 hostname: loongcollector privileged: true pid: host