Skip to content

Commit

Permalink
chore: update CI base image (#2044)
Browse files Browse the repository at this point in the history
* chore: update CI base image

* fix src dir ownership

---------

Co-authored-by: Tom Yu <[email protected]>
  • Loading branch information
Abingcbc and yyuuttaaoo authored Jan 20, 2025
1 parent e563035 commit 766ab94
Show file tree
Hide file tree
Showing 9 changed files with 13 additions and 16 deletions.
4 changes: 2 additions & 2 deletions config_server/service/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

FROM sls-opensource-registry.cn-shanghai.cr.aliyuncs.com/loongcollector-community-edition/loongcollector-build-linux:2.0.5 as build
FROM sls-opensource-registry.cn-shanghai.cr.aliyuncs.com/loongcollector-community-edition/loongcollector-build-linux:2.1.1 as build

USER root
WORKDIR /src
Expand All @@ -21,7 +21,7 @@ RUN go env -w GOPROXY="https://goproxy.cn,direct" && \
go build -o ConfigServer

FROM centos:centos7.9.2009
MAINTAINER TomYu [email protected]
LABEL maintainer="TomYu <[email protected]>"

ENV container docker

Expand Down
6 changes: 2 additions & 4 deletions docker/Dockerfile_build
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,13 @@
# See the License for the specific language governing permissions and
# limitations under the License.

FROM sls-opensource-registry.cn-shanghai.cr.aliyuncs.com/loongcollector-community-edition/loongcollector-build-linux:2.0.5 as build
FROM sls-opensource-registry.cn-shanghai.cr.aliyuncs.com/loongcollector-community-edition/loongcollector-build-linux:2.1.1 as build

USER root
WORKDIR /src

COPY . .

ARG HOST_OS=Linux
ARG VERSION=0.0.1

USER root

RUN --mount=type=ssh sh generated_files/gen_build.sh
5 changes: 2 additions & 3 deletions docker/Dockerfile_coverage
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,9 @@
# See the License for the specific language governing permissions and
# limitations under the License.

FROM sls-opensource-registry.cn-shanghai.cr.aliyuncs.com/loongcollector-community-edition/loongcollector-build-linux:2.0.5

WORKDIR /src
FROM sls-opensource-registry.cn-shanghai.cr.aliyuncs.com/loongcollector-community-edition/loongcollector-build-linux:2.1.1

USER root
WORKDIR /src

CMD ["bash", "-c", "gcovr --gcov-ignore-errors=no_working_dir_found --root . --json coverage.json --json-summary-pretty --json-summary summary.json -e \".*sdk.*\" -e \".*logger.*\" -e \".*unittest.*\" -e \".*config_server.*\" -e \".*go_pipeline.*\" -e \".*application.*\" -e \".*protobuf.*\" -e \".*runner.*\""]
2 changes: 1 addition & 1 deletion docker/Dockerfile_development_part
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

FROM sls-opensource-registry.cn-shanghai.cr.aliyuncs.com/loongcollector-community-edition/loongcollector-build-linux:2.0.5
FROM sls-opensource-registry.cn-shanghai.cr.aliyuncs.com/loongcollector-community-edition/loongcollector-build-linux:2.1.1

ARG HOST_OS=Linux
ARG VERSION=0.0.1
Expand Down
2 changes: 1 addition & 1 deletion docker/Dockerfile_e2e
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

FROM sls-opensource-registry.cn-shanghai.cr.aliyuncs.com/loongcollector-community-edition/loongcollector-build-linux:2.0.5
FROM sls-opensource-registry.cn-shanghai.cr.aliyuncs.com/loongcollector-community-edition/loongcollector-build-linux:2.1.1

ARG HOST_OS=Linux
ARG VERSION=0.0.1
Expand Down
2 changes: 1 addition & 1 deletion docker/Dockerfile_goc
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

# goc server is only for e2e test to analysis code coverage.

FROM sls-opensource-registry.cn-shanghai.cr.aliyuncs.com/loongcollector-community-edition/loongcollector-build-linux:2.0.5 as build
FROM sls-opensource-registry.cn-shanghai.cr.aliyuncs.com/loongcollector-community-edition/loongcollector-build-linux:2.1.1 as build

USER root
ENTRYPOINT ["goc","server"]
2 changes: 1 addition & 1 deletion docker/Dockerfile_production
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ RUN tar -xzf loongcollector-${VERSION}.linux-${TARGETPLATFORM##*/}.tar.gz


FROM centos:centos7.9.2009
MAINTAINER TomYu [email protected]
LABEL maintainer="TomYu <[email protected]>"

ENV container docker

Expand Down
4 changes: 2 additions & 2 deletions docs/cn/developer-guide/development-environment.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ go install ...

```json
{
"image": "sls-opensource-registry.cn-shanghai.cr.aliyuncs.com/loongcollector-community-edition/loongcollector-build-linux:2.0.5",
"image": "sls-opensource-registry.cn-shanghai.cr.aliyuncs.com/loongcollector-community-edition/loongcollector-build-linux:2.1.1",
"customizations": {
"vscode": {
"extensions": [
Expand Down Expand Up @@ -187,7 +187,7 @@ cp -a ./core/build/go_pipeline/libPluginAdapter.so ./output
```bash
docker run --name loongcollector-build -d \
-v `pwd`:/src -w /src \
sls-opensource-registry.cn-shanghai.cr.aliyuncs.com/loongcollector-community-edition/loongcollector-build-linux:2.0.5 \
sls-opensource-registry.cn-shanghai.cr.aliyuncs.com/loongcollector-community-edition/loongcollector-build-linux:2.1.1 \
bash -c "sleep infinity"
```

Expand Down
2 changes: 1 addition & 1 deletion docs/cn/installation/release-notes/release-notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ LoongCollector 是一款集卓越性能、超强稳定性和灵活可编程性

1. 文件目录布局与文件命名跟 iLogtail 2.0 版本有所变化,如果某些环境对特定目录、文件有所依赖,则需要注意该变化。
2. 部分自监控指标命名跟 iLogtail 2.0 版本不一致,LoongCollector 重新规范了所有自监控指标的命名和上报方式。
3. 开发镜像升级,新增部分依赖库。使用 iLogtail 开发镜像开发 Loongcollector 会出现依赖库链接错误。建议使用loongcollector 开发镜像 2.0.5 版本及以上。
3. 开发镜像升级,新增部分依赖库。使用 iLogtail 开发镜像开发 Loongcollector 会出现依赖库链接错误。建议使用loongcollector 开发镜像 2.1.1 版本及以上。

### 版本发布时间

Expand Down

0 comments on commit 766ab94

Please sign in to comment.