From f4704d0c6eb45fbcdb103f173852a9d6259efa21 Mon Sep 17 00:00:00 2001 From: Yongjin Chong Date: Thu, 16 Jan 2025 11:21:53 -0700 Subject: [PATCH] Fix glibc 2.34 issue --- Dockerfile | 33 ++++++++++++++++++++++++++++++++- config/dev.exs | 2 +- 2 files changed, 33 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index fee5159..1be5439 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,6 +8,37 @@ RUN set -xe; \ build-essential \ git ; +# RUN set -xe; \ +# apt-get update && \ +# apt-get install -y \ +# wget \ +# ca-certificates \ +# build-essential \ +# manpages-dev \ +# libtool \ +# autoconf \ +# automake \ +# gcc \ +# g++ \ +# libc6-dev\ +# git \ +# gawk \ +# bison \ +# python3 \ +# python3-pip && \ +# wget http://ftp.gnu.org/gnu/libc/glibc-2.34.tar.gz && \ +# tar -xvzf glibc-2.34.tar.gz && \ +# cd glibc-2.34 && \ +# mkdir build && \ +# cd build && \ +# CFLAGS="-O2" CXXFLAGS="-O2" ../configure --prefix=/opt/glibc-2.34 && \ +# make -j$(nproc) && \ +# make install && \ +# ldconfig /opt/glibc-2.34/lib + + +ENV LD_LIBRARY_PATH="/opt/glibc-2.34/lib:$LD_LIBRARY_PATH" + # Use the standard /usr/local/src destination RUN mkdir -p /usr/local/src/bullhorn @@ -28,7 +59,7 @@ RUN set -xe; \ mix deps.compile --all; \ mix release -FROM debian:11.6-slim as release +FROM debian:12-slim as release RUN set -xe; \ apt-get update && \ diff --git a/config/dev.exs b/config/dev.exs index 4c1e975..6761547 100644 --- a/config/dev.exs +++ b/config/dev.exs @@ -9,7 +9,7 @@ config :bullhorn, on_failure: :reject_and_requeue, connection: [ username: "bullhorn", - password: System.get_env("RMQ_PASSWORD"), + password: System.get_env("RMQ_PASSWORD", "system76"), host: System.get_env("RMQ_HOST", "localhost"), port: System.get_env("RMQ_PORT", "5672") ]}