From d3b82fdff8770e56f1980507afbe4a34c3c37e14 Mon Sep 17 00:00:00 2001 From: yeouchien Date: Wed, 29 Mar 2023 15:01:09 +0800 Subject: [PATCH 1/2] install pulsar --- runner/actions-runner.ubuntu-22.04.dockerfile | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/runner/actions-runner.ubuntu-22.04.dockerfile b/runner/actions-runner.ubuntu-22.04.dockerfile index a85833b258..5a618b18e0 100644 --- a/runner/actions-runner.ubuntu-22.04.dockerfile +++ b/runner/actions-runner.ubuntu-22.04.dockerfile @@ -24,6 +24,11 @@ RUN apt-get update -y \ sudo \ unzip \ zip \ + wget \ + g++ \ + make \ + cmake libssl-dev libcurl4-openssl-dev liblog4cxx-dev \ + libprotobuf-dev protobuf-compiler libboost-all-dev google-mock libgtest-dev libjsoncpp-dev \ && rm -rf /var/lib/apt/lists/* # Download latest git-lfs version @@ -90,6 +95,10 @@ RUN export ARCH=$(echo ${TARGETPLATFORM} | cut -d / -f2) \ && which docker-compose \ && docker compose version +RUN wget --no-check-certificate --user-agent=Mozilla -O apache-pulsar-client-dev.deb "https://archive.apache.org/dist/pulsar/pulsar-2.8.0/DEB/apache-pulsar-client-dev.deb" \ + && wget --no-check-certificate --user-agent=Mozilla -O apache-pulsar-client.deb "https://archive.apache.org/dist/pulsar/pulsar-2.8.0/DEB/apache-pulsar-client.deb" \ + && apt install ./apache-pulsar-client*.deb + # We place the scripts in `/usr/bin` so that users who extend this image can # override them with scripts of the same name placed in `/usr/local/bin`. COPY entrypoint.sh startup.sh logger.sh graceful-stop.sh update-status /usr/bin/ From b7141d576361e317959898e68551c9339c2ec657 Mon Sep 17 00:00:00 2001 From: yeouchien Date: Wed, 29 Mar 2023 16:35:09 +0800 Subject: [PATCH 2/2] install aws cli and yarn --- runner/actions-runner.ubuntu-22.04.dockerfile | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/runner/actions-runner.ubuntu-22.04.dockerfile b/runner/actions-runner.ubuntu-22.04.dockerfile index 5a618b18e0..9a85b13f24 100644 --- a/runner/actions-runner.ubuntu-22.04.dockerfile +++ b/runner/actions-runner.ubuntu-22.04.dockerfile @@ -99,6 +99,17 @@ RUN wget --no-check-certificate --user-agent=Mozilla -O apache-pulsar-client-dev && wget --no-check-certificate --user-agent=Mozilla -O apache-pulsar-client.deb "https://archive.apache.org/dist/pulsar/pulsar-2.8.0/DEB/apache-pulsar-client.deb" \ && apt install ./apache-pulsar-client*.deb +RUN curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o /tmp/awscliv2.zip \ + && unzip -q /tmp/awscliv2.zip -d /tmp \ + && rm /tmp/awscliv2.zip \ + && ./tmp/aws/install \ + && rm -rf /tmp/aws/ + +RUN curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - \ + && echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list \ + && apt update -y \ + && apt install -y --no-install-recommends yarn + # We place the scripts in `/usr/bin` so that users who extend this image can # override them with scripts of the same name placed in `/usr/local/bin`. COPY entrypoint.sh startup.sh logger.sh graceful-stop.sh update-status /usr/bin/