From 38f3322e65dd12247ccd6227fc26840e227e4c87 Mon Sep 17 00:00:00 2001 From: Prabhu Subramanian Date: Sun, 5 Jan 2025 23:54:10 +0000 Subject: [PATCH] Back to distro ruby in bun image Signed-off-by: Prabhu Subramanian --- ci/Dockerfile-bun | 24 +++--------------------- 1 file changed, 3 insertions(+), 21 deletions(-) diff --git a/ci/Dockerfile-bun b/ci/Dockerfile-bun index f4d9b326f..4adb7ea80 100644 --- a/ci/Dockerfile-bun +++ b/ci/Dockerfile-bun @@ -22,7 +22,6 @@ ARG MAVEN_VERSION=3.9.9 ARG GRADLE_VERSION=8.11 ARG GO_VERSION=1.23.3 ARG PYTHON_VERSION=3.12 -ARG RUBY_VERSION=3.4.0 ENV GOPATH=/opt/app-root/go \ JAVA_VERSION=$JAVA_VERSION \ @@ -53,13 +52,8 @@ ENV GOPATH=/opt/app-root/go \ CDXGEN_IN_CONTAINER=true \ SDKMAN_DIR=/root/.sdkman \ SDKMAN_CANDIDATES_DIR=/root/.sdkman/candidates \ - PYTHONPATH=/opt/pypi \ - MALLOC_CONF="dirty_decay_ms:2000,narenas:2,background_thread:true" \ - RUBY_CONFIGURE_OPTS="--with-jemalloc --enable-yjit" \ - RUBYOPT="--yjit" \ - RUBY_BUILD_BUILD_PATH="/tmp/rbenv" \ - RUBY_BUILD_HTTP_CLIENT=curl -ENV PATH=${PATH}:${JAVA_HOME}/bin:${MAVEN_HOME}/bin:${GRADLE_HOME}/bin:${SBT_HOME}/bin:${GOPATH}/bin:/usr/local/go/bin:/usr/local/bin/:/root/.local/bin:${ANDROID_HOME}/cmdline-tools/latest/bin:${ANDROID_HOME}/tools:${ANDROID_HOME}/tools/bin:${ANDROID_HOME}/platform-tools:/root/.bun/bin:/root/.cargo/bin:/opt/pypi/bin:/root/.rbenv/bin: + PYTHONPATH=/opt/pypi +ENV PATH=${PATH}:${JAVA_HOME}/bin:${MAVEN_HOME}/bin:${GRADLE_HOME}/bin:${SBT_HOME}/bin:${GOPATH}/bin:/usr/local/go/bin:/usr/local/bin/:/root/.local/bin:${ANDROID_HOME}/cmdline-tools/latest/bin:${ANDROID_HOME}/tools:${ANDROID_HOME}/tools/bin:${ANDROID_HOME}/platform-tools:/root/.bun/bin:/root/.cargo/bin:/opt/pypi/bin: RUN set -e; \ ARCH_NAME="$(rpm --eval '%{_arch}')"; \ @@ -77,10 +71,9 @@ RUN set -e; \ esac \ && microdnf install -y php php-curl php-zip php-bcmath php-json php-pear php-mbstring php-devel make gcc git-core \ python${PYTHON_VERSION} python${PYTHON_VERSION}-devel python${PYTHON_VERSION}-pip glibc-common glibc-all-langpacks \ - openssl-devel libffi-devel libyaml zlib-devel \ + openssl-devel libffi-devel zlib-devel ruby ruby-devel \ pcre2 which tar gzip zip unzip bzip2 sudo ncurses ncurses-devel sqlite-devel gnupg2 dotnet-sdk-9.0 \ && microdnf install -y epel-release \ - && microdnf install --enablerepo=crb -y libyaml-devel jemalloc-devel \ && alternatives --install /usr/bin/python3 python /usr/bin/python${PYTHON_VERSION} 10 \ && alternatives --install /usr/bin/python3 python3 /usr/bin/python${PYTHON_VERSION} 10 \ && python${PYTHON_VERSION} --version \ @@ -91,17 +84,6 @@ RUN set -e; \ && rustc --version \ && curl -fsSL https://bun.sh/install | bash \ && ln -s /root/.bun/bin/bun /usr/bin/node \ - && git clone https://github.com/rbenv/rbenv.git --depth=1 ~/.rbenv \ - && echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc \ - && echo 'eval "$(~/.rbenv/bin/rbenv init - bash)"' >> ~/.bashrc \ - && source ~/.bashrc \ - && mkdir -p "$(rbenv root)/plugins" \ - && git clone https://github.com/rbenv/ruby-build.git --depth=1 "$(rbenv root)/plugins/ruby-build" \ - && rbenv install ${RUBY_VERSION} \ - && rbenv global ${RUBY_VERSION} \ - && ruby --version \ - && which ruby \ - && rm -rf /root/.rbenv/cache $RUBY_BUILD_BUILD_PATH \ && curl -s "https://get.sdkman.io" | bash \ && echo -e "sdkman_auto_answer=true\nsdkman_selfupdate_feature=false\nsdkman_auto_env=true" >> $HOME/.sdkman/etc/config \ && source "$HOME/.sdkman/bin/sdkman-init.sh" \