This is an automated email from the ASF dual-hosted git repository.

wangdan pushed a commit to branch fix-github-ubuntu-2004-runner-removed
in repository https://gitbox.apache.org/repos/asf/incubator-pegasus.git


The following commit(s) were added to 
refs/heads/fix-github-ubuntu-2004-runner-removed by this push:
     new 460a38ff9 fix image
460a38ff9 is described below

commit 460a38ff968f44f2639be8c1977f359c6b31b4ed
Author: Dan Wang <[email protected]>
AuthorDate: Fri Apr 25 14:41:41 2025 +0800

    fix image
---
 .github/workflows/build-push-env-docker.yml |  7 +----
 docker/pegasus-build-env/go/Dockerfile      | 46 +++++++++++++++++++++++++++++
 2 files changed, 47 insertions(+), 6 deletions(-)

diff --git a/.github/workflows/build-push-env-docker.yml 
b/.github/workflows/build-push-env-docker.yml
index e2284e584..15416b4f0 100644
--- a/.github/workflows/build-push-env-docker.yml
+++ b/.github/workflows/build-push-env-docker.yml
@@ -77,17 +77,12 @@ jobs:
   build_go_compilation_env_docker_images:
     runs-on: ubuntu-latest
     env:
-      # The glibc version on ubuntu1804 is lower than the node20 required, so
-      # we need to force the node version to 16.
-      # See more details: https://github.com/actions/checkout/issues/1809
       ACTIONS_RUNNER_FORCE_ACTIONS_NODE_VERSION: node16
       ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
     strategy:
       fail-fast: false
     steps:
       - name: Checkout
-        # The glibc version on ubuntu1804 is lower than the 
actions/checkout@v4 required, so
-        # we need to force to use actions/checkout@v3.
         uses: actions/checkout@v4
       - name: Set up QEMU
         uses: docker/setup-qemu-action@v3
@@ -103,7 +98,7 @@ jobs:
         with:
           platforms: linux/amd64
           context: .
-          file: ./docker/pegasus-build-env/ubuntu2204/Dockerfile
+          file: ./docker/pegasus-build-env/go/Dockerfile
           push: true
           tags: |
             apache/pegasus:build-env-ubuntu2204-${{ github.ref_name }}-go
diff --git a/docker/pegasus-build-env/go/Dockerfile 
b/docker/pegasus-build-env/go/Dockerfile
new file mode 100644
index 000000000..8780751e7
--- /dev/null
+++ b/docker/pegasus-build-env/go/Dockerfile
@@ -0,0 +1,46 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
+FROM ubuntu:22.04
+
+ENV TZ=Asia/Shanghai
+RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
+
+RUN apt-get update -y; \
+    apt-get install -y --no-install-recommends \
+                       automake \
+                       build-essential \
+                       bison \
+                       flex \
+                      g++ \
+                       libboost-dev \
+                       libevent-dev \
+                       libssl-dev \
+                       libtool \
+                      make \
+                       pkg-config \
+                      ca-certificates \
+                       wget \
+                       unzip; \
+    rm -rf /var/lib/apt/lists/*
+
+ARG THRIFT_VERSION=0.11.0
+RUN wget --progress=dot:giga 
https://archive.apache.org/dist/thrift/${THRIFT_VERSION}/thrift-${THRIFT_VERSION}.tar.gz
 -P /opt/thrift && \
+    cd /opt/thrift && tar xzf thrift-${THRIFT_VERSION}.tar.gz && cd 
thrift-${THRIFT_VERSION} && ./bootstrap.sh && \
+    ./configure --enable-libs=no && \
+    make -j$(($(nproc)/2+1)) && make install && cd - && \
+    rm -rf thrift-${THRIFT_VERSION} thrift-${THRIFT_VERSION}.tar.gz


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to